Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp struts tag to check null values

 
sudhir pavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my jsp , i am getting a value from DB. But the field is null.
As the data is null i need to compare the value in struts if tag to check whether it is null or not.
if it is null then i forward the request to login page, otherwise continue to process

<s:if test="#session.issuperadmin== null">
<jsp:forward page="login.jsp" />
</s:if>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic