Re: Two applications, one in a sub folder

2010-06-24 Thread abhishek jain
On Fri, Jun 18, 2010 at 3:08 PM, abhishek jain wrote: > Dear friends, > I have a website in Struts 1.2 and i want to install another Struts > application made by me, in a subfolder of the website. I don't know will > this work, > Both are struts 1.2 applications. > I am using apache and Tomcat on

Re: different validate's() for different actions in java class

2010-06-24 Thread David Lu
I think having separate classes would be better. If the validations are almost the same, i.e. one for "Add" and one for "Update" of the same object, then perhaps you can have just one action extend another and they can share some common validation code in a method defined in the base action. O

Re: Page composition strategy

2010-06-24 Thread Dale Newfield
On 6/24/10 5:33 PM, Brian Thompson wrote: Out of curiosity, has anyone on the list actually used both Tiles and Sitemesh? I'd really like to read a comparison of the two I used tiles with Struts1 about 6 years ago. I've been using sitemesh with Struts2 for the last several years. I think that

Re: Page composition strategy

2010-06-24 Thread Brian Thompson
Out of curiosity, has anyone on the list actually used both Tiles and Sitemesh? I'd really like to read a comparison of the two, not just "Sitemesh is quite easy to use." vs. "I don't think you can get much more simple than Tiles." All I really get from Googling is Sitemesh fanboys bashing Tiles

Re: Page composition strategy

2010-06-24 Thread Ken
On Wed, 2010-06-23 at 10:36 +0100, Alex Rodriguez Lopez wrote: > 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 mad

Passing parameters to getter methods?

2010-06-24 Thread Chris Miles
Hi, I want to call s:iterator and fetch a list by passing it an index. This list will be dynamically generated. where I want getProducts(Integer index) to be called. Is this possible? Thanks Chris

Re: different validate's() for different actions in java class

2010-06-24 Thread Burton Rhodes
Depending on which method you call in your class you can just append that method name to the validate() method name. For example: public void validateEdit() { // Validate Stuff here } public void validateUpdate() { // Validate Stuff here } public void validate() { // Validate Stuff here

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

2010-06-24 Thread Oscar
I've consider that, but the problem is that i want to define dinamically the path of action, but to do that i need HttpServletRequest object and inside init() i don't have access to that object. I want to use httpServletRequest to extract server name and context name. 2010/6/23 Gustavo Felisberto

different validate's() for different actions in java class

2010-06-24 Thread lucas owen
Hi Struts 2 users, I have in a class different actions, each one with its own method. I want a validate() method for each of these actions, I'm not sure if I can have more than one validate() method in a class, so all the actions would have the same validation. should i split all my actions in d

RE: How to call to another action from the action class

2010-06-24 Thread Martin Gainty
each action is embedded in its own execution chain e.g. pre-action1 interceptor,action1,post-action1-interceptor pre-action2 interceptor,action2,post-action2-interceptor perhaps what you want is an *post-action1* interceptor http://struts.apache.org/2.x/docs/building-your-own-interceptor.htm

RE: Struts2 with JDK1.4.2_19 & Tomcat 5.0.28

2010-06-24 Thread VR Venugopal Rao
Dear Raghu, Please install tomcat 6.0 and Java 1.5/1.6 Version to avoid filter start errors. Regards, VR Venugopal Rao -Original Message- From: Raghumys4 [mailto:raghum...@gmail.com] Sent: 24 June 2010 15:51 To: user@struts.apache.org Subject: Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.

Re: Struts2 with JDK1.4.2_19 & Tomcat 5.0.28

2010-06-24 Thread Raghumys4
Hi All, Finally i solved this Issue. You have to include jar file named xalan-2.6.0.jar into WEB-INF which is used by Filter class. http://mirrors.ibiblio.org/pub/mirrors/maven2/xalan/xalan/2.6.0/xalan-2.6.0.jar Hope it will solve this Filter start error. My Software versions are Randy Bur

Re: How to call to another action from the action class

2010-06-24 Thread Jyothi Rajesh
You can try by giving the path of the action in place of /pages/ext/summary.jsp. Atleast that was how it is done in struts1.3 Thanks, Jyothi On Thu, Jun 24, 2010 at 11:39 AM, Kushan Jayathilake wrote: > Hi Guys, > > I want to call to another action mapping which has defined in the > struts.xml

Re: How to call to another action from the action class

2010-06-24 Thread chris
Hi, Use a type=redirectAction and then set the result to the action name (without .action) Chris > 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* > > method="testMethod"> >