wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Rule for ending jsp tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Rule for ending jsp tag " Watch "Rule for ending jsp tag " New topic
Author

Rule for ending jsp tag

Nidhi Juneja
Greenhorn

Joined: Oct 07, 2002
Posts: 27
Hello Friends,
A confusion --
I have come across two different ways of ending the jsp tags
<jsp:forward page="msg.jsp"/>
why is it not <jsp:forward page="msg.jsp">
</jsp:forward>
Is there any rule about how to end tags or either way is ok.....
Thanks,
Nidhi
Enrico Mannarino
Ranch Hand

Joined: Dec 14, 2001
Posts: 133
Hi,
if there is nothing bewteen the start and end both are ok, otherwise not.
<jsp:forward page="msg.jsp"/> OK
<jsp:forward page="msg.jsp">
</jsp:forward> OK
<jsp:forward page="msg.jsp">
bla bla bl
</jsp:forward> OK
<jsp:forward page="msg.jsp" bla bla /> NOK
Hope it helps!
/Enrico
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rule for ending jsp tag
 
Similar Threads
jsp:forward
passing parameters in jsp:include
jsp:forward
Java IO Exception in JSP
JSP forward doubt