• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Rule for ending jsp tag

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic