Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Bear Bibeault wrote:I'm not sure who moved this to the servlets forum, but it's not appropriate. Moved back to the certification forum.
[My Blog]
All roads lead to JavaRanch
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Marcus Tiwari wrote:But when you are submitting a form you use action="url string" thats it. you cannot encode your url from here can you?
From what i read in whizlabs is that while FORM submit one has to use Hidden Variable to keep state and while using hyperlinks one has to use URL rewritting.(given cookies are disabled)
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Hidden form fields cannot be used to maintain the normal session behavior that we use.
You can encode (rewrite) the URL. You can use c:url tag.
but there is another way of maintaining state
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Rewritten URLs is not an efficient method used for state management is case the client submits an HTML form rather than clicking an hyperlink?
Ankit Garg wrote:1) Check the ServletContext class, it has a getContext method to get a ServletContext object of another web app on the same container. You can get a RequestDispatcher on that ServletContext object.
SCJP 1.6, SCWCD 1.5
I don't see any difference in efficiency here
By specs this is allowed to return null.
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I don't see any difference in efficiency here
Regards,
Frits
Rewritten URLs is not an efficient method used for state management is case the client submits an HTML form rather than clicking an hyperlink?
Form based login and URL based session tracking can be problematic to implement.
Form based login should be used only when sessions are being maintained by
cookies or by SSL session information.
Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
It means our mission is in jeapordy! Quick, read this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|