Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display html text based on a Scriplet condition  RSS feed

 
Rakesh Chaudhary
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Here I am stuck with a scenario...I have to show html text on particular condition from a scriplet how do I do it....

Currently the Jsp says...like

Existing html



Now I have to make it..display...like...



How do I go about it....Thanks in Advance...

Regards
 
venkat prathap
Greenhorn
Posts: 7
Eclipse IDE Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<% if (true) {%>

<html>
Hello America and Existing html above
</html>

<%
} else {%>

<entire Existing html>

<% } %>

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!