• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Rule for ending jsp tag

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
That is a really big piece of pie for such a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic