aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP Doubt? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSP Doubt?" Watch "JSP Doubt?" New topic
Author

JSP Doubt?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Guys,

I have a jsp page which gets translated to a servlet on either first client request or container startup. Now After if got compiled, I make some changes to the jsp and when I try to access the jsp again will I have to restart the container??

Another doubt is that in a jsp page, how can I get a hold of the jsp implicit objects in the methods I write using jsp declarations??


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
kesavaraj vazanth
Ranch Hand

Joined: Sep 23, 2005
Posts: 37
For JSP page changes restarting the container is not required i think.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

So what happens if I make changes to say scriptlets???
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

The page will be recompiled. I think that the container looks at the timestamp of the file, so any changes in it will force the page to be recompiled.


[My Blog]
All roads lead to JavaRanch
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Satou,

Why is this behavior only for jsp pages?? Why not for servlets??
Priya Viswam
Ranch Hand

Joined: Dec 28, 2006
Posts: 81
Another doubt is that in a jsp page, how can I get a hold of the jsp implicit objects in the methods I write using jsp declarations??


implicit objects are not available in the methods that you write using jsp declarations.


SCJP 1.5<br />SCWCD 1.4
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Can we make it available by any means??
Sergio Tridente
Ranch Hand

Joined: Mar 22, 2007
Posts: 329

Yes, you can. By calling getServletContext(), getServletConfig(), etc. I also believe that EL implicit objects are always available, so you can you those instead.


SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Doubt?