aspose file tools*
The moose likes Struts and the fly likes Jsp struts tag to check null values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Jsp struts tag to check null values" Watch "Jsp struts tag to check null values" New topic
Author

Jsp struts tag to check null values

sudhir pavan
Ranch Hand

Joined: Sep 01, 2011
Posts: 34
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>
 
jQuery in Action, 2nd edition
 
subject: Jsp struts tag to check null values
 
Similar Threads
Struts2: Compare request parameter not working
write request.setAttribute("key", "value")
[Struts 2] Use a JSP variable in struts2 tag
Struts 2 hidden values
fow to forward to an action from jsp ?