jQuery in Action, 3rd edition
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

Rule for ending jsp tag

Nidhi Juneja

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">
Is there any rule about how to end tags or either way is ok.....
Enrico Mannarino
Ranch Hand

Joined: Dec 14, 2001
Posts: 133
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!
I agree. Here's the link: http://aspose.com/file-tools
subject: Rule for ending jsp tag
It's not a secret anymore!