This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes Use of Logic equal tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Use of Logic equal tag" Watch "Use of Logic equal tag" New topic

Use of Logic equal tag

Parijat Mukherjee

Joined: Sep 21, 2003
Posts: 26
I'm getting this error :
E SRVE0026E: [Servlet Error]-[No selector attribute ;cookie/header/name/parameter; was specified]: javax.servlet.jsp.JspException: No selector attribute (cookie/header/name/parameter) was specified
at org.apache.struts.taglib.logic.CompareTagBase.condition(

when i'm trying to reload (in sorted form )my jsp page
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
I am not getting what you trying to do ? If you are trying to use
logic:equal tag
then its use is like as follows
<logic:equal name="mode" value="add">
==code part
Here this mode i set from my action class from which i am loading this page
as request.setAttribute("mode", "add");
In my jsp if there are certain things has to be displayed or some other thign i have to do only if the option i am selecting is "add" only
That part i will give in between by above logic:equal tag
For detailed explanation please go through jakarta struts user guide.There they have given the detailed explanation of tag libraries
All the best
Srikanth Shenoy
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
Hi Parijat,
If you are getting this error only while reloading the page and not while original display, here is one reason why:
You are using the logic:equal tag to compare a request attribute with another value.
When the page is reloaded the request attribute is not present and hence the error..
Hope this helps,
Srikanth Shenoy
[ February 27, 2004: Message edited by: Srikanth Shenoy ]

Srikanth Shenoy
Author of Struts Survival Guide : Basics to Best Practices
I agree. Here's the link:
subject: Use of Logic equal tag
It's not a secret anymore!