urlrewrite

2007-10-18 Thread ros
Hi! What regular expression can be used to rewrite this URLs: from /faq/LANG1/index.html?locale=LANG2 to /faq/LANG2/index.html?locale=LANG2 from /faq/LANG1/foo/index.html?locale=LANG2 to /faq/LANG2/foo/index.html?locale=LANG2 Thanks! -- View this message in context:

Re: struts2 validation for only one method in action

2007-10-17 Thread ros
For struts it's interceptor-ref name=validation cancel,execute,delete,edit,list,print /interceptor-ref Hope this helps. ros Igor Vlasov wrote: And how to disable the SERVER side validation when delete button clicked ? ros wrote: Java Script validation fro

how to keep object from action to action

2007-10-04 Thread ros
Hi! I use struts2 and want to load object in action1 and then access in in action2 and result jsp, like on drawing my1.html -(myobject.id)- action1.save -(myobject)- action2.edit -(myobject)- my2.jsp - my2.html I do not want to load this object in action2.edit if it was already loaded in

RE: how to keep object from action to action

2007-10-04 Thread ros
the Spring framework, you can define your object as Spring beans and have them injected to your action. -Original Message- From: ros [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 10:21 AM To: user@struts.apache.org Subject: how to keep object from action to action Hi

RE: how to keep object from action to action

2007-10-04 Thread ros
Yes, this is it. How to setup StrutsSpringObjectFactory as current? web.xml? struts.xml? Thanks. Jiang, Jane (NIH/NCI) [C] wrote: If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your object factory, and you define mypojo in your action to match your bean id in the

Re: [S2] how to read request parameter in windows-1257 encoding

2007-02-26 Thread ros
In web.xml I found CharacterEncodingFilter with UTF8 and force=true. That's why character encoding of the request was UFT-8 (getRequest().getCharacterEncoding() = UFT8) I've tested all decode combinations with this code: SetString encs =

how to read request parameter in windows-1257 encoding

2007-02-24 Thread ros
Hi! I have to read form post in windows-1257 encoding: HTML HEAD meta http-equiv=Content-Type content=text/html; charset=windows-1257 /HEAD form name=testForm action=http://localhost:8080/myStruts2Action.html; method=post input type=hidden name=AAA value=PAamp;#315;IV input type='submit'

struts2 validation for only one method in action

2007-02-21 Thread ros
Hi! How to configure struts2 validation for only one method in action? Thanks. -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a9082687 Sent from the Struts - User mailing list archive at Nabble.com.

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread ros
with the validation for that method. regards musachy On 2/21/07, cilquirm [EMAIL PROTECTED] wrote: I believe you can use validation annotation to specify validation routines at the method level. ros wrote: Hi! How to configure struts2 validation for only one method in action? Thanks

Re: [S2] struts2 validation for only one method in action

2007-02-21 Thread ros
Java Script validation fro button disabled by s:submit cssClass=button method=delete key=button.delete onclick=document.getElementById('ticketForm').onsubmit = null; / ros wrote: If I have in one form DELETE and SAVE buttons, how to turn off client side validation

s:select - format date

2007-02-20 Thread ros
Hi! Using Struts2 s:select id=reservationId key=ticket.select list=purchase.event.reservations listKey=id listValue=dateTime+' '+price / has output: select name=ticket.select id=reservationId option value=22009-09-27 00:00:00.0 0.01/option option

RE: select - format date

2007-02-20 Thread ros
. Format the dates before putting them on the list. - For formatting, review the classes java.util.Date, java.util.Calendar, java.text.DateFormat, java.text.SimpleDateFormat. Use appropriately. B. -Original Message- From: ros [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20