Re: Form bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, Juanjo Cuadrado [EMAIL PROTECTED]: Hi, Where is the Form bean into the request??? What is the label?? I want to put a actionform in the request and I dont know where... (prepopulate???) See: http://struts.apache.org/1.x/faqs/newbie.html#prepopulate Antonio

Re: Simple helloworld test fails with Could not find action orresult

2008-03-06 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans [EMAIL PROTECTED] wrote: Any theories where the 4th package is being created? CLUE: take a harder look at web.xml in the original post. That's why I asked about the actionPackages element; is that it? Dave Precisely. I didn't realise that

Re: Structure of a Struts Application

2008-03-06 Thread Antonio Petrelli
2008/3/6, getElectro [EMAIL PROTECTED]: Hi ppl, I got a lil doubt, What do you guys are used to do when developing simple applications such as a small BookStore? I did mean what I should use: * Action or DipatchAction ? * form-bean or ActionForm ? * Validate by calling the

Re: I cannot transfer html:select property to Form Bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, ryan webb [EMAIL PROTECTED]: html:form action=sortList.do html:select property=formatList html:option value=format/ html:option value=DVD+R/ html:option value=DVD-R/ /html:select html:submit value=Sort Now/ /html:form when I am debugging, I

Open A New Page In the Server Side

2008-03-06 Thread chenshibing
Hi, all: I have a question to ask: is it possible to open a new browser page in the server side instead of using form.target=__blank? User submits a form then the server side codes do some validations. If the form valid, a new page is return for printing, or the original page is returned with

Re: I cannot transfer html:select property to Form Bean

2008-03-06 Thread ryan webb
Dear Antonio, Yes I did select an element I choose DVD+R then when I click sort now button the WebPage exploded containing Tomcat Error Message. (null pointer exception). By the way, thank you very much for reading my email and for the reply..=) God bless, Ryan Webb --Philippines On Thu, Mar

