File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Jsp struts tag to check null values