This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP page contents Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSP page contents" Watch "JSP page contents" New topic
Author

JSP page contents

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Guys,

Can I have scriptlets, declarations and other jsp specific things before the <html> tag?? Will such a setup work?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Have you tried it?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

I tried and it seems working!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56212
    
  13

From the point of view of the JSP Translator, the <html> tag, and all the rest of the client-side markup, is simply template text that has no meaning. Where you put declarations in relation to this meaningless text, is, well, meaningless.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Thanks Bear!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56212
    
  13

You may find this article helpful as well.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSP page contents
 
Similar Threads
pop up page
what is defalut value of Custom tag body-content
creating a pop up calendar within a form
WA #1.....word association
Struts: No getter method for property name problem