logic:notEqual

2005-12-21 Thread Kumar, Sandy
All,
 
I am trying to compare a variable with a value set in request attribute.
But  tag does not accept variable in the "value"
attribute. It has to be a constant.
Does anyone know any alternative?.
 
Here is my code.






Select All







 











Thanks,
Sandy Kumar


RE: Re: logic:notEqual

2005-12-21 Thread Kumar, Sandy
Thank you so much Laurie. It worked. 


Sandy Kumar
 

-Original Message-
From: Laurie Harper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 21, 2005 4:49 PM
To: user@struts.apache.org
Subject: Re: logic:notEqual

Kumar, Sandy wrote:
> All,
>  
> I am trying to compare a variable with a value set in request
attribute.
> But  tag does not accept variable in the "value"
> attribute. It has to be a constant.
> Does anyone know any alternative?.
>  
> Here is my code.
>  
> indexId="i">
> 
> 
> 
>  
> size="4" property='level${i+1}' >
> 
> Select All
> 
>  
> labelProperty="webIdDescription" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks,
> Sandy Kumar
> 

Since you're already using JSTL, you should prefer it's tags over
Struts' tags where possible. Try replacing your logic:notEqual with the
following:

   

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



To check whether jsp form elements have changed

2005-12-21 Thread Kumar, Sandy
All,
 
 I have a page with 3 tabs. If user goes to any of the pages, and does
not alter the value he entered before, I should not submit the form.
 
How can I check whether jsp form elements have changed or not?.
 
Thanks,
Sandy Kumar


For loop in struts

2005-12-28 Thread Kumar, Sandy
 
I have a variable called "pageCount "stored in request attribute. How do
I display the drop down list with option elements starting starting from
"1" to <= pageCount using JSTL tags?.
 
 
 
Thanks,
Sandy Kumar
 


RE: For loop in struts

2005-12-28 Thread Kumar, Sandy

Never mind. It worked. 

Thanks,
Sandy Kumar

-Original Message-
From: Kumar, Sandy 
Sent: Wednesday, December 28, 2005 1:17 PM
To: user@struts.apache.org
Subject: For loop in struts

 
I have a variable called "pageCount "stored in request attribute. How do
I display the drop down list with option elements starting starting from
"1" to <= pageCount using JSTL tags?.
 
 
 
Thanks,
Sandy Kumar
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]