*
The moose likes Struts and the fly likes logic:equal tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic:equal tag" Watch "logic:equal tag" New topic
Author

logic:equal tag

naveen
Greenhorn

Joined: May 12, 2005
Posts: 2
hi,

I have written the following code, but I am getting an exception

"javax.servlet.jsp.JspException: No bean found under attribute key AbcForm"

the scenario is;

Suppose I have a form called AbcForm and it has the property called name. I want to print something when that property name is equal to �xyz�

I am setting the name property value using the form setter method in the AbcAction class.



I wrote the following code in the jsp page.

<logic:equal name="AbcForm" property="name" value="xyz">
hello world
</logic:equal>


Kindly Suggest.

Thanks,
Naveen
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Did you remember to place a reference to the AbcForm bean in the request? as in:

request.setAttribute("AbcForm", abcForm);


Merrill
Consultant, Sima Solutions
naveen
Greenhorn

Joined: May 12, 2005
Posts: 2
hi,

I got it.

Thanks,
Naveen
 
wood burning stoves
 
subject: logic:equal tag
 
Similar Threads
No equal tag error even when equal tag present in struts-logic.tld
logic:match , logic:notEqual not working
struts logic tags- please help
logic:iterate and logic:radio confusion
logic: equal question