This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes in jsp what tags go where after compilation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "in jsp what tags go where after compilation?" Watch "in jsp what tags go where after compilation?" New topic
Author

in jsp what tags go where after compilation?

J radolf
Ranch Hand

Joined: Jan 08, 2009
Posts: 121
Like there are

Expression <%= %>
Declaration <%! %>
Scripplets <% %>

where do these things go?

i mean whether it goes to the init() service() or Destroy()


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Those aren't tags, they are scriptlets. At this point, they should no longer be used in JSP pages.

The best way to answer your question though, is to write a sample JSP and look at the resulting servlet that the container generates on its behalf.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
... Or read some material on JSP lifecycle.
 
Consider Paul's rocket mass heater.
 
subject: in jsp what tags go where after compilation?