my dog learned polymorphism
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: 9956
    
    3

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: 9956
    
    3

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

Joined: Jan 10, 2002
Posts: 63221
    
  69

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: 9956
    
    3

Thanks Bear!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63221
    
  69

You may find this article helpful as well.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JSP page contents
 
jQuery in Action, 3rd edition