How to call to another action from the action class

2010-06-23 Thread Kushan Jayathilake
Hi Guys, I want to call to another action mapping which has defined in the struts.xml file within another action class, its like this, *struts.xml* /pages/ext/summary.jsp currently im inside of another Action class, from that action class i need to call to the above menti

How to render HTML in Form Tag Label?

2010-06-23 Thread David Lu
Hi All, As part of a registration form, I want to have a checkbox that lets the user agree to some terms: ( ) I agree to the _Terms of Service_ Where _Terms of Service_ should be a link to another page with some legal mumbo jumbo. The obvious code is: Unfortunately the HTML for is encode

Re: Validating mutltiple uploads in a single action

2010-06-23 Thread Burton Rhodes
I think it would best to validate the type in a 'validate' function and make your action implement Validateable. It will give you greater control on the action/field errors that you present to the end user as well. Thanks, Burton On 6/23/10, john.vargh...@smartonline.com wrote: > Hi, >

Re: IMPORTANT Call action on application deploy, like servlet with load-on-startup (Struts 2)

2010-06-23 Thread Gustavo Felisberto
Create a servlet that makes a request to the action. Gustavo Felisberto On 23 de Jun de 2010, at 19:03, Oscar wrote: > Hi to all, i have the next situation: I need to call an action on > application startup like you can call a servlet on application startup > by setting parameter servlet on w

Validating mutltiple uploads in a single action

2010-06-23 Thread john . varghese
Hi, I have two file fields in my Action, one is an Image and one is a document. Is there a way I can use the allowedTypes filter to specify the valid content types specific to each type of field in the same action Thanks in advance. Regards, JOHN VARGHESE Sr. Developer Smart Online

Re: Modify JSON Format?

2010-06-23 Thread Ozu Natsu
Any example of how to do option #2? -- Michael Griffith Managing Partner, OpenPrinciple Consulting, LLC. http://www.openprinciple.com On Jun 23, 2010, at 12:21 AM, Rahul Mohan wrote: Hi, I don't think the plugin has any option like that. But, even if you manage to do that how will you ensur

Re: IMPORTANT Call action on application deploy, like servlet with load-on-startup (Struts 2)

2010-06-23 Thread satyanarayana katta
If u have used spring in ur application then u can use the init-method. Here is how it works You can configure your war to load the spring upon app start-up. The init method will auomatically get invoked. Sent from my iPhone On Jun 23, 2010, at 11:03 AM, Oscar wrote: > Hi to all, i have th

IMPORTANT Call action on application deploy, like servlet with load-on-startup (Struts 2)

2010-06-23 Thread Oscar
Hi to all, i have the next situation: I need to call an action on application startup like you can call a servlet on application startup by setting parameter servlet on web.xml . I can't use a servlet because i need to trigger my interceptors that initialize JPA EntityManager . Is there a way to a

Re: Get a list stored in the session to the struts tag

2010-06-23 Thread Dale Newfield
On 6/23/10 6:55 AM, Kushan Jayathilake wrote: Thank you very much for your quick reply, i have found the way, no need of that # sign there. That probably means that your action has a getSession() method. Since you may use that view layer page from a different action, or you may want to

Re: Get a list stored in the session to the struts tag

2010-06-23 Thread Kushan Jayathilake
Yeah that seems working too :) Thanks mate -- Regards Kushan Jayathilake On Wed, Jun 23, 2010 at 4:29 PM, James Cook wrote: > Ah ok cool, > > Just checked my book and it says > > > > > > > Are also valid. > > (Bonus points to anyone out there that can name the book ;) ) > > -Origina

RE: Get a list stored in the session to the struts tag

2010-06-23 Thread James Cook
Ah ok cool, Just checked my book and it says Are also valid. (Bonus points to anyone out there that can name the book ;) ) -Original Message- From: Kushan Jayathilake [mailto:kusha...@gmail.com] Sent: 23 June 2010 11:55 To: Struts Users Mailing List Subject: Re: Get a list stored

Re: Get a list stored in the session to the struts tag

2010-06-23 Thread Kushan Jayathilake
Hi James, Thank you very much for your quick reply, i have found the way, no need of that # sign there. Thanks again, you helped me to solve this :) -- Regards Kushan Jayathilake On Wed, Jun 23, 2010 at 4:20 PM, James Cook wrote: > Try %{#session.test} > > James > > -Original Messag

RE: Get a list stored in the session to the struts tag

2010-06-23 Thread James Cook
Try %{#session.test} James -Original Message- From: Kushan Jayathilake [mailto:kusha...@gmail.com] Sent: 23 June 2010 11:49 To: Struts Users Mailing List Subject: Get a list stored in the session to the struts tag Hi Guys, I want to get a list stored in the session and feed that value

Get a list stored in the session to the struts tag

2010-06-23 Thread Kushan Jayathilake
Hi Guys, I want to get a list stored in the session and feed that value in to the iterator... i have done like as shown below, but its not working Can anyone suggest me how to do this..? -- Regards Kushan Jayathilake

Re: Page composition strategy

2010-06-23 Thread Alex Rodriguez Lopez
BTW, any of those two are easily integrated into S2 as plugins (in fact already bundled with S2 distribution, just add the jars): http://struts.apache.org/2.1.8.1/docs/tiles-plugin.html http://struts.apache.org/2.1.8.1/docs/sitemesh-plugin.html I've been using Tiles and always found it confus

Re: Page composition strategy

2010-06-23 Thread Alex Rodriguez Lopez
I've been using Tiles and always found it confusing a little bit, now that I'm starting to test Sitemesh my vote would be for this last one. They accomplish the same thing, only Tiles is like saying each time "my page is made up of this, this and this". Sitemesh is more about taking a piece of

Re: [struts2]Provider org.apache.xalan.processor.TransformerFactoryImpl not found

2010-06-23 Thread abhishekshahi
Hi Prabesh, I was also facing the same issue with JDK1.6 and Tomcat6. I tried your solution and it worked. I removed xmlParserAPIs.jar from tomcat6\common\endorsed. Thanks for your post, -Abhishek -- View this message in context: http://old.nabble.com/-struts2-Provider-org.apache.xalan.proces