Re: Struts2 redirect-action with post params

2009-06-25 Thread Kelly.Graus
Hi Wes, I am using Struts 2.0.11.2. I tried it using redirectAction, but I am still receiving the same error. Kelly Wes Wannemacher wrote: > > On Thu, Jun 25, 2009 at 1:36 PM, Kelly.Graus > wrote: > >> >> >> This is the redirect action. it redirec

Re: Struts2 redirect-action with post params

2009-06-25 Thread Kelly.Graus
Hi Brice, I tried that, I still am receiving a [Fatal Error] Premature end of file error, and the licenseRequest parameter is not being set. Any ideas as to why this wouldn't work? Thanks! Kelly brice.roncace wrote: > > Using the named parameter (parameters) that Struts2 places on the OGNL

Struts2 redirect-action with post params

2009-06-25 Thread Kelly.Graus
Hello, I am trying to redirect to an action when the default index page is navigated to. However, I want to include the post params so they are sent to the action. Here's what I've got so far: This is the action that I want to redirect to. If I call it directly, it works as expected.

Re: [S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Kelly.Graus wrote: > > Thanks for the reply! I'm using field validators, so I did this: > > > > The passwords do not match! > > > Which works perfectly. Thanks! > > Kelly > Actually, it should be:

Re: [S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Guillaume Bilodeau wrote: > > Sure, you can use an ExpressionValidator annotation with an OGNL > expression like this: > > @ExpressionValidator(expression = "password1.equals(password2)", ...) > > Cheers, > GB > Thanks for the reply! I'm using field validators, so I did this:

[S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Hello, Does struts 2 have a built in validator that will allow me to make sure two fields match (ie, two password fields). From looking around, it seems that struts 1 had validatewhen which could be used, but I haven't been able to find anything for struts 2. Thanks! Kelly -- View this messag

Re: [S2] Textfield key with resource bundle

2008-04-14 Thread Kelly.Graus
Jeromy Evans - Blue Sky Minds wrote: > > > Thanks Kelly, that would be great because I'm sure there's a bug here > that's hard to replicate. > The model for ModelDriven gets pushed in front of the action. If it had > a getText(String) method it would have caused this problem. > > --

[S2] Textfield key with resource bundle

2008-04-11 Thread Kelly.Graus
Hello, I'm trying to use the key attribute in the s:textfield tag to display a label from my resource bundle. I have a single application resource bundle that I am able to access with the s:text tag, so I know the resource bundle is working. However, when I use the key attribute, I just get an

[S2] Struts with Web Services

2008-04-03 Thread Kelly.Graus
Hello, I've been spending the last couple months familiarizing myself with a few java based web technologies, mainly Struts 2, Spring, and Hibernate. I have a decent understanding of Struts, enough to make a few simple example webapps that have helped me learn the concepts (along with a lot of h

[S2] Logging Issues

2008-03-31 Thread Kelly.Graus
Hello, I am writing an application using Struts (2.0.11), Spring (2.5.1), and Hibernate (3.2.6), running on Tomcat (6.0.13). We have a legacy webapp running on Tomcat that outputs some important information to the default Tomcat logs. We aren't really in a position to change that application, s

Re: [S2] Multiple SUCCESS results?

2008-03-12 Thread Kelly.Graus
Wes Wannemacher wrote: > > > On Mon, 2008-03-10 at 14:59 -0700, Dave Newton wrote: >> --- "Kelly.Graus" <[EMAIL PROTECTED]> wrote: >> > Is it possible to specify more than one SUCCESS result for an action? >> For >> > example, when th

[S2] Multiple SUCCESS results?

2008-03-10 Thread Kelly.Graus
Hello, Is it possible to specify more than one SUCCESS result for an action? For example, when the user runs an action, it could prompt them to download a file (using the stream result type), and then redirect them to another page? Thanks! Kelly -- View this message in context: http://www.na

Re: [S2] Pass dynamic parameter to action

2008-03-07 Thread Kelly.Graus
newton.dave wrote: > > Some of your JSP didn't come through. > > You can set a parameter on a link created with [1] by using the > tag [2], examples of doing so are on [1]. Sometimes the > documentation is your friend. > > You'd need to set an ID, because the *only* thing a browser can send

[S2] Pass dynamic parameter to action

2008-03-07 Thread Kelly.Graus
Hello, I currently have an action that creates a list of objects (lets say each object has a name and an id), then redirects to a jsp page that iterates over the list and displays the name and id for each object in a table. I want to be able to hyperlink each of the names, then display additiona

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 technolog

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 t

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: http://www.nabble.com/Struts-2-issue-with-Spring%2C-Hibernate

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: 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 informatio