Re: I cannot transfer html:select property to Form Bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, ryan webb [EMAIL PROTECTED]: Yes I did select an element I choose DVD+R then when I click sort now button the WebPage exploded containing Tomcat Error Message. (null pointer exception). Mmmm this is strange. Can I see your Action, ActionForm and struts-config.xml (related to this

[OT] Re: Open A New Page In the Server Side

2008-03-06 Thread Antonio Petrelli
2008/3/6, chenshibing [EMAIL PROTECTED]: Hi, all: I have a question to ask: is it possible to open a new browser page in the server side instead of using form.target=__blank? User submits a form then the server side codes do some validations. If the form valid, a new page is return for

Re: I cannot transfer html:select property to Form Bean

2008-03-06 Thread ryan webb
Yes I agree..I cannot find the problem, I think it is much better if there's 2 pairs of eyes looking. Here is the Action code. public class SortListAction extends org.apache.struts.action.Action { /* forward name=success path= */ private final static String SORT_LIST = sortList;

Re: I cannot transfer html:select property to Form Bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, ryan webb [EMAIL PROTECTED]: form-bean name=SortListActionForm type= formbeans.SortListActionForm/ form-bean name=SortListActionForm type= formbeans.SortListActionForm/ Why two form beans with the same name? Is it a typing mistake, or an error of your code?

Determining the Current Page

2008-03-06 Thread Asad Habib
Is there a way to use Struts tags only to determine which page a user is currently on? I know this can be done using the JSP request object but I'd rather use Struts tags if possible. Thank you. - Asad - To unsubscribe, e-mail:

Re: I cannot transfer html:select property to Form Bean

2008-03-06 Thread ryan webb
Dear Antonio, That is same in my source code..do you think that is the cause? I will check that one..And send you informations soon! God bless, Ryan Webb -- Philippines On Thu, Mar 6, 2008 at 5:03 PM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/3/6, ryan webb [EMAIL PROTECTED]:

Re: Form bean

2008-03-06 Thread Juanjo Cuadrado
Thanks Antonio, but I need to prepopulate a ActionForm from another Action and forward it to jsp... Sorry for my English. 2008/3/6, Antonio Petrelli [EMAIL PROTECTED]: 2008/3/6, Juanjo Cuadrado [EMAIL PROTECTED]: Hi, Where is the Form bean into the request??? What is the label??

[S2] Writing a simple interceptor that set a properties of the action.

2008-03-06 Thread GF
I want to do a simple thing, I have an action like this public class MyAction { private String myVar; public setMyVar(String myVar) { this.myVar = myVar; } } Inside my Interceptor i want to put in my Action a string inside myVar property of the Action. In few words, I need to discover if the

Re: Struts 2 + GWT problem

2008-03-06 Thread Musachy Barroso
Disregards that tutorial, and try to use the GWT plugin, http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html regards musachy On Thu, Mar 6, 2008 at 12:44 AM, Shoaib Gauhar [EMAIL PROTECTED] wrote: Hello, I am trying to integrate Struts 2 and GWT. I am using the tutorial on the following

Re: [S2] Writing a simple interceptor that set a properties of the action.

2008-03-06 Thread stanlick
Is it a dynamic value you need to set or could you use dependency injection? S On Thu, Mar 6, 2008 at 6:06 AM, GF [EMAIL PROTECTED] wrote: I want to do a simple thing, I have an action like this public class MyAction { private String myVar; public setMyVar(String myVar) { this.myVar =

Re: [S2] Writing a simple interceptor that set a properties of the action.

2008-03-06 Thread Adam Hardy
I didn't see the second half of your message until I'd sent that. What calls to the setters are you asking about? Do you mean any random property? Are you talking about HTTP parameters? Have you checked out the commons-beanutils API? Adam Hardy on 06/03/08 12:47, wrote: Unless you want to do

Re: [S2] Writing a simple interceptor that set a properties of the action.

2008-03-06 Thread Adam Hardy
Unless you want to do it via introspection, then a good way would be to set the appropriate actions to implement an interface having that setter. Then you can use instanceof to see if the action in your interceptor implements your interface. If so, cast it to the interface and call the setter.

Re: [S2] Writing a simple interceptor that set a properties of the action.

2008-03-06 Thread GF
On Thu, Mar 6, 2008 at 1:52 PM, Adam Hardy [EMAIL PROTECTED] wrote: I didn't see the second half of your message until I'd sent that. What calls to the setters are you asking about? Do you mean any random property? Are you talking about HTTP parameters? In few words, I have a property

Field errors are firing twice twice

2008-03-06 Thread ravi_eze
hi, When i submit the form i see the field errors coming twice beside the text box. The code is as follows: in JSP: tds:textfield name=currentEvent.criterion.name theme=simple

Re: [S2] Writing a simple interceptor that set a properties of the action.

2008-03-06 Thread stanlick
You could add the generated parameter to the parameters map through your interceptor. S On Thu, Mar 6, 2008 at 7:22 AM, GF [EMAIL PROTECTED] wrote: On Thu, Mar 6, 2008 at 1:52 PM, Adam Hardy [EMAIL PROTECTED] wrote: I didn't see the second half of your message until I'd sent that. What

Re: Form bean

2008-03-06 Thread Antonio Petrelli
2008/3/6, Juanjo Cuadrado [EMAIL PROTECTED]: Thanks Antonio, but I need to prepopulate a ActionForm from another Action and forward it to jsp... I think that the best way to manage it is to put a simple bean (no ActionForm) that contains the values that you want to put in request scope, and

Problem while reading applicationContext.xml file automatically in integrating struts2+springs2.5+hiberante3.2

2008-03-06 Thread RajiR
HI, I have injected springs into struts2 using applicationContext.xml file.While inserting records into database,am getting spring session by again loading applicationContext.xml file using a java class.Here is that java class: package service; import

Re: Problem while reading applicationContext.xml file automatically in integrating struts2+springs2.5+hiberante3.2

2008-03-06 Thread Musachy Barroso
You should ask this question(s) on the spring forum. In any case you should let the Spring load applicationContext.xml, and not do it yourself, unless you have a good reason for it. musachy On Thu, Mar 6, 2008 at 8:49 AM, RajiR [EMAIL PROTECTED] wrote: HI, I have injected springs into

RE: Simple helloworld test fails with Could not find action orresult

2008-03-06 Thread Karr, David
So is the package attribute supposed to match the Java package of the Action classes? Martin Gainty had earlier said I should use actionPackages. Before I added that, it wasn't even getting into my Action classes at all. If I now remove actionPackages, change the package attribute to match my

RE: Simple helloworld test fails with Could not find action orresult

2008-03-06 Thread Karr, David
-Original Message- From: Karr, David Sent: Thursday, March 06, 2008 6:30 AM To: Struts Users Mailing List Subject: RE: Simple helloworld test fails with Could not find action orresult So is the package attribute supposed to match the Java package of the Action classes? Martin

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
Hi Wes, Thanks for the reply. The s:action tag seems to work. I have a tiles action that is the actual URL that the user would navigate to, and in the JSP fragment that is the body tile, I am using the s:action to invoke the XSLT action and return the HTML fragment for the body. Thanks so

JSP EL expressions with Struts 2 Tags

2008-03-06 Thread Luiz Henrique Rossetti
When I can re-use JSP EL expressions with Struts 2 Tags?

Re: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Martin Gainty
Michael- remembering our academic coursework teaches Not(Not condition) evaluates positive be sure to set ignoreContextParams=false as in s:action tag ignoreContextParams=false ... I would encourage you to read Dave's article on using ResultTypes at

RE: Simple helloworld test fails with Could not find action orresult

2008-03-06 Thread Dave Newton
--- Karr, David [EMAIL PROTECTED] wrote: So is the package attribute supposed to match the Java package of the Action classes? Martin Gainty had earlier said I should use actionPackages. Before I added that, it wasn't even getting into my Action classes at all. If I now remove

How to implement an help

2008-03-06 Thread Paranoid_Fabio
Hello. I'm trying to implement an help page consisting of and index (on the left) and a content part(on the right) that is refreshed when the user click on an index entry, like a common help. I'm having trouble to do this.. I'm trying using two iframes but I can't manage to get the second frame

Re: Not Able to call Action

2008-03-06 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: public String execute() throws Exception{ return SUCCESS; } Do you have SUCCESS defined anywhere? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Not Able to call Action

2008-03-06 Thread Othon Reyes Sanchez
I guess somebody else have a very similar problem Change: package name=aum.struts.tester extends=struts-default For: package name=aum.struts.tester extends=struts-default namespace=/ Also are you extending form ActionSupport in your TestExample class?. On Thu, Mar 6, 2008 at 10:42 AM, aum

Re: Not Able to call Action

2008-03-06 Thread aum strut
yes i am extending ActionSupport class and as i know it implimets Action interface where SUCCESS is defined. On 3/6/08, Dave Newton [EMAIL PROTECTED] wrote: --- aum strut [EMAIL PROTECTED] wrote: public String execute() throws Exception{ return SUCCESS; } Do you have SUCCESS defined

Re: How to implement an help

2008-03-06 Thread Othon Reyes Sanchez
as a workaround use javascript. Define a function that you call on the click event of your anchor. have you tried to change to frames insted of iframes?. in wich browser are you testing your page?. On Thu, Mar 6, 2008 at 10:38 AM, Paranoid_Fabio [EMAIL PROTECTED] wrote: Hello. I'm trying to

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
newton.dave wrote: If you turn on devMode do you see any additional log messages that might indicate a problem? I don't see anything immediately obvious, but it's late and I'm crabby ;) You can also turn the logging levels up for both S2 and XWork and see if any additional information is

Re: Not Able to call Action

2008-03-06 Thread Dave Newton
--- Othon Reyes Sanchez [EMAIL PROTECTED] wrote: I guess somebody else have a very similar problem Change: package name=aum.struts.tester extends=struts-default For: package name=aum.struts.tester extends=struts-default namespace=/ The other problem was occurring specifically because of

Re: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Othon Reyes Sanchez
Wow the ability of S2 to do this is awesome and looks simple!!. On Thu, Mar 6, 2008 at 9:50 AM, Martin Gainty [EMAIL PROTECTED] wrote: Michael- remembering our academic coursework teaches Not(Not condition) evaluates positive be sure to set ignoreContextParams=false as in s:action tag

Result annotation and interceptors

2008-03-06 Thread meissa . sakho
Hi all, I'm trying to use the result annotation in some of my actions. I've a custom stack of interceptors that are defined in my struts config file. This stack of interceptors must be called by every action(including those that are not in the config file) actions. I've a strange behaviour

Re: Not Able to call Action

2008-03-06 Thread aum strut
Hi Dave and Othon, even on adding namespace and even removing the annotation based validations from the action i am still facing the same problem. On 3/6/08, Dave Newton [EMAIL PROTECTED] wrote: --- Othon Reyes Sanchez [EMAIL PROTECTED] wrote: I guess somebody else have a very similar

Being driven mad by the ParametersInterceptor

2008-03-06 Thread Jonny Cavell
Fed up with messages such as Error setting expression 'xxx' with value '[Ljava.lang.String;@19a82ee', I got rid of this Interceptor from my default stack. However, I wanted to use it for a particular action, so I added it there. It took me a while to work out that it needed to go before the

Re: Form bean

2008-03-06 Thread Juanjo Cuadrado
Great idea Thanks! 2008/3/6, Antonio Petrelli [EMAIL PROTECTED]: 2008/3/6, Juanjo Cuadrado [EMAIL PROTECTED]: Thanks Antonio, but I need to prepopulate a ActionForm from another Action and forward it to jsp... I think that the best way to manage it is to put a simple bean (no

Not Able to call Action

2008-03-06 Thread aum strut
Hi All, I am a starter in struts2. i am developing a simple programme in struts2 which will take the name and date as input and will display the same in the next page. below is the sample code of my action calss struts.xml my index.jsp page is displaying properly whcih is asking for the inputs

Re: How to implement an help

2008-03-06 Thread Paranoid_Fabio
Thank you for the reply. I haven't tried with frame, but only with iframe..i thought that target work. I'm testing with Firefox 2.0.0.12. I will try with frame. Paranoid_Fabio wrote: Hello. I'm trying to implement an help page consisting of and index (on the left) and a content part(on the

Re: Being driven mad by the ParametersInterceptor

2008-03-06 Thread Dave Newton
--- Jonny Cavell [EMAIL PROTECTED] wrote: Fed up with messages such as Error setting expression 'xxx' with value '[Ljava.lang.String;@19a82ee', I got rid of this Interceptor from my default stack. However, I wanted to use it for a particular action, so I added it there. It took me a while

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
As a suggestion try to add log4j to your application and change the level of messages to debug. In your xml add the following: context-param param-namewebAppRootKey/param-name param-valuesap.root/param-value /context-param context-param

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
BTW the text in orange needs to be equal but it can be any text. On Thu, Mar 6, 2008 at 11:21 AM, Othon Reyes Sanchez [EMAIL PROTECTED] wrote: As a suggestion try to add log4j to your application and change the level of messages to debug. In your xml add the following: context-param

Re: [struts] Determining the Current Page

2008-03-06 Thread Dale Newfield
Asad Habib wrote: Is there a way to use Struts tags only to determine which page a user is currently on? I know this can be done using the JSP request object but I'd rather use Struts tags if possible. Thank you. That question has no answer, since whenever server side code is running the user

Re: Not Able to call Action

2008-03-06 Thread Othon Reyes Sanchez
* my index.jsp page is displaying properly whcih is asking for the inputs but when i click the submitt button it is giving me the error as *The requested resource (/StrutsStarter/TestExample) is not availableE** It is interesting why you have */StrutsStarter/TestExample *instead of *

Re: Being driven mad by the ParametersInterceptor

2008-03-06 Thread Jonny Cavell
I haven't moved the checkbox interceptor, but of course the order has changed - in the default stack the checkbox interceptor comes before the params interceptor. This highlights a problem in the way that interceptors are configured. If I want to remove one from the default stack, I can't then

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Dave Newton
--- Kelly.Graus [EMAIL PROTECTED] wrote: newton.dave wrote: I tried turning on devMode (added constant name=struts.devMode value=true / to my struts.xml file), but I didn't see any change. I'm thinking that in itself is indicative of a problem. I'm using Eclipse to publish and test this

Re: Not Able to call Action

2008-03-06 Thread aum strut
ther is one more thing as i am using myeclipse for the development and when i am running the application it is giving the warning as *No configuration found for the specified action: 'TestExample' in namespace: ''. Form action defaulting to 'action' attribute's literal value * On 3/6/08, Othon

ParameterIntercepter throws unexpected Exception on parameter

2008-03-06 Thread Kropp, Henning
Hi List, the ParameterIntercepter throws the following exception at my page: ERROR [btpool0-1] ParametersInterceptor.setParameters(204) | ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'button.regi ster' on 'class com.webapp.action.SignupAction: Error setting

Re: Being driven mad by the ParametersInterceptor

2008-03-06 Thread Dave Newton
--- Jonny Cavell [EMAIL PROTECTED] wrote: This highlights a problem in the way that interceptors are configured. If I want to remove one from the default stack, I can't then easily put it back in the same place for a specific action. On the rare occasions where I've needed this functionality

Re: Not Able to call Action

2008-03-06 Thread aum strut
and if i will add the namespace to the struts.xml it is giving the error message as *No configuration found for the specified action: 'TestExample' in namespace: ''. Form action defaulting to 'action' attribute's literal value. * any idea about these warnings.. On 3/6/08, aum strut [EMAIL

Re: [struts] Being driven mad by the ParametersInterceptor

2008-03-06 Thread Dale Newfield
Jonny Cavell wrote: So that brings me back to the original problem - getting all these Error setting expression 'xxx' with value '[Ljava.lang.String;@19a82ee' messages for every single parameter that doesn't have an associated setter method on the action. How do I stop these errors? Unless I'm

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
Well, it turns out that for some reason, Eclipse isn't publishing my struts.xml file when it's in the classes directory. Moving it to the WEB-INF directory causes it to be published, by it doesn't do anything there. I manually copied it to the correct location after publishing, then started the

Re: How to implement an help

2008-03-06 Thread Paranoid_Fabio
Ok. I tried also with frame but no way. When I click on the index entry, the corrisponding help page is showed in a new browser window... :( Paranoid_Fabio wrote: Hello. I'm trying to implement an help page consisting of and index (on the left) and a content part(on the right) that is

Re: [struts] Being driven mad by the ParametersInterceptor

2008-03-06 Thread Kropp, Henning
Dale Newfield schrieb: Jonny Cavell wrote: So that brings me back to the original problem - getting all these Error setting expression 'xxx' with value '[Ljava.lang.String;@19a82ee' messages for every single parameter that doesn't have an associated setter method on the action. How do I stop

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
are you using any plugin for eclipse like lomboz or myeclipse? On Thu, Mar 6, 2008 at 11:46 AM, Kelly.Graus [EMAIL PROTECTED] wrote: Well, it turns out that for some reason, Eclipse isn't publishing my struts.xml file when it's in the classes directory. Moving it to the WEB-INF directory

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
Othon Reyes Sanchez wrote: are you using any plugin for eclipse like lomboz or myeclipse? No, I don't have any additional plugins installed (unless they come with the default Eclipse install). -- View this message in context:

Re: validation excludeMethods version 2.0.11

2008-03-06 Thread akash agrawal
Dave, Thanks for the response. Could you give an example of how to use the approach you suggested? Here is my code: interceptor-stack name=myStack interceptor-ref name=defaultStack param name=validation.excludeMethodsdelete, getA, getB/param /interceptor-ref /interceptor-stack

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Othon Reyes Sanchez
No they come. if you can pay myeclipse use it. it is very good plugin. try lomboz, it's free and also a very good plugin. Both of them will deploy your struts.xml every time you change it but restart your server to apply chenges. On Thu, Mar 6, 2008 at 11:59 AM, Kelly.Graus [EMAIL PROTECTED]

Re: [struts] ParameterIntercepter throws unexpected Exception on parameter

2008-03-06 Thread Dale Newfield
Kropp, Henning wrote: ERROR [btpool0-1] ParametersInterceptor.setParameters(204) | ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'button.regi ster' on 'class com.webapp.action.SignupAction: Error setting expression 'button.register' with value

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Dave Newton
--- Kelly.Graus [EMAIL PROTECTED] wrote: Well, it turns out that for some reason, Eclipse isn't publishing my struts.xml file when it's in the classes directory. Moving it to the WEB-INF directory causes it to be published, by it doesn't do anything there. I manually copied it to the correct

Re: validation excludeMethods version 2.0.11

2008-03-06 Thread Dave Newton
--- akash agrawal [EMAIL PROTECTED] wrote: Thanks for the response. Could you give an example of how to use the approach you suggested? Here is my code: interceptor-stack name=myStack interceptor-ref name=defaultStack param name=validation.excludeMethodsdelete, getA, getB/param

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Kelly.Graus
newton.dave wrote: --- Kelly.Graus [EMAIL PROTECTED] wrote: Well, it turns out that for some reason, Eclipse isn't publishing my struts.xml file when it's in the classes directory. Moving it to the WEB-INF directory causes it to be published, by it doesn't do anything there. I manually

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Dave Newton
--- Kelly.Graus [EMAIL PROTECTED] wrote: That worked! Thanks! Ah, I remember when programming was a matter of toggling some front-panel switches. Deployment was much less complicated, if not more callus-y. Glad it got worked out :) Dave

RE: Not Able to call Action

2008-03-06 Thread Karr, David
I'm technically a newbie on this, so don't take my word on it, but I would suggest: * Don't use actionPackages or the annotations. * Remove the namespace attribute on the action element. * Change the package attribute on the action element to have a value != your Java package. -Original

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
Hmmm... while this approach displays the page OK, I get the error below in my JBoss console when executing the action. Is this something I need to prevent with some sort of page directive? 2008-03-06 13:14:11,470 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/DataCa

RE: Not Able to call Action

2008-03-06 Thread Dave Newton
--- Karr, David [EMAIL PROTECTED] wrote: I'm technically a newbie on this, so don't take my word on it, but I would suggest: * Don't use actionPackages or the annotations. Both actionPackages and the annotations work fine; the issue you had was that you were combining the two configuration

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
Could this be a defect? https://issues.apache.org/struts/browse/WW-1385 -Original Message- From: Griffith, Michael * [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 1:25 PM To: Martin Gainty Cc: Struts Users Mailing List Subject: RE: How can I combine a result (tiles + xslt)?

Re: Security credentials are not propogated to Actionclass in Struts2

2008-03-06 Thread Matt Finholt
Hi balak31, I've run into the exact same issue and I'm wondering if you were ever able to find a work-around? It seems that it's impossible to get any user credentials while in a filter... I've had no issues gathering the data in a servlet. Similar to your situation, I urgently need a

STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread mojoRising
I am wondering whether it is possible, and or a good idea, to have two (or more) struts forms - each calling a DIFFERENT action - on the same JSP? Would each action have to have the same parameters? Would there be conflicts? Is this a bad idea? I could stick to one action, but then I would have

Re: STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread Dave Newton
--- mojoRising [EMAIL PROTECTED] wrote: I am wondering whether it is possible, and or a good idea, to have two (or more) struts forms - each calling a DIFFERENT action - on the same JSP? Would each action have to have the same parameters? Would there be conflicts? Is this a bad idea? Lots

Re: STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread Randy Burgess
I have a JSP with 2 different forms and different params and they call different action classes with no problems. In my case the functionality was similar and creating 2 different pages for it was unnecessary. This page has a view/edit/delete account form and a create new account form. Regards,

Re: STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread mojoRising
No specific issue at hand, I was just concerned that if: Form 1 (action class A) had 20 parameters, and form 2(action class B) had 4, then after submitting form B the page would reload with 16 null parameters right? When form A referenced those parameters using OGNL they would not be on the value

DispatchAction nonexisting method

2008-03-06 Thread Edward Song
Hi all, First, this is not a Struts 2 question.. And thanks to anyone who reads below. I was wondering how other's handled this problem with the org.apache.struts.actions.DispatchAction in Struts 1.3.9. I have an action that calls a data service that is to be presented to the user in

RE: How can I combine a result (tiles + xslt)?

2008-03-06 Thread Griffith, Michael *
Hi all, I've specified on both the struts tag, and the tiles include flush=false ... template ... tiles:insertAttribute name=body flush=false/ .. tile ... s:action name=form executeResult=true flush=false ignoreContextParams=true/ Same result. Does anyone have any other ideas on what I can do

RE: DispatchAction nonexisting method

2008-03-06 Thread Griffith, Michael *
Hi Edward, Create a method for handling all the rest or unspecified actions, and delegate to your view: protected ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)

RE: DispatchAction nonexisting method

2008-03-06 Thread Edward Song
Hi Michael, First thanks for the response I had thought that would work as well, but the unspecified method executes only when the parameter is not present. http://localhost:8080/myapp/UserOrders.do So this would execute, unspecified(Action blahblahblah), however DispatchAction throws a

Re: DispatchAction nonexisting method

2008-03-06 Thread Lukasz Lenart
Hi Subclass the DispatchAction and override getMethod() like below Method getMethodName() { Method method = super.getMethod(); if (method == null) { method = clazz.getMethod(unspecified, types); } return method; } Regards -- Lukasz

Using various HTML control with validation

2008-03-06 Thread Yuval Rotem
Hi, In all the Struts 2 validation examples, the form fields are always s:textfield. 1. Can I use other HTML controls with client-side validation? 2. Can I use other HTML controls with Ajax validation? Thanks! Yuval. This message and the information contained herein is

Re: STRUTS 2: Possible to have two actions called from one JSP?

2008-03-06 Thread Othon Reyes Sanchez
If the forms are exactly in the same JSP and i mean you don't have one form in a iframe and other form in another iframe, as far as i am concern is not possible. But, if you use ajax, then you can send the values of any amount of forms to the server. On Thu, Mar 6, 2008 at 2:53 PM, mojoRising

Preserve datas in form

2008-03-06 Thread Juanjo Cuadrado
Hi, How I can preserve the data in the form when I do submit the form and ActionForm finds a error? When it return to jsp, the form's field are voids. Thanks

Re: Preserve datas in form

2008-03-06 Thread Lukasz Lenart
Hi, How do you forward to jsp, simple forward or maybe redirect? Could you give some example? Regards -- Lukasz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[s2] IndexedProperties set via forms

2008-03-06 Thread Allen, Daniel
Hi, all. I have a question about using indexed properties. I need to have the user upload some arbitrary (to be dynamically increased via Javascript while the user is on the form page) number of files as part of a form. I figured it makes sense to create an indexed property so that then I have a

Re: [s2] IndexedProperties set via forms

2008-03-06 Thread Dave Newton
--- Allen, Daniel [EMAIL PROTECTED] wrote: I have a question about using indexed properties. I need to have the user upload some arbitrary (to be dynamically increased via Javascript while the user is on the form page) number of files as part of a form. I figured it makes sense to create an

Re: Preserve datas in form

2008-03-06 Thread Juanjo Cuadrado
Hi, I have a form (html:form action=.. html:submit /html:form) and a ActionForm. In the method validate I have a errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(errors.required, Name))... and in the struts-config I have declared a action element wiht scope=session I

RE: [s2] IndexedProperties set via forms

2008-03-06 Thread Allen, Daniel
Wow, in the FAQs, even. My Google-fu is miserable. Thanks/sorry. ~DVA -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 6:02 PM To: Struts Users Mailing List Subject: Re: [s2] IndexedProperties set via forms --- Allen, Daniel [EMAIL

Struts 2 Actions based on Security Roles

2008-03-06 Thread Kelly.Graus
Hello, I'm trying to write a test app that allows a user to access actions based on their security role. Currently I'm using container based security, I was hoping to not have to tackle Acegi (I've done Struts 2, Hibernate, Spring, and JSP in the last couple of weeks, any more new java

Dynamic namespace in application

2008-03-06 Thread jignesh.patel
Hi, I am having struts2 + hibernate application.It uses static namespace(crud) like http://hax.mysite.com/crud/createUser.action. I want it to be dynamic like, i can be able to set it with my algorithm which is unique for each session ... e.g for 1 session)

Re: Dynamic namespace in application

2008-03-06 Thread Dave Newton
--- jignesh.patel [EMAIL PROTECTED] wrote: I am having struts2 + hibernate application.It uses static namespace(crud) like http://hax.mysite.com/crud/createUser.action. I want it to be dynamic like, i can be able to set it with my algorithm which is unique for each session ... e.g for 1

Re: Dynamic namespace in application

2008-03-06 Thread jignesh.patel
This is just for security purpose.Actually it is a very secure application and i do not want to make rest of the world aware with urls,so they can copy the urls or keep in history for future use. jignesh.patel wrote: Hi, I am having struts2 + hibernate application.It uses static

Re: Dynamic namespace in application

2008-03-06 Thread Jeromy Evans
Dave Newton wrote: --- jignesh.patel [EMAIL PROTECTED] wrote: I am having struts2 + hibernate application.It uses static namespace(crud) like http://hax.mysite.com/crud/createUser.action. I want it to be dynamic like, i can be able to set it with my algorithm which is unique for each

Re: Dynamic namespace in application

2008-03-06 Thread jignesh.patel
thanks jeromy It would be fine for me,if you will send binary or any plug in example. jignesh.patel wrote: Hi, I am having struts2 + hibernate application.It uses static namespace(crud) like http://hax.mysite.com/crud/createUser.action. I want it to be dynamic like, i can be able

Hiding the Path of Links

2008-03-06 Thread Asad Habib
How do I hide the path of links in Struts? Should I use the action attribute of html:link for this or is there a better way to accomplish this? - Asad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-06 Thread Al Sutton
Don't put the struts.xml in your classes directory, put it in the root of your source directory (i.e. if your packages are in ProjectRoot\src, put struts.xml in ProjectRoot\src). Al. - Original Message - From: Kelly.Graus [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday,