Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jsp and html redering help

Status
Not open for further replies.

abyinsydney

Programmer
Feb 17, 2004
99
AU
people
i'm using vignette content management system to retrive out data

can some one help me out as to how do i restrict the generation of html using jsp fuctionality.

for instance if
A==null
then i want to skip certain amount of HTML code
like
<% a==null%>

<tr>
<td>blaw blaw
</td>
</tr>
if a ==null the skip the above html code and move on to the code below

<tr><td>hello<td></tr>

Any tips on it would be appreciated.

regards
Aby
 
I think this is a fairly straight-forward answer...

Code:
<%
  if(A != null)
  {
%>
<!-- html code you want to include -->
<%
  }//end if
%>

Is this what you were looking for?

--Dave
 
Hi,

Do you mean some thing like this

Code:
<% 
  String A = null;
  if(null == A)
  {
%>
    <tr>
     <td>blaw blaw</td>
    </tr>
<%
  }
%>
   <tr>
      <td>hello<td>
   </tr>

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top