[S2] accessing enum inside a Class

2009-09-15 Thread Steven Yang
Hi I know if I want to access an enum in JSP i can do s:property value=@com.my.package.mye...@my_value/ However if MyEnum is public in a class, say MyClass, how do it get the value? I tried @com.my.package.myclass.mye...@my_value @com.my.package.mycl...@myenum@MY_VALUE

Re: [S2] accessing enum inside a Class

2009-09-15 Thread Lukasz Lenart
Did you set struts.ognl.allowStaticMethodAccess to true? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

mapping result input success to same jsp file

2009-09-15 Thread Tommy Pham
Hi @all, Is there any problem with action mapping result input success to the same jsp file? The jsp is not rendered correctly for input result and I'm not getting any error/warning from Struts with devMode=true. Thanks, Tommy

Re: mapping result input success to same jsp file

2009-09-15 Thread Lukasz Lenart
2009/9/15 Tommy Pham tommy...@yahoo.com: Is there any problem with action mapping result input success to the same jsp file?  The jsp is not rendered correctly for input result and I'm not getting any error/warning from Struts with devMode=true. Nope, it should work, maybe you have some

Re: [S2] accessing enum inside a Class

2009-09-15 Thread Steven Yang
yeahi just went back to check it is set to true On Tue, Sep 15, 2009 at 3:20 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: Did you set struts.ognl.allowStaticMethodAccess to true? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/

Re: mapping result input success to same jsp file

2009-09-15 Thread Paweł Wielgus
Hi all, and just to be sure that everything is ok, check in config browser plugin your mappings. http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html Best greetings, Paweł Wielgus. 2009/9/15 Lukasz Lenart lukasz.len...@googlemail.com: 2009/9/15 Tommy Pham

text box bean:write

2009-09-15 Thread m.harig
hello all i've doubt in generating dynamic text box values using bean:write , am populating a TreeSet object which has unique values , and i've to display it on jsp page on text boxes (for example ,the TreeSet has 5 elements) . how do i do it? please any1 suggest me. -- View this

Re: mapping result input success to same jsp file

2009-09-15 Thread Tommy Pham
Hi Pawel Lukasz, Thanks for the reply. --- On Tue, 9/15/09, Paweł Wielgus poulw...@gmail.com wrote: From: Paweł Wielgus poulw...@gmail.com Subject: Re: mapping result input success to same jsp file To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, September 15, 2009,

submit button

2009-09-15 Thread fea jabi
have a submit button which has the value of Add Employee html:submit property=actionAdd Employee/html:submit but when submitted I want the property to be set to another value add in the request action=add How can this be done? Thanks.

problem with encoding of parameters, type=redirect

2009-09-15 Thread Francisco Barroso (Fortes Informática)
I just migrated my application from ISO8859-1 to UTF-8. I have a problem with encoding of parameters. There is an error passing a parameter from xwork to an action using redirect: ... result name=returnFind type=redirect![CDATA[list.action?name=${name}page=${page}]] lt;/result ... If the

Re: problem with encoding of parameters, type=redirect

2009-09-15 Thread Tommy Pham
- Original Message From: Francisco Barroso (Fortes Informática) franciscobarr...@grupofortes.com.br To: user@struts.apache.org Sent: Tuesday, September 15, 2009 8:29:56 AM Subject: problem with encoding of parameters, type=redirect I just migrated my application from ISO8859-1 to

Re: problem with encoding of parameters, type=redirect

2009-09-15 Thread Greg Lindholm
If If you are using Tomcat as a server then you will need to add URIEncoding=UTF-8 attribute to the Connector in the server.xml file, If not specified, ISO-8859-1 will be used [1]. This URIEncoding attribute applies only to GET requests (not POST). [1]

Re: submit button

2009-09-15 Thread Dale Newfield
fea jabi wrote: have a submit button which has the value of Add Employee html:submit property=actionAdd Employee/html:submit but when submitted I want the property to be set to another value add in the request action=add How can this be done? Without javascript it cannot. -Dale

RE: submit button

2009-09-15 Thread fea jabi
may I know what the javascript will be? Date: Tue, 15 Sep 2009 11:59:20 -0400 From: d...@newfield.org To: user@struts.apache.org Subject: Re: submit button fea jabi wrote: have a submit button which has the value of Add Employee html:submit property=actionAdd

Re: submit button

2009-09-15 Thread Dale Newfield
fea jabi wrote: may I know what the javascript will be? add an onclick on the button that adds the parameter you want. Or just set a name on the submit button so that Add+Employee will be sent if that button is pressed, and teach the action to decipher all the i18n versions of that string.

Re: problem with encoding of parameters, type=redirect

2009-09-15 Thread Francisco Barroso (Fortes Informática)
I've done it already (change the struts.i8n.encoding in struts.xml/properties). The problem persists... Tommy Pham escreveu: - Original Message From: Francisco Barroso (Fortes Informática) franciscobarr...@grupofortes.com.br To: user@struts.apache.org Sent: Tuesday, September

Re: problem with encoding of parameters, type=redirect

2009-09-15 Thread Francisco Barroso (Fortes Informática)
I've done it already (change URIEncoding to UTF-8). The problem persists... Greg Lindholm escreveu: If If you are using Tomcat as a server then you will need to add URIEncoding=UTF-8 attribute to the Connector in the server.xml file, If not specified, ISO-8859-1 will be used [1]. This

Re: problem with encoding of parameters, type=redirect

2009-09-15 Thread Greg Lindholm
Better show your full action and result configuration from struts.xml so we can see how you are passing parameters. 2009/9/15 Francisco Barroso (Fortes Informática) franciscobarr...@grupofortes.com.br I've done it already (change URIEncoding to UTF-8). The problem persists... Greg Lindholm

Re: problem with encoding of parameters, type=redirect

2009-09-15 Thread Francisco Barroso (Fortes Informática)
flow variable nomeBusca: (update) ColaboradorEditAction.java xwork-Colaborador.xml (list) ColaboradorListAction.java (BUG) ColaboradorEditAction.java-- package com.fortes.rh.web.action.geral; import com.fortes.rh.web.action.MyActionSupportEdit; import

Re: problem with encoding of parameters, type=redirect

2009-09-15 Thread Greg Lindholm
I would change your result configuration to: result name=retornoBusca type=redirectAction param name=actionNamelist/param param name=nomeBusca${nomeBusca}/param param name=cpfBusca${cpfBusca}/param param name=page${page}/param /result This style works

RE: Intermittent Session Problems in Strut2.

2009-09-15 Thread John Liptak
I recommend using a tool like Fiddler or HttpWatch to see if your session cookie is being messed with. I have seen Apache proxy server 2.0 build 50 cache the cookie set command on images etc. So when you get a cached copy of an image you get the session that the other user had when the image was