• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP document problem

 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Theepan Thevathasan:

Is the following wrong?




NOPE..
this is right way to forward a request in Jsp.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK...
Clarified....

So there is no problem in using ( no in the body though) scripting elements in XML compliant JSP document actions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic