• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:equal tag

 
naveen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you remember to place a reference to the AbcForm bean in the request? as in:

request.setAttribute("AbcForm", abcForm);
 
naveen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I got it.

Thanks,
Naveen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic