Author Login
Post Reply
user Digest 25 Mar 2008 01:48:57 -0000 Issue 7942
Topics (messages 184554 through 184583):
Re: [struts] sugestion, reusing actions in different contexts
184554 by: Dale Newfield
184555 by: Mihai Scripca
184558 by: Dave Newton
184561 by: Mihai Scripca
184562 by: Dale Newfield
Re: key property of s:checkbox tag
184556 by: Emil.I
184557 by: Randy Burgess
184559 by: Emil.I
184560 by: Dave Newton
184564 by: Kibo
184565 by: Emil.I
184566 by: Martin Gainty
Multiple Selects and optionsCollection
184563 by: Tom Holmes Jr.
<s:select list="#{'01':'Jan', '02':'Feb', [...]}"
184567 by: stanlick
184568 by: Dave Newton
184569 by: stanlick
184570 by: Dave Newton
184571 by: stanlick
184572 by: Musachy Barroso
184573 by: stanlick
184574 by: Musachy Barroso
184575 by: Chris Pratt
184576 by: Chris Pratt
184583 by: stanlick.gmail.com
Why datetimepicker doesn't show the value of my bean?
184577 by: xianwinwin
184578 by: Dave Newton
184580 by: xianwinwin
[TEST IGNORE] Test
184579 by: Dave Newton
ajax validation - how to tell the user where is the problem?
184581 by: xianwinwin
Actions not called from their expected forms
184582 by: wwwclaes
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_184554.ezm (zipped)Mihai Scripca wrote:
> approach 1
> defining 2 actions in struts like this:
> a /view/CerereActEdit.do -> X.class
> b /edit/CerereActEdit.do -> X.class (same class)
> c /CerereActEdit.do -> X.class (same class)
>
> but it seems that struts, whatever action i ran it always uses c mapping!
This is because of confusion between the action name/namespace.
Simplest solution: set struts.enable.SlashesInActionNames to true.
Without that, it's looking for a "view" namespace, or an "edit"
namespace (and presumably failing to find either).
> i think that the behaviour of struts should be improved to keep track of
> the context (not losing it on the way)
> and to switch to context only when requested!
Remember, the browser thinks this is just a web page, so if you serve a
form with a relative action path from the url /app/view/abc.do, it's
going to submit it as /app/view/newFormAction.do, independent of the
framework running on the server. Really this means absolute urls should
be used almost exclusively (meaning starting with / -- the machine
should probably be left out).
-Dale

Attachment:
user_184555.ezm (zipped)Dale Newfield wrote:
> Mihai Scripca wrote:
>> approach 1
>> defining 2 actions in struts like this:
>> a /view/CerereActEdit.do -> X.class
>> b /edit/CerereActEdit.do -> X.class (same class)
>> c /CerereActEdit.do -> X.class (same class)
>>
>> but it seems that struts, whatever action i ran it always uses c
>> mapping!
>
> This is because of confusion between the action name/namespace.
>
> Simplest solution: set struts.enable.SlashesInActionNames to true.
how is this possible in struts 1? where should i set this?
>
> Without that, it's looking for a "view" namespace, or an "edit"
> namespace (and presumably failing to find either).
>
>> i think that the behaviour of struts should be improved to keep track
>> of the context (not losing it on the way)
>> and to switch to context only when requested!
>
> Remember, the browser thinks this is just a web page, so if you serve
> a form with a relative action path from the url /app/view/abc.do, it's
> going to submit it as /app/view/newFormAction.do, independent of the
> framework running on the server. Really this means absolute urls
> should be used almost exclusively (meaning starting with / -- the
> machine should probably be left out).
Yes thats correct but i was reffering to forwards:
the server gets the request: /app/view/formAction.do, executes it then
goes to struts-config.xml to find the forward and finds:
<form path='/formAction.do" ....
<forward ..success... path = /newFormAction.do" />
....
then keeps the correct context (/view) (adding it to app context, /app)
and forms the correct forward like this:
/newFormAction.do -> would become -> /app .... /view ... /newFormAction.do
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_184558.ezm (zipped)I'm pretty much lost at this point.
What version of struts are you using?
--- Mihai Scripca <mihaiscripca@(protected):
> the server gets the request: /app/view/formAction.do, executes it then
> goes to struts-config.xml to find the forward and finds:
> <form path='/formAction.do" ....
> <forward ..success... path = /newFormAction.do" />
Is this like a combination of HTML and configuration file?
Dave

Attachment:
user_184561.ezm (zipped)Dave Newton wrote:
> I'm pretty much lost at this point.
>
>
> What version of struts are you using?
>
Im using struts 1.2.7
This is not the behaviour of struts but my desired behaviour!
>
>> The server should get the request: /app/context/formAction.do, execute the action formAction ,then
>> should go to struts-config.xml to find the forward:
>> <form path='/formAction.do" ....
>> <forward ..success... path = /newFormAction.do" />
>>
then he should forward not to /newFormAction.do but to
/app/context/newFormAction.do
that is, should keep the current context of the initial executed action
(unless otherwise instructed like this
<forward .... success .... path=/newFormAction.do contextRelative=false
should forward to /app/newFormAction )
i would like to modify my struts to behave like this but first i thought
i should share with you so you can tell me what you think
and if theres already a way to do this (except module which is
unacceptably static)
>
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_184562.ezm (zipped)Mihai Scripca wrote:
> Dale Newfield wrote:
D'oh--sorry--I was assuming struts2. My answers are therefore not
applicable.
-Dale

Attachment:
user_184556.ezm (zipped)
So can i nest s:property within. Eg.:
<s:checkbox name="skillCode" key="<s:property/>"/>
the preceeding doesn't work. Is there anyway not including the solution,
where you put s:property tag beside s:checkbox, but actually setting the key
property of
s:checkbox tag with skillCode?
Emil.I wrote:
>
> Hello,
> i iterate through a set and for 'key' i want to use the property of an
> iterable element. eg:
>
> <s:iterator value="job.skills" id="skill" status="status">
> <s:checkbox name="skillCode" key="?????"/>
> </s:iterator>
>
> skillCode is a string property of Skill object and i want it to be
> assigned to skill property
> of the s:checkbox tag. What is the syntax?
>
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184557.ezm (zipped)Have you tried this syntax?
<s:checkbox name="skillCode" key="%{propertyGoesHere}"/>
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: "Emil.I" <iakoupov@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Mon, 24 Mar 2008 10:23:07 -0700 (PDT)
> To: <user@(protected)>
> Subject: Re: key property of s:checkbox tag
>
>
> So can i nest s:property within. Eg.:
>
> <s:checkbox name="skillCode" key="<s:property/>"/>
>
> the preceeding doesn't work. Is there anyway not including the solution,
> where you put s:property tag beside s:checkbox, but actually setting the key
> property of
> s:checkbox tag with skillCode?
>
>
> Emil.I wrote:
>>
>> Hello,
>> i iterate through a set and for 'key' i want to use the property of an
>> iterable element. eg:
>>
>> <s:iterator value="job.skills" id="skill" status="status">
>> <s:checkbox name="skillCode" key="?????"/>
>> </s:iterator>
>>
>> skillCode is a string property of Skill object and i want it to be
>> assigned to skill property
>> of the s:checkbox tag. What is the syntax?
>>
>>
>>
>>
>
> --
> View this message in context:
>
http://www.nabble.com/key-property-of-s%3Acheckbox-tag-tp16241092p16256658.htm>
l
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment:
user_184559.ezm (zipped)
If i put:
<s:checkbox name="skillCode" key="%{skillCode}"/>
skillCode being the property of object in a set whihc i iterate over,
doesn't work.
Randy Burgess-3 wrote:
>
> Have you tried this syntax?
>
> <s:checkbox name="skillCode" key="%{propertyGoesHere}"/>
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
>> From: "Emil.I" <iakoupov@(protected)>
>> Reply-To: Struts Users Mailing List <user@(protected)>
>> Date: Mon, 24 Mar 2008 10:23:07 -0700 (PDT)
>> To: <user@(protected)>
>> Subject: Re: key property of s:checkbox tag
>>
>>
>> So can i nest s:property within. Eg.:
>>
>> <s:checkbox name="skillCode" key="<s:property/>"/>
>>
>> the preceeding doesn't work. Is there anyway not including the solution,
>> where you put s:property tag beside s:checkbox, but actually setting the
>> key
>> property of
>> s:checkbox tag with skillCode?
>>
>>
>> Emil.I wrote:
>>>
>>> Hello,
>>> i iterate through a set and for 'key' i want to use the property of an
>>> iterable element. eg:
>>>
>>> <s:iterator value="job.skills" id="skill" status="status">
>>> <s:checkbox name="skillCode" key="?????"/>
>>> </s:iterator>
>>>
>>> skillCode is a string property of Skill object and i want it to be
>>> assigned to skill property
>>> of the s:checkbox tag. What is the syntax?
>>>
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>>
> http://www.nabble.com/key-property-of-s%3Acheckbox-tag-tp16241092p16256658.htm>
> l
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to
> read, copy, or distribute it, and we ask that you please delete it
> (including all copies) and notify the sender by return email. Delivery of
> this Message to any person other than the intended recipient(s) shall not
> be deemed a waiver of confidentiality and/or a privilege.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184560.ezm (zipped)--- "Emil.I" <iakoupov@(protected):
> <s:checkbox name="skillCode" key="%{skillCode}"/>
>
> skillCode being the property of object in a set whihc i iterate over,
> doesn't work.
Try #skill.skillCode, if you're using "skill" as the ID of the iterated
object.
> >>> <s:iterator value="job.skills" id="skill" status="status">
If it's a map IIRC the object pushed is a Map.Entry (allowing access by the
"key" and "value" properties), if it's a set it's probably the object.
Maybe reposting the data structure contained in the set and the set
declaration would be a good idea, though.
Dave

Attachment:
user_184564.ezm (zipped)
Hi
I dont know whether I good understant, but the interface Set have not KEY.
Supply the Set to List or Map.
Then you can use:
<s:iterator value="%{myList}">
<s:checkbox label="value" name="key" value="true" />
</s:iterator>
-------------------------------------------------------------------------------------------------------------
Tomas Jurman
Czech Republic
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184565.ezm (zipped)
Ohh man
guess what i used %{property} for label element and everything is fine.
newton.dave wrote:
>
> --- "Emil.I" <iakoupov@(protected):
>> <s:checkbox name="skillCode" key="%{skillCode}"/>
>>
>> skillCode being the property of object in a set whihc i iterate over,
>> doesn't work.
>
> Try #skill.skillCode, if you're using "skill" as the ID of the iterated
> object.
>
>> >>> <s:iterator value="job.skills" id="skill" status="status">
>
> If it's a map IIRC the object pushed is a Map.Entry (allowing access by
> the
> "key" and "value" properties), if it's a set it's probably the object.
>
> Maybe reposting the data structure contained in the set and the set
> declaration would be a good idea, though.
>
> Dave
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184566.ezm (zipped)you can also use <s:checkboxlist
http://struts.apache.org/2.0.6/docs/checkboxlist.html
so in your case take myList and use it to set the list attribute as in this
example
<s:checkboxlist name="foo" list="myList"/>
M-
----- Original Message -----
From: "Kibo" <tomasjurman@(protected)>
To: <user@(protected)>
Sent: Monday, March 24, 2008 2:38 PM
Subject: Re: key property of s:checkbox tag
>
> Hi
>
> I dont know whether I good understant, but the interface Set have not KEY.
> Supply the Set to List or Map.
>
> Then you can use:
> <s:iterator value="%{myList}">
> <s:checkbox label="value" name="key" value="true" />
> </s:iterator>
>
> --------------------------------------------------------------------------
-----------------------------------
> Tomas Jurman
> Czech Republic
> --
> View this message in context:
http://www.nabble.com/key-property-of-s%3Acheckbox-tag-tp16241092p16259170.h
tml
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_184563.ezm (zipped)I am using struts 1.x and looking at html:select and
html:optionsCollection for an example on how to use that.
It works great if I have one combo-box with my form.
I have an array of labels:
label_x
label_y
label_z
etc.
each one is a combo-box and they ALL have the same options to pick from,
and I want capture the data from each of these selects.
The number of combo-boxes will change dynamically ... based on previous
information.
And I'm trying to build an Action Form to capture all this data ....
and then I am trying to use html:select and html:optionsCollection in my
JSP.
Can anyone point me to good examples on how to construct my formbean and
jsp page?
In the meanwhile I will keep trying things out. Thanks!
Tom

Attachment:
user_184567.ezm (zipped)
Is this form of map creation no longer supported?
http://struts.apache.org/2.x/docs/select.html
I'm getting the dreaded "Syntax error in EL" on the list attribute using
2.0.11
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184568.ezm (zipped)--- stanlick <stanlick@(protected):
> Is this form of map creation no longer supported?
>
> http://struts.apache.org/2.x/docs/select.html
>
> I'm getting the dreaded "Syntax error in EL" on the list attribute using
> 2.0.11
From where are you getting that error? If it's from the container then you're
seeing the JSP 2.1 (?) issue, not an OGNL issue. AFAIK I've had no problems
in containers that don't attempt to handle the # character.
Dave

Attachment:
user_184569.ezm (zipped)
Exceptions kill! I added the following and it works now. However, I'm still
getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP editor
when it encounters the # character.
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jsp-property-group>
</jsp-config>
newton.dave wrote:
>
> --- stanlick <stanlick@(protected):
>> Is this form of map creation no longer supported?
>>
>> http://struts.apache.org/2.x/docs/select.html
>>
>> I'm getting the dreaded "Syntax error in EL" on the list attribute using
>> 2.0.11
>
> From where are you getting that error? If it's from the container then
> you're
> seeing the JSP 2.1 (?) issue, not an OGNL issue. AFAIK I've had no
> problems
> in containers that don't attempt to handle the # character.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184570.ezm (zipped)--- stanlick <stanlick@(protected):
> Exceptions kill! I added the following and it works now. However, I'm
> still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
editor
> when it encounters the # character.
MyEclipse doesn't know OGNL.
Dave

Attachment:
user_184571.ezm (zipped)
Arrrrrrrrrgggggggggggghhhhhhhhhhhhh!!!!!!!!!!!!!!!!
Now i's ignoring my valid ${foo.bar.baz} JSTL expressions too!
stanlick wrote:
>
> Exceptions kill! I added the following and it works now. However, I'm
> still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
> editor when it encounters the # character.
>
> <jsp-config>
> <jsp-property-group>
> <url-pattern>*.jsp</url-pattern>
> <el-ignored>true</el-ignored>
> </jsp-property-group>
> </jsp-config>
>
>
>
> newton.dave wrote:
>>
>> --- stanlick <stanlick@(protected):
>>> Is this form of map creation no longer supported?
>>>
>>> http://struts.apache.org/2.x/docs/select.html
>>>
>>> I'm getting the dreaded "Syntax error in EL" on the list attribute using
>>> 2.0.11
>>
>> From where are you getting that error? If it's from the container then
>> you're
>> seeing the JSP 2.1 (?) issue, not an OGNL issue. AFAIK I've had no
>> problems
>> in containers that don't attempt to handle the # character.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184572.ezm (zipped)#{} is reserved by JUEL. use the alternative map building notation.
musachy
On Mon, Mar 24, 2008 at 4:53 PM, stanlick <stanlick@(protected):
>
> Is this form of map creation no longer supported?
>
> http://struts.apache.org/2.x/docs/select.html
>
> I'm getting the dreaded "Syntax error in EL" on the list attribute using
> 2.0.11
>
>
> --
> View this message in context: http://www.nabble.com/%3Cs%3Aselect-list%3D%22-%7B%2701%27%3A%27Jan%27%2C-%2702%27%3A%27Feb%27%2C--...-%7D%22-tp16260809p16260809.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_184573.ezm (zipped)
I personally introduced my MyEclipse to OGNL:-p
newton.dave wrote:
>
> --- stanlick <stanlick@(protected):
>> Exceptions kill! I added the following and it works now. However, I'm
>> still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
> editor
>> when it encounters the # character.
>
> MyEclipse doesn't know OGNL.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184574.ezm (zipped)#@
java.util.LinkedHashMap@(protected)" }
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction
musachy
On Mon, Mar 24, 2008 at 5:11 PM, stanlick <stanlick@(protected):
>
> Arrrrrrrrrgggggggggggghhhhhhhhhhhhh!!!!!!!!!!!!!!!!
>
> Now i's ignoring my valid ${foo.bar.baz} JSTL expressions too!
>
>
>
>
> stanlick wrote:
> >
> > Exceptions kill! I added the following and it works now. However, I'm
> > still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
> > editor when it encounters the # character.
> >
> > <jsp-config>
> > <jsp-property-group>
> > <url-pattern>*.jsp</url-pattern>
> > <el-ignored>true</el-ignored>
> > </jsp-property-group>
> > </jsp-config>
> >
> >
> >
> > newton.dave wrote:
> >>
> >> --- stanlick <stanlick@(protected):
> >>> Is this form of map creation no longer supported?
> >>>
> >>> http://struts.apache.org/2.x/docs/select.html
> >>>
> >>> I'm getting the dreaded "Syntax error in EL" on the list attribute using
> >>> 2.0.11
> >>
> >> From where are you getting that error? If it's from the container then
> >> you're
> >> seeing the JSP 2.1 (?) issue, not an OGNL issue. AFAIK I've had no
> >> problems
> >> in containers that don't attempt to handle the # character.
> >>
> >> Dave
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/%3Cs%3Aselect-list%3D%22-%7B%2701%27%3A%27Jan%27%2C-%2702%27%3A%27Feb%27%2C--...-%7D%22-tp16260809p16261335.html
>
>
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_184575.ezm (zipped)I thought I had read that <s:select
list="\#{'01':'Jan','02':'Feb',[...]}: worked around the problem.
(*Chris*)
On Mon, Mar 24, 2008 at 2:14 PM, Musachy Barroso <musachy@(protected):
> #@
java.util.LinkedHashMap@(protected)" }
>
> http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction
>
> musachy
>
>
>
> On Mon, Mar 24, 2008 at 5:11 PM, stanlick <stanlick@(protected):
> >
> > Arrrrrrrrrgggggggggggghhhhhhhhhhhhh!!!!!!!!!!!!!!!!
> >
> > Now i's ignoring my valid ${foo.bar.baz} JSTL expressions too!
> >
> >
> >
> >
> > stanlick wrote:
> > >
> > > Exceptions kill! I added the following and it works now. However, I'm
> > > still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
> > > editor when it encounters the # character.
> > >
> > > <jsp-config>
> > > <jsp-property-group>
> > > <url-pattern>*.jsp</url-pattern>
> > > <el-ignored>true</el-ignored>
> > > </jsp-property-group>
> > > </jsp-config>
> > >
> > >
> > >
> > > newton.dave wrote:
> > >>
> > >> --- stanlick <stanlick@(protected):
> > >>> Is this form of map creation no longer supported?
> > >>>
> > >>> http://struts.apache.org/2.x/docs/select.html
> > >>>
> > >>> I'm getting the dreaded "Syntax error in EL" on the list attribute using
> > >>> 2.0.11
> > >>
> > >> From where are you getting that error? If it's from the container then
> > >> you're
> > >> seeing the JSP 2.1 (?) issue, not an OGNL issue. AFAIK I've had no
> > >> problems
> > >> in containers that don't attempt to handle the # character.
> > >>
> > >> Dave
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> > >> For additional commands, e-mail: user-help@(protected)
> > >>
> > >>
> > >>
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/%3Cs%3Aselect-list%3D%22-%7B%2701%27%3A%27Jan%27%2C-%2702%27%3A%27Feb%27%2C--...-%7D%22-tp16260809p16261335.html
> >
> >
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
>
>
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_184576.ezm (zipped)I thought I had read that <s:select
list="\#{'01':'Jan','02':'Feb',[...]}: worked around the problem.
(*Chris*)
On Mon, Mar 24, 2008 at 2:14 PM, Musachy Barroso <musachy@(protected):
> #@
java.util.LinkedHashMap@(protected)" }
>
> http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction
>
> musachy
>
>
>
> On Mon, Mar 24, 2008 at 5:11 PM, stanlick <stanlick@(protected):
> >
> > Arrrrrrrrrgggggggggggghhhhhhhhhhhhh!!!!!!!!!!!!!!!!
> >
> > Now i's ignoring my valid ${foo.bar.baz} JSTL expressions too!
> >
> >
> >
> >
> > stanlick wrote:
> > >
> > > Exceptions kill! I added the following and it works now. However, I'm
> > > still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
> > > editor when it encounters the # character.
> > >
> > > <jsp-config>
> > > <jsp-property-group>
> > > <url-pattern>*.jsp</url-pattern>
> > > <el-ignored>true</el-ignored>
> > > </jsp-property-group>
> > > </jsp-config>
> > >
> > >
> > >
> > > newton.dave wrote:
> > >>
> > >> --- stanlick <stanlick@(protected):
> > >>> Is this form of map creation no longer supported?
> > >>>
> > >>> http://struts.apache.org/2.x/docs/select.html
> > >>>
> > >>> I'm getting the dreaded "Syntax error in EL" on the list attribute using
> > >>> 2.0.11
> > >>
> > >> From where are you getting that error? If it's from the container then
> > >> you're
> > >> seeing the JSP 2.1 (?) issue, not an OGNL issue. AFAIK I've had no
> > >> problems
> > >> in containers that don't attempt to handle the # character.
> > >>
> > >> Dave
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> > >> For additional commands, e-mail: user-help@(protected)
> > >>
> > >>
> > >>
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/%3Cs%3Aselect-list%3D%22-%7B%2701%27%3A%27Jan%27%2C-%2702%27%3A%27Feb%27%2C--...-%7D%22-tp16260809p16261335.html
> >
> >
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
>
>
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_184583.ezm (zipped)Thanks brother --
Will 2.1 offer a pluggable EL? This should help to ease many of the UI
struggles.
Scott
On Mon, Mar 24, 2008 at 4:11 PM, Musachy Barroso <musachy@(protected):
> #{} is reserved by JUEL. use the alternative map building notation.
>
> musachy
>
> On Mon, Mar 24, 2008 at 4:53 PM, stanlick <stanlick@(protected):
> >
> > Is this form of map creation no longer supported?
> >
> > http://struts.apache.org/2.x/docs/select.html
> >
> > I'm getting the dreaded "Syntax error in EL" on the list attribute
> using
> > 2.0.11
> >
> >
> > --
> > View this message in context:
> http://www.nabble.com/%3Cs%3Aselect-list%3D%22-%7B%2701%27%3A%27Jan%27%2C-%2702%27%3A%27Feb%27%2C--...-%7D%22-tp16260809p16260809.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Scott
stanlick@(protected)

Attachment:
user_184577.ezm (zipped)
Hi all,
I'm having a problem with datetimepicker.
The form works great; the user is able to enter the date and I can persist
the data. Problem is when I wish to post the information on the screen - the
bean is populated but the value is not shown on the form :-(
code:
<s:datetimepicker name="Register.dob"
value=""
type="date"
staticDisplay="true"
label="DOB (MM/dd/yyyy)"
displayFormat="MM/dd/yyyy"
required="false"/>
thanks for any pointers!
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184578.ezm (zipped)--- xianwinwin <xianwinwin@(protected):
> <s:datetimepicker name="Register.dob"
> value=""
> type="date"
> staticDisplay="true"
> label="DOB (MM/dd/yyyy)"
> displayFormat="MM/dd/yyyy"
> required="false"/>
Don't know for sure, but you're setting the value to an empty string. I'd try
not doing that first.
Dave

Attachment:
user_184580.ezm (zipped)
duahhh me!!!...
thanks Dave, I got it, the value="" caused it
:-)
working fine!
newton.dave wrote:
>
> --- xianwinwin <xianwinwin@(protected):
>> <s:datetimepicker name="Register.dob"
>> value=""
>> type="date"
>> staticDisplay="true"
>> label="DOB (MM/dd/yyyy)"
>> displayFormat="MM/dd/yyyy"
>> required="false"/>
>
> Don't know for sure, but you're setting the value to an empty string. I'd
> try
> not doing that first.
>
> Dave
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184579.ezm (zipped) Sorry.

Attachment:
user_184581.ezm (zipped)
Hi,
I'm using the ajax theme and I wonder if anyone can assist in the validation
issue.
When the user clicks 'Update' and everything goes well, a message- "Update
successfully" is shown next to the update button.
when the user enter an invalid data - the validation interceptor kicks in
and a message- "ou have an error in the date entry!" is placed next to the
update button.
My question is this: how can I inform the user where is the problem?
say my form has:
1. name
2. dob
and the problem is in the dob format - how can I tell where the user was
wrong and advise him/her accordingly?
Thank you!!
configuration:
<result name="input">/pages/registration/error.jsp</result>
<result name="confirm-ajax">/pages/registration/confirm.jsp</result>
error.jsp
<%@(protected)" %>
<%
request.setAttribute("decorator", "none");
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy
server
%>
you have an error in the date entry!
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184582.ezm (zipped)
Hi, we have an S2 application with a lot of actions that are supposed to be
called from html forms. Since a few weeks ago something or someone has
started calling these actions directly, hence the required input values are
missing (which generate a lot of error mails to us administrators).
What might be causing this? Of course, we may have gotten some new, very
stubborn, users but due to the sudden frequency and pattern of the calls my
first bet would be some kind of automatic crawler. Some of the actions
require authentication, so it is not Google & Co. Could some kind of "web
page prefetching" cause this? Or any other ideas?
Anyway, I guess one solution would be to mark all expected input values as
required using S2 validation. However, it would be a bit cumbersome and
repetitive. To keep the application clean, I don't think it would be bad to
keep its current design with relying on form input values to be there (if
it's a combo box for instance, of course not for user entered text fields).
Can you think of some simpler means to stop these errors from occurring and
still keep it simple and Struts-wise?
Thanks,
Claes
--
Sent from the Struts - User mailing list archive at Nabble.com.