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 S:elseif not working correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "S:elseif not working correctly" Watch "S:elseif not working correctly" New topic
Author

S:elseif not working correctly

Harsha Mulani
Greenhorn

Joined: May 13, 2006
Posts: 13
Hi,

I have the below code in my jsp file; however the s:elseif tag is not working. The links are not displayed; a blank page comes up
Te session attribute is set in the action class)
When I tried to print on screen the value of "admin" variable, it is showing the correct value.


I also tried the below change; but nothing seems to work:



Can someone guide me as to what could be wrong?

Thanks,
Harsha
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Is there an <s:if>?
Harsha Mulani
Greenhorn

Joined: May 13, 2006
Posts: 13
Thanks David, you are my saviour.

The issue is resolved; the below works:

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Glad to hear you worked it out :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: S:elseif not working correctly