Re: Need to lookup additional data to append to redirection to outside web site

2011-06-20 Thread Kushan Jayathilake
Hi, Set the attributes in the request (request.setAttribute(name, value);) then dispatch the request. RequestDispatcher dispatcher = getServletContext() .getRequestDispatcher(URL of the page); dispatcher.forward(request, response); On Tue, Jun 21, 2011 at 7:14 AM, Jo

Html:link Javascript validation

2011-06-20 Thread sivaks75
Hi, I wanted to perform javascript validation when HTML link is clicked. If validation fails, I want to stop the process. In Javascript function, i added return false. so that it stops the process. When I was running the application, after performing the javascript validation (though Layout ID is

Re: access static method with request parameter

2011-06-20 Thread Lukasz Lenart
2011/6/20 k3v1n : > My request is HttpServletRequest instance! not Map! I didn't know that! My magic ball is broken! > I don't understand! I know very well Struts1! We're taking about Struts 2! You can use ServletActionContext [1] [1] http://struts.apache.org/2.x/struts2-core/

Need to lookup additional data to append to redirection to outside web site

2011-06-20 Thread John Himpel
Good evening, I have an S2 application the needs to: 1) Verify some input parameters (I know how to do this) 2) Retrieve some additional data based upon the input parameters (I know how to do this). 3) Then format a "post" type http request with hidden fields containing data from #1 and #2 above t

Re: optgroup supporting cssClass? or dynamicAttributes?

2011-06-20 Thread struts . rgm
https://issues.apache.org/jira/browse/WW-3209 I wonder if I've just run into this unresolved issue. On Jun 20, 2011, at 5:37 PM, struts@spamgourmet.com wrote: > Is it possible for optgroup to support some of the attributes that other > UIBeans have, such as "cssClass" and "id" ? > > I crea

optgroup supporting cssClass? or dynamicAttributes?

2011-06-20 Thread struts . rgm
Is it possible for optgroup to support some of the attributes that other UIBeans have, such as "cssClass" and "id" ? I created my own theme and edited optgoup.ftl to check for parameters.cssClass??, but it appears that this is not enough. Perhaps some of the universal HTML attributes should be

Re: dinamic name for textfield

2011-06-20 Thread Chris Pratt
While you can't nest tags like that, you can use OGNL to get the data you want. It would look something like: (*Chris*) On Mon, Jun 20, 2011 at 6:58 AM, k3v1n wrote: > Hi all, > > I need pass dinamic name at textfield tag. > > For example: > name="<%=request.getParameter("ty

dinamic name for textfield

2011-06-20 Thread k3v1n
Hi all, I need pass dinamic name at textfield tag. For example: .myField" maxlength="250" size="20px;"/> Is it possible? My Action contains these objects: MyBean myBean1 = new MyBean(); MyBean myBean2 = new MyBean(); his name is generic, ty

Re: access static method with request parameter

2011-06-20 Thread k3v1n
My request is HttpServletRequest instance! not Map! I don't understand! I know very well Struts1! Help please -- View this message in context: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4506342.html Sent from the Struts - User maili

Re: Action[/emaillayout] does not contain specified method (check logs)

2011-06-20 Thread sivaks75
Hi, Here is the actual URL which is getting posted http://localhost:9080/dashboard/emaillayout.do?function=fileUpload I am exactly using the same URL for non-ajax request as given below(ajax related code commented out). if(uploadFile != null && uploadFile.value == "") al

Re: Action[/emaillayout] does not contain specified method (check logs)

2011-06-20 Thread Dave Newton
What's with the weird stuff in the URL? What's the actual request URL end up looking like (as per proxy/Firebug/etc. And are you using the exact same URL from the browser when testing it as a non-Ajax request? Dave On Monday, June 20, 2011, sivaks75 wrote: > Hi, > > I am using struts 1.3.8 with

Action[/emaillayout] does not contain specified method (check logs)

2011-06-20 Thread sivaks75
Hi, I am using struts 1.3.8 with ajax to load the content of a selected file into another textarea as soon as user selects the text file. my action class extended from DispatchAction. Here is the URL, i specified in ajax request: var url = "emaillayout.do?function=fileUpload"; I have writt

Re: access static method with request parameter

2011-06-20 Thread Dave Newton
Or, pass in what you actually need from the request instead of introducing a dependency on the servlet spec. What's required from the request? Dave On Jun 20, 2011 7:19 AM, "Lukasz Lenart" wrote: > 2011/6/20 k3v1n : >> >> aaa >> > > Wrap call to myMethod inside your action that should impleme

Re: access static method with request parameter

2011-06-20 Thread Lukasz Lenart
2011/6/20 k3v1n : > > aaa > Wrap call to myMethod inside your action that should implement RequestAware interface [1], like below public class MyAction implements RequestAware { private Map request; void setRequest(java.util.Map request) { this.request = request; } public boolean isMyMth

Re: Struts 2.2.3 i18n properties not reloaded after redeployed

2011-06-20 Thread Maurizio Cucchiara
Don't use property reload in production environment: it could create concurrency issues [1] (in addition to performance issues). You should seriously re-consider if it is really necessary. [1] https://issues.apache.org/jira/browse/WW-3461 On 20 June 2011 12:47, Vincent Lin wrote: > Hi Steven, >

Re: Struts 2.2.3 i18n properties not reloaded after redeployed

2011-06-20 Thread Vincent Lin
Hi Steven, I didn't restart the server. We are usint JBoss. We just copy the war file to deploy directory (the directory is similar to tomcat webapps) and let Jboss to redeploy it. If the server is restarted, the i18 properties will be reloaded. Regards, Vincent On Mon, Jun 20, 2011 at 3:14 PM

Re: access static method with request parameter

2011-06-20 Thread k3v1n
Yes, I try it... myMethod is called but request param is null -- View this message in context: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4505739.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: access static method with request parameter

2011-06-20 Thread Maurizio Cucchiara
Have you already tried something like #request? On 20 June 2011 11:23, k3v1n wrote: > Hi all, > > I need use struts 2 tag with static method. > > Example: > > My method... > > class org.mydomain.MyClass > method myMethod(HttpServletRequest) > > in jsp > > > aaa > > > but in myMethod, request pa

access static method with request parameter

2011-06-20 Thread k3v1n
Hi all, I need use struts 2 tag with static method. Example: My method... class org.mydomain.MyClass method myMethod(HttpServletRequest) in jsp aaa but in myMethod, request param is always null! Why? I think my OGNL expression is wrong. I set in my struts.xml this constant: Help me ple

Re: getText on XSLT transformation on an Action

2011-06-20 Thread Josep María Formentí Serra
If you are using xalan, I've used this method in a project: 1. Define the attribute xmlns:Dict="xalan://com.example.Dict" in xsl:stylesheet tag. 2. Put the label: 3. Create a class Dict with a method trans(String) and put it in your classpath. This method can read an application.pr

Re: Struts 2.2.3 i18n properties not reloaded after redeployed

2011-06-20 Thread Steven Yang
i am not sure if there was any bug fix regarding i18n reload. but can you describe how you "redeploy" your app? do shutoff your server then deploy then start? or do you just deploy without turning off anything? On Mon, Jun 20, 2011 at 1:55 PM, Vincent Lin wrote: > Hi, > > We migrated to Struts 2.