aspose file tools*
The moose likes JSP and the fly likes JSP document problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP document problem" Watch "JSP document problem" New topic
Author

JSP document problem

Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226
Hi,

Is the following wrong?

<jsp:forward page="<%=page%>"/>

Can't we use <% %> within a JSP document related action..

Then is this is correct version

<jsp:forward page="%=page%"/>

Are there many more tricky point about the XML compliant JSP actions?


Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Theepan Thevathasan:

Is the following wrong?




NOPE..
this is right way to forward a request in Jsp.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

did get whats you want to know. but for the use of <jsp:forward> check this link to understand its better..

hope it helps..
Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226
OK...
Clarified....

So there is no problem in using ( no in the body though) scripting elements in XML compliant JSP document actions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP document problem