aspose file tools*
The moose likes JSP and the fly likes JSP page contents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP page contents" Watch "JSP page contents" New topic
Author

JSP page contents

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

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, Certified Scrum Master
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: 9622
    
    2

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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Thanks Bear!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

You may find this article helpful as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP page contents