npk chowdary

Greenhorn
+ Follow
since Dec 09, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by npk chowdary

Hi Ranchers,

we got the requirement to display the page layout (like header,menu,content area) dynamically based on user preference i.e., like igoogle.

Please give us the approach how to proceed.

Thanks in anticipation
Pavan.
11 years ago
I am expecting that you are thinking about this code as why it is working even while passing null to string object.
here you are passing null means you are indirectly assigning string object to null.It leads to no problem in the constructor because you are not using String s for manipulation anywhere in your constructor.
I think it will clears .
thank you very much.
But I came through catch tag in jstl/core
12 years ago
JSP
is there any issues in handling exceptions in jsps other than handling exception in error pages
1) by giving page directive isErrorPage="true"
2)by coding in scriplets.
I mean that is there any JSTL tags to handle the exceptions in jsps.
Thanks in anticipation
12 years ago
JSP
quote:
--------------------------------------------------------------------------------

I have read some where that importing a package saves us from lot of typing.. does that mean.. the code of the class that we are importing get adds up in the class we are writing??

--------------------------------------------------------------------------------
yes it saves us lot of time but it is different in approachit cannot add the code i.e as part of import statement.when the hotspot jvm encounters the code which uses your importing statement it will think like ohh i have to go there and execute those set of code and return the result here.thats it.no code is added
12 years ago
I dont understand your question exactly i.e., correct punch in the question.I think yoou are asking about server avd container.
server is responsible for connecting to browser,communicating with the browser ,handling the request for static resources like html etc and transfering the HTTPrequestto container( what you want will come into action), and also sending the HTTPreponse to browser
Application container takes the request from the server and handles those ServletRequest(internally it will translate HTTprequest to ServletRequest) and sneds HTTPresponse(translating the ServletResponse).
server is apache
container is tomcat.
container may also acts as server.To get a lot of features that are present as part of server,we will combine server and container
12 years ago
please help me
12 years ago
In addition to that private members cannot be inherited.so they are not able to override.but it seems like overriding.check for it.
12 years ago
yes you are right we cannot type cast String into int but we can type cast int into String.
coming to parseInt.there are two overloaded methods taking string as parameter in one method and another one takes String and int as parameters.check api for this
12 years ago
I have a page with a description containing topics with heading name.At the end of topic i have to display icons with top,previous,next.I am thinking about dynamic pages.For this fulfilment can i use struts with tiles or else only javascript.If this can be used in struts where can i insert code .please give coding if it is as part of struts.
thanks for your anticipation
12 years ago
can i write our own methods in our own action extends dispatch action just like cancel,update,reset with the normal signature as follows.

public class MyDispatchAction extends DispatchAction{
public ActionForward methodName(ActionMapping mapping,ActionForward forward,ServletRequest req,ServletResponse res){
}
}
with out writing execute method.and also can i write them in direct sublass of Action can this fulfill my condition as DispatchAction do
and also one more doubt
does the container creates object to DispatchAction or MyDispachAction or Action and there by calling methods.if it creates object to MyDipatchAction and refered by DispatchAction identifier.I think this is related to core java.please explain me i am in confusion.
thanks for your anticipation
12 years ago
Vani D Bandargal
thank you very much for your valuable information.and may i know the use of using resettokens(request)
thanks again
12 years ago
for your dd other than get method no authorization will appplied for other http method.
but if you remove hhtp-method tag for all methods constraints will be applicable
I think you know we cannot create object for an Interface.we can create object for implementors .Think like this, static variables can be accessed by reference ok.so this copy is available for all objects implementing those interfaces.If from one object value changes then other can access that value(change) this will lead to messy,so we place final
12 years ago
I have one form which do some task like submitting contactquery(doubts).i am not intended to process the same form like giving same query multiple times.and also user clicks browser's back button form page should expires.Iwant to write code to action class like
saveTokens.please explain this
12 years ago