This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Problem with logic:present tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with logic:present tag" Watch "Problem with logic:present tag" New topic

Problem with logic:present tag

matt love
Ranch Hand

Joined: Jan 25, 2010
Posts: 67
I've concentrated the code to its barest essentials to illustrate my problem as clearly as I can.

My addAssignment.jsp is showing the header "Messages" when the LinkedList should be, and appears to be, empty. If there are no messages in the LinkedList, I expect the logic:present tag to preclude the printing of the header "Messages". How do I prevent the header "Messages" from printing if there are no messages in the LinkedList?

The struts-config file

The LoginAction file illustrates how I use the LinkedList. Also, the LoginAction works correctly with the Login.jsp page, the LinkedList and the Logic and Bean tags. That is, when error messages were present in the LinkedList, the Login.jsp page showed them corretly under the header Messages.

Thanks for your help.


matt love
Ranch Hand

Joined: Jan 25, 2010
Posts: 67
I am moving this to a different forum.



I agree. Here's the link:
subject: Problem with logic:present tag
Similar Threads
problem log out
javax.servlet.jsp.JspException: No getter method for property: "id" of bean: "Login.LoginForm"
web portal in struts and nothing is working at all
html:form not working if it is inside a jsp under WEB-INF
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope