Why we are using servlet as a controller instead of Jsp?
Can any explain answer for this question
Thanks in Advance
Why we are using servlet as a controller instead of Jsp?
nareshannam wrote:
Can any explain answer for this question
Thanks in Advance
Why we are using servlet as a controller instead of Jsp?Basically JSPs are suited to do just one thing, to generate HTML with variable content. You can put Java code in there too, but it's not a good place for it. Messy to validate, messy to debug. In fact, with tag libraries like JSTL, actual Java code is rare in professionally written JSPs.
A controller does the bit that comes before you've decided what kind of response the user is going to get, typically it may invoke one of several JSPs according to validation etc.. There's a lot of logic, a lot of parsing parameters and so on. Much cleaner to do this from a Java class like a Servlet.
Judging by this forum quite a lot of people come to JSPs from ASP or PHP and don't want to bother with actually writing Java classes. That's never going to be much good.
Similar Messages
-
Why we are using init() in servlet
why we are using init() in servlet
Instead of doing in init() we can do that things in ConstructorHi
In order ti be clear. Do you remeber the applet lfe cycle ?. An applet run inside a browser and a servelts runs inside a servlet container, so is the servelt container who instatiate a servlet, init and destroy, and while servlet is alive calls doService inside a thread.
The mechanism to fill some parameters or other task is by writing the init(ServletConfig) method inherited from GenericServlet.
To clear parameters or other clearing stuff you can use the destroy method, inherited from GenericServlet
Hope this helps -
Why we are using dynamic actions in HR
why we are using dynamic actions in HR?? main purpose of it>>
Check the link -
Re: Dynamic Actions
Re: dynamic actions
Re: Dynamic Actions
www.hrexpertonline.com/downloads/Rehan%20Zaidi%20Online%20Portion.doc
Regards,
Amit
Reward all helpful replies. -
how to use getAncestor(n),getdescendant(child,child) in sql why they are use please give me example
jitendraBelow are a few examples that demonstrate these hierarchyid data type methods. See the hierarchyid reference in the SQL Server Books Online for more examples of these and other methods (http://technet.microsoft.com/en-us/library/bb677193.aspx).
--return a child of this node ('/1/')
SELECT CAST('/' AS hierarchyid).GetDescendant(NULL, NULL).ToString();
--returns a child of this node greater than child node '/1/' ('/2/')
SELECT CAST('/' AS hierarchyid).GetDescendant(CAST('/1/' AS hierarchyid), NULL).ToString();
--returns a child of this node less than chold node '/1/' ('/0/')
SELECT CAST('/' AS hierarchyid).GetDescendant(NULL, CAST('/1/' AS hierarchyid)).ToString();
--returns a child of this node greater than child node '/1/' and less than child node '/2/' ('/1.1/')
SELECT CAST('/' AS hierarchyid).GetDescendant(CAST('/1/' AS hierarchyid), CAST('/2/' AS hierarchyid)).ToString();
--return ancestor of node 1 level up from this node ('/1/2/')
SELECT CAST('/1/2/3/' AS hierarchyid).GetAncestor(1).ToString();
--return ancestor of node 2 levels up from this node ('/1/')
SELECT CAST('/1/2/3/' AS hierarchyid).GetAncestor(2).ToString();
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
Why we are using cluster tables mainly HR
can any plz tell me why we are using cluster tables mainly HR???
Nice question -
Am making my guess based on whatever little I know;
PCLn are <i>file</i> systems and not a traditional (RDBMS) table system. Each File may contain one or more data clusters. SAP Defines data clusters thus -
<i>A data cluster is a grouping of several data objects. Elementary fields, field strings and internal tables can be grouped in a data cluster</i>.
<i>Example</i>:<i>Clusters B1 and B2 in files PCL1 and PCL2 are relevant to time evaluation, as is cluster PS, which stores the generated schema</i>.
The reason why file system of data storage is used instead of DB Table system may be for the purpose of storing voluminous data (Payroll and time) and ease of retrieval during processing (RDBMS may hv tough time in this). Also probably because of SAP's origin from Mainframe.
Why data clusters are used -? Probably data clusters are an offshoot (or part) of File system
Pls feel free to contradict the above. Actually DB experts can throw more light on this..
Regards
Chandra -
Why we are using No_Filtering hint?
Hi
can anyone tell me why we are using No_Filtering hint?
This query is Retriving extra rows when hints not applied.What is the reason.
Select /*+ No_Filtering */ *
from (select /*+ No_Filtering */
true_name, true_name_cmprsd, jurisname, entityids, ht,
max(ht) over(partition by true_name_cmprsd) ht_1
from (select /*+ No_Filtering */true_name, true_name_cmprsd,
LTRIM(SYS_CONNECT_BY_PATH(entity_id, '; '), '; ') AS EntityIds,
juris_short_name JurisName,
LEVEL HT
FROM (select /*+ No_Filtering */e.true_name, e.TRUE_NAME_CMPRSD, j.JURIS_SHORT_NAME, e.entity_id,
ROW_NUMBER() OVER(PARTITION BY TRUE_NAME_CMPRSD ORDER BY ENTITY_ID) AS curr,
ROW_NUMBER() OVER(PARTITION BY TRUE_NAME_CMPRSD ORDER BY ENTITY_ID) - 1 AS prev
from SIV_JURISDICTION j, arv_entity e
where e.ENTITY_STATUS_CD = 2002 and
e.DOM_JURIS_ID = j.JURIS_ID and juris_id = 8)
connect by prev = PRIOR curr AND true_name_cmprsd = PRIOR true_name_cmprsd
start with curr = 1)
WHERE ht > 1)
where ht = ht_1
order by upper(true_name)
Thanks in advance...Because one of your developers or DBAs thought it would be neat to use an undocumented hint.Possibly, although Oracle support have recommended us use hints (such as NO_CONNECT_BY_FILTERING) on several occasions to work around bugs in CONNECT BY queries.
I also recall a specific recommendation to consider the NO_FILTERING hint in the Oracle error messages documentation when running out of temporary space in CONNECT BY queries, I'll see if I can find the link.
Not that I support the use of hints in production of course, just that there are some mitigating circumstances around CONNECT BY behaviour. -
Why we are using FILLPV and GENTPB operations?
Hi Experts,
Please Explain Why we are using "FILLPV0" ,"FILLPV1","FILLPVT","FILLPV6'.
and 'GENTPB 0", "GENTPB * ", "GENTPB 01R", "GENTPE B".
I have a scenorio,
hrs?16
-<
hrs=dxxxx
hrs-16
adddbyyyyz
GENTPE L
COLOP*
-=
FILLPVL
COLOP*
->
FILLPVL
colop*
I confusing about what is "L"
and where it stored?.
why the need we fill procesing type L when =,> ?
by using that Fillpv what is the further process.?
where XXXX is a time type which have 17.
YYYY is also timetype which stores 1.
so my question is when we add that 1 to timetype yyyy what is the need to call "GENTPB L"
and what process will done when we cal that "gentpb l"
and when xxxx = 16
we are filling "FILLPV L"
L is assigned with some wagetype 4xxx.
what process is done when when we use this "FILLPV L' operation.
Thanks in Advance,
Mahesh.Hi Harish,
Thanks for your reply,
so
When we use FILLPVM operation any specific wage type related to overtime will be populated from table "t510s" ?
according to your help i assume this rule
hrs=s
_hrs?8
---<
---hrs=s
---adddbxxxx
---=
hrs=s
adddbxxxx
|--->
|---hrs=s
|---adddbxxxx
|---hrs-8
|---gentpe m
|---adddbyyyy
|---fillpvm
here that 2 hours will split into overtime and stored into yyyy timetype.?
and that fillpvm will cal the specific wagetype related to overtime?
please let me know if i am wrong.
Thankyou,
Mahesh. -
Why we are using APO - Demand Planning ?
Dear All,
Why we are using APO-Demand Planning,as we have this option in R/3 ?
What is advantages of APO - DP over & above R/3?
Regadrs
Sujay Joshi
91-9833464511Hi Sujay,
Have a look at the below thread.
General Discussion - Why to choose APO over R/3 for planning?
Regards,
Siva. -
Why we are using Application upgrade assistance??
Hi,
Doubts?
Why we are using Application upgrade assistance in the case of apps up-gradation from 11i to R12, whenever up-gradation assistance don not upgrade database and all custom form and reports. It will install new Tech Pack.
Please clear my doubts.
Thanks
AnupAnup,
Have a look at the following documents.
Note: 430732.1 - Downloading Maintenance Wizard -- (check the User's Guide).
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=430732.1
Note: 405263.1 - Maintenance Wizard FAQ
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=405263.1
I would suggest you post your question in [Technology - LCM: Maintenance Wizard |http://forums.oracle.com/forums/forum.jspa?forumID=351] forum, you would probably get a better/faster response.
Regards,
Hussein -
Why we are using "FILLPV" and "GENTPB" in Time PCR
Hi Experts,
Please Explain Why we are using "FILLPV0" ,"FILLPV1","FILLPVT","FILLPV6'.
and 'GENTPB 0", "GENTPB * ", "GENTPB 01R", "GENTPE B".
Please explain these Scenarios. Its Urjent. otherwise i cannot go further process.
Thanks,
Mahesh.Hi Salil,
Thanks for your reply.
I stiil have confusion. Please give some example to explain about these and help me out.
I have a scenorio,
hrs?16
-<
hrs=dxxxx
hrs-16
adddbyyyyz
GENTPE L
COLOP*
-=
FILLPVL
COLOP*
->
FILLPVL
colop*
I confusing about what is "L"
and where it stored?.
why the need we fill procesing type L when =,> ?
by using that Fillpv what is the further process.?
Please help me out from this confusion. -
Why we are using SID in DSO when there we are using star schema in BI
can anyone answer me why we are using SID in DSO also, i mean what is the need of SID in DSO?
The reason basically is that the entire query api in BW is based on SIDs
If you look at a sql of a query that is generated when you run a report you can see this
Example..
If you put a selection of period = 02.2009
In the SQL you will not see "where period = 02.2009" you will see "where sid.period = '000100001010" or something like that
The whole query is like this for Infoproviders of DSOs and Infocubes
Yes it is annoying - but that't the way it is..
So if you have a DSO you wish to report on you need the SID for the SQL to fire..!
On an operational daya to day side - if my cubes are 1:1 granularity with my DSOs then I prefer to put SID activation on the DSOs - two reasons
1. so the cube load is quicker because the SID generation has already taken place (is this important? never sure but I always do it)
2. future use of the DSO as a reporting object (this was before the days of the operational store as part of a LSA structure) -
Why we are using certificate in infopath?
Hi All,
why we are using certificate in infopath?
Thanks in advance!Hello,
+ Jamie
Also to provide security and trust your publisher. If there is no certificates with form then you might face problem with publish popup. To verify all publishers for your template, just open any infopath form-->select options from file menu-->then
click trust center-->trust center settings. You should see all certificates which are allowed.
http://msdn.microsoft.com/en-us/library/office/bb251022%28v=office.12%29.aspx
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Why we are using event receivers in creating timer jobs?
Hi All,
Why we are using event receivers in creating timer jobs?
Thanks in advance!Hi,
Suppose you are creating a custom timer job following the steps which are similar as what this demo provides:
http://www.codeproject.com/Articles/403323/SharePoint-Create-Custom-Timer-Jobs
In this demo, an Event Receiver is created for installing the Job Definition when we deploy the solution or uninstalling it when we extract this solution.
Here, the Event Receiver listens to the FeatureActivated evetn and the FeatureDeactivating event, which corresponding to the timing of activating and deactivating the feature
of this solution, it just like a switch during the life cycle of a solution in a SharePoint site collection which will make us easier to manage the features coming with a solution package.
More information about feature and solution:
http://msdn.microsoft.com/en-us/library/office/aa543214(v=office.14).aspx
https://www.simple-talk.com/dotnet/.net-tools/using-features-and-solutions-to-deploy-your-sharepoint-customizations/
Feel free to reply if this is not what your question about or there are still any questions.
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
For Enjoy Transactions why we are using BAPI only.
Hi All,
(already searched the forum for this one)
Can anyone please explain me or send related links--->
1) Why we are calling me21n as ENJOY transaction.
2) What are ENJOY Transactions.
3) Why we have to use BAPI ony
to update ENJOY Transactions instead of BDC.
regards,
phaneendra p.These new transactions should make life for the end user a bit easier, since SAP transactions not always accelerate in design, logic, etc. That's why SAP has introduced these new transactions which in the end, will have the same result. In these socalled 'Enjoy' transactions, SAP started using these 'new' enjoy sap controls like ALV grid, text editor, HTML viewer etc.
For 'updating' Enjoy transaction (BTW: You are NOT updating the transactions, but rather the purchase order or whatever) you will have to use BAPI's (or FM for that matter) in stead of BDC since Enjoy Controls work with a different framework in which you can not call a certain screen and field. Like in an ALV grid, not every field has it's own screen field name. So you cannot use them in BDC.
Hope this makes any sense, otherwise search the forum. There have been some similar questions in the past as I can remember. Especially why you can not use BDC with enjoy sap transactions. -
Hi Friends, Please help me to understand Why we are using CHARM instead of
Hi friends,
I am working as SAP security consultant.
I am fresher and worked in implemetaion project.
My question is when i was in implementation project i used CHARM in sol man to create transport request.
Now i am working in support and here we are not using CHARM simply creating transport in PFCG.
So is there any specific difference between both.
Please tell meHi
CHARM is a specific functionality in Solution Manager
so it doesn't mean in all your project or customer are using solution manager charms functionality
therefore you will creating TR from Se09 etc not from UC/NC scenario
Hope clarified your doubt
regards
Prakhar
Maybe you are looking for
-
No matter which search plugin I choose to install from the list of FireFox search plugins on the Mozilla Add-ons website, I get the same error message - "This search engine isn't supported by FireFox and can't be installed". I tried deleting the 3 fi
-
Error AA 738 while periodic asset posting - ASKB
Hello, could you please advise if anybody have encounterd following error when executing transaction: ASKB (test run) as background processing: Number range 01 has not been created for document type AA. Message no. AA738 Diagnosis No valid number ran
-
Kernel Panic Error after waking from sleep mode
My MacBook Air (5.2) was purchased in February and has been back to the Genius Bar twice to try to identify the issue causing the kernel panic error that occurs after the computer is placed in sleep mode (running on battery or AC). GB was unable to
-
FTP setup with Actiontec MI424WR router
I've been banging my head against the wall for a few hours now. I have a FTP server/device on my network (which I can access just fine internally). However, I'm not able to access it from outside my network. I've forwarded ports 20 & 21 (TCP/UDP) to
-
SerialOracleClob usage in weblogic server 8.1
Hi, An application is deployed successfully on weblogic 7.0 server but there was a ClassCastException for SerialOracleClob class when the same was deployed on 8.1 server.Also when I tried to compile the source code using weblogic.jar of 8.1,i got the