|
View:
New views
14 Messages
—
Rating Filter:
Alert me
|
|
|
javax.el.ELException Select TagI have the following code:
<s:select label="programType" id="programType" name="programType" list="#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" value="selectedProgram" required="true"/> which is giving error: org.apache.jasper.JasperException: /reports/threshold/reportselection_struts2.jsp(102,12) PWC6038: "#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" contains invalid expression(s): javax.el.ELException: Error Parsing: #{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'} at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:62) |
|
|
Re: javax.el.ELException Select Tagfurthermore, I have struts-tags.tld in my WEB-INF folder.
Are there any other tld's that the select tag depends on On Thu, Oct 29, 2009 at 11:30 AM, Bhaarat Sharma <bhaarat.s@...>wrote: > I have the following code: > > <s:select label="programType" id="programType" > name="programType" > list="#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> > > > which is giving error: > > org.apache.jasper.JasperException: > /reports/threshold/reportselection_struts2.jsp(102,12) PWC6038: > "#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" contains > invalid expression(s): javax.el.ELException: Error Parsing: #{'ALL':'All > Programs', 'BU':'BY Problems', 'TS':'TS Programs'} > > at > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:62) > |
|
|
Re: javax.el.ELException Select TagIf you indicated that the attribute was OGNL by wrapping it in %{}, the
container wouldn't try to parse it as JSTL-EL. -Dale --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: javax.el.ELException Select Tagso it should be:
<s:select label="programType" id="programType" name="programType" list="%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" value="selectedProgram" required="true"/> ? On Thu, Oct 29, 2009 at 11:34 AM, Dale Newfield <dale@...> wrote: > If you indicated that the attribute was OGNL by wrapping it in %{}, the > container wouldn't try to parse it as JSTL-EL. > > -Dale > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > |
|
|
RE: javax.el.ELException Select TagShould a #
<s:select label="programType" id="programType" name="programType" list="#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" value="selectedProgram" required="true"/> I made the same oversight last night Cookie -----Original Message----- From: Bhaarat Sharma [mailto:bhaarat.s@...] Sent: 29 October 2009 15:36 To: Struts Users Mailing List Subject: Re: javax.el.ELException Select Tag so it should be: <s:select label="programType" id="programType" name="programType" list="%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" value="selectedProgram" required="true"/> ? On Thu, Oct 29, 2009 at 11:34 AM, Dale Newfield <dale@...> wrote: > If you indicated that the attribute was OGNL by wrapping it in %{}, the > container wouldn't try to parse it as JSTL-EL. > > -Dale > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: javax.el.ELException Select Tag....you have the same code as my original code ...right?
On Thu, Oct 29, 2009 at 11:39 AM, James Cook <James.Cook@...> wrote: > Should a # > > <s:select label="programType" id="programType" name="programType" > list="#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> > > I made the same oversight last night > > Cookie > > -----Original Message----- > From: Bhaarat Sharma [mailto:bhaarat.s@...] > Sent: 29 October 2009 15:36 > To: Struts Users Mailing List > Subject: Re: javax.el.ELException Select Tag > > so it should be: > > <s:select label="programType" id="programType" name="programType" > list="%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> > > ? > > On Thu, Oct 29, 2009 at 11:34 AM, Dale Newfield <dale@...> > wrote: > > > If you indicated that the attribute was OGNL by wrapping it in %{}, > the > > container wouldn't try to parse it as JSTL-EL. > > > > -Dale > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@... > > For additional commands, e-mail: user-help@... > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > |
|
|
RE: javax.el.ELException Select TagOh so I do. Sorry.
I am pretty certain I did it with # last night, because I remember I blindly attacked it with a % and had to change -----Original Message----- From: Bhaarat Sharma [mailto:bhaarat.s@...] Sent: 29 October 2009 15:41 To: Struts Users Mailing List Subject: Re: javax.el.ELException Select Tag ....you have the same code as my original code ...right? On Thu, Oct 29, 2009 at 11:39 AM, James Cook <James.Cook@...> wrote: > Should a # > > <s:select label="programType" id="programType" name="programType" > list="#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> > > I made the same oversight last night > > Cookie > > -----Original Message----- > From: Bhaarat Sharma [mailto:bhaarat.s@...] > Sent: 29 October 2009 15:36 > To: Struts Users Mailing List > Subject: Re: javax.el.ELException Select Tag > > so it should be: > > <s:select label="programType" id="programType" name="programType" > list="%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> > > ? > > On Thu, Oct 29, 2009 at 11:34 AM, Dale Newfield <dale@...> > wrote: > > > If you indicated that the attribute was OGNL by wrapping it in %{}, > the > > container wouldn't try to parse it as JSTL-EL. > > > > -Dale > > > > > > To unsubscribe, e-mail: user-unsubscribe@... > > For additional commands, e-mail: user-help@... > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: javax.el.ELException Select TagBhaarat Sharma wrote:
> so it should be: > > <s:select label="programType" id="programType" name="programType" > list="%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' -Dale --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: javax.el.ELException Select TagHi,
I checked the javadoc for select and this is what is listed. <s:select label="Months" name="months" headerKey="-1" headerValue="Select Month" list="#{'01':'Jan', '02':'Feb', [...]}" value="selectedMonth" required="true" /> This is what I used last night. So #{} worked for me. -----Original Message----- From: Dale Newfield [mailto:dale@...] Sent: 29 October 2009 15:54 To: Struts Users Mailing List Subject: Re: javax.el.ELException Select Tag Bhaarat Sharma wrote: > so it should be: > > <s:select label="programType" id="programType" name="programType" > list="%{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' -Dale --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: javax.el.ELException Select Tag:(
still it gives this error: javax.el.ELException: Error Parsing: %{#{'ALL':'All Programs', 'BU':'all BU programs'}} On Thu, Oct 29, 2009 at 12:02 PM, James Cook <James.Cook@...> wrote: > Hi, > > I checked the javadoc for select and this is what is listed. > > <s:select label="Months" > name="months" > headerKey="-1" headerValue="Select Month" > list="#{'01':'Jan', '02':'Feb', [...]}" > value="selectedMonth" > required="true" > /> > > This is what I used last night. So #{} worked for me. > > -----Original Message----- > From: Dale Newfield [mailto:dale@...] > Sent: 29 October 2009 15:54 > To: Struts Users Mailing List > Subject: Re: javax.el.ELException Select Tag > > Bhaarat Sharma wrote: > > so it should be: > > > > <s:select label="programType" id="programType" name="programType" > > list="%{'ALL':'All Programs', 'BU':'BY Problems', > 'TS':'TS > > Programs'}" > > value="selectedProgram" required="true"/> > > No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' > > -Dale > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > |
|
|
Re: javax.el.ELException Select Taghow can I keep it from interpreting it as EL expression ....its OGNL..
I am using Sun App Server 9.1 could there be a setting on the server? On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma <bhaarat.s@...>wrote: > :( > > still it gives this error: > > javax.el.ELException: Error Parsing: %{#{'ALL':'All Programs', 'BU':'all > BU programs'}} > > > On Thu, Oct 29, 2009 at 12:02 PM, James Cook <James.Cook@...>wrote: > >> Hi, >> >> I checked the javadoc for select and this is what is listed. >> >> <s:select label="Months" >> name="months" >> headerKey="-1" headerValue="Select Month" >> list="#{'01':'Jan', '02':'Feb', [...]}" >> value="selectedMonth" >> required="true" >> /> >> >> This is what I used last night. So #{} worked for me. >> >> -----Original Message----- >> From: Dale Newfield [mailto:dale@...] >> Sent: 29 October 2009 15:54 >> To: Struts Users Mailing List >> Subject: Re: javax.el.ELException Select Tag >> >> Bhaarat Sharma wrote: >> > so it should be: >> > >> > <s:select label="programType" id="programType" name="programType" >> > list="%{'ALL':'All Programs', 'BU':'BY Problems', >> 'TS':'TS >> > Programs'}" >> > value="selectedProgram" required="true"/> >> >> No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' >> >> -Dale >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@... >> For additional commands, e-mail: user-help@... >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@... >> For additional commands, e-mail: user-help@... >> >> > |
|
|
Re: javax.el.ELException Select Taggot it.
it should be list="#@java.util.HashMap@{'1':'January', '2':'February','3':'March'}" source: http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html <http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html>mailing list archives FTW On Thu, Oct 29, 2009 at 12:12 PM, Bhaarat Sharma <bhaarat.s@...>wrote: > how can I keep it from interpreting it as EL expression ....its OGNL.. > > I am using Sun App Server 9.1 > > could there be a setting on the server? > > > On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma <bhaarat.s@...>wrote: > >> :( >> >> still it gives this error: >> >> javax.el.ELException: Error Parsing: %{#{'ALL':'All Programs', 'BU':'all >> BU programs'}} >> >> >> On Thu, Oct 29, 2009 at 12:02 PM, James Cook <James.Cook@...>wrote: >> >>> Hi, >>> >>> I checked the javadoc for select and this is what is listed. >>> >>> <s:select label="Months" >>> name="months" >>> headerKey="-1" headerValue="Select Month" >>> list="#{'01':'Jan', '02':'Feb', [...]}" >>> value="selectedMonth" >>> required="true" >>> /> >>> >>> This is what I used last night. So #{} worked for me. >>> >>> -----Original Message----- >>> From: Dale Newfield [mailto:dale@...] >>> Sent: 29 October 2009 15:54 >>> To: Struts Users Mailing List >>> Subject: Re: javax.el.ELException Select Tag >>> >>> Bhaarat Sharma wrote: >>> > so it should be: >>> > >>> > <s:select label="programType" id="programType" name="programType" >>> > list="%{'ALL':'All Programs', 'BU':'BY Problems', >>> 'TS':'TS >>> > Programs'}" >>> > value="selectedProgram" required="true"/> >>> >>> No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' >>> >>> -Dale >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@... >>> For additional commands, e-mail: user-help@... >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@... >>> For additional commands, e-mail: user-help@... >>> >>> >> > |
|
|
Re: javax.el.ELException Select Taghowever, this does not gurantee the order (because of the HashMap)...
something else can be used to preserve the order On Thu, Oct 29, 2009 at 12:31 PM, Bhaarat Sharma <bhaarat.s@...>wrote: > got it. > > it should be list="#@java.util.HashMap@{'1':'January', > '2':'February','3':'March'}" > > source: > http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html > > > <http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html>mailing > list archives FTW > > > On Thu, Oct 29, 2009 at 12:12 PM, Bhaarat Sharma <bhaarat.s@...>wrote: > >> how can I keep it from interpreting it as EL expression ....its OGNL.. >> >> I am using Sun App Server 9.1 >> >> could there be a setting on the server? >> >> >> On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma <bhaarat.s@...>wrote: >> >>> :( >>> >>> still it gives this error: >>> >>> javax.el.ELException: Error Parsing: %{#{'ALL':'All Programs', 'BU':'all >>> BU programs'}} >>> >>> >>> On Thu, Oct 29, 2009 at 12:02 PM, James Cook <James.Cook@...>wrote: >>> >>>> Hi, >>>> >>>> I checked the javadoc for select and this is what is listed. >>>> >>>> <s:select label="Months" >>>> name="months" >>>> headerKey="-1" headerValue="Select Month" >>>> list="#{'01':'Jan', '02':'Feb', [...]}" >>>> value="selectedMonth" >>>> required="true" >>>> /> >>>> >>>> This is what I used last night. So #{} worked for me. >>>> >>>> -----Original Message----- >>>> From: Dale Newfield [mailto:dale@...] >>>> Sent: 29 October 2009 15:54 >>>> To: Struts Users Mailing List >>>> Subject: Re: javax.el.ELException Select Tag >>>> >>>> Bhaarat Sharma wrote: >>>> > so it should be: >>>> > >>>> > <s:select label="programType" id="programType" name="programType" >>>> > list="%{'ALL':'All Programs', 'BU':'BY Problems', >>>> 'TS':'TS >>>> > Programs'}" >>>> > value="selectedProgram" required="true"/> >>>> >>>> No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' >>>> >>>> -Dale >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@... >>>> For additional commands, e-mail: user-help@... >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@... >>>> For additional commands, e-mail: user-help@... >>>> >>>> >>> >> > |
|
|
Re: javax.el.ELException Select Tagorg.apache.commons.collections.map.ListOrderedMap will preserve the order.
Regards, Balwinder Kumar Bhaarat Sharma wrote: > however, this does not gurantee the order (because of the HashMap)... > > something else can be used to preserve the order > > On Thu, Oct 29, 2009 at 12:31 PM, Bhaarat Sharma <bhaarat.s@...>wrote: > > >> got it. >> >> it should be list="#@java.util.HashMap@{'1':'January', >> '2':'February','3':'March'}" >> >> source: >> http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html >> >> >> <http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html>mailing >> list archives FTW >> >> >> On Thu, Oct 29, 2009 at 12:12 PM, Bhaarat Sharma <bhaarat.s@...>wrote: >> >> >>> how can I keep it from interpreting it as EL expression ....its OGNL.. >>> >>> I am using Sun App Server 9.1 >>> >>> could there be a setting on the server? >>> >>> >>> On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma <bhaarat.s@...>wrote: >>> >>> >>>> :( >>>> >>>> still it gives this error: >>>> >>>> javax.el.ELException: Error Parsing: %{#{'ALL':'All Programs', 'BU':'all >>>> BU programs'}} >>>> >>>> >>>> On Thu, Oct 29, 2009 at 12:02 PM, James Cook <James.Cook@...>wrote: >>>> >>>> >>>>> Hi, >>>>> >>>>> I checked the javadoc for select and this is what is listed. >>>>> >>>>> <s:select label="Months" >>>>> name="months" >>>>> headerKey="-1" headerValue="Select Month" >>>>> list="#{'01':'Jan', '02':'Feb', [...]}" >>>>> value="selectedMonth" >>>>> required="true" >>>>> /> >>>>> >>>>> This is what I used last night. So #{} worked for me. >>>>> >>>>> -----Original Message----- >>>>> From: Dale Newfield [mailto:dale@...] >>>>> Sent: 29 October 2009 15:54 >>>>> To: Struts Users Mailing List >>>>> Subject: Re: javax.el.ELException Select Tag >>>>> >>>>> Bhaarat Sharma wrote: >>>>> >>>>>> so it should be: >>>>>> >>>>>> <s:select label="programType" id="programType" name="programType" >>>>>> list="%{'ALL':'All Programs', 'BU':'BY Problems', >>>>>> >>>>> 'TS':'TS >>>>> >>>>>> Programs'}" >>>>>> value="selectedProgram" required="true"/> >>>>>> >>>>> No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' >>>>> >>>>> -Dale >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: user-unsubscribe@... >>>>> For additional commands, e-mail: user-help@... >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: user-unsubscribe@... >>>>> For additional commands, e-mail: user-help@... >>>>> >>>>> >>>>> > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |