Request parameters appended to urls that don't need them.

2007-05-17 Thread Will Smith
Hi, I'm new to struts and liking what I've seen so far. I'm building a toy application to learn the framework (A simple blogging app). I have an action with a view() method that returns the string "view". What happens is that a link is clicked to view details about a particular blog, and a request

Re: Request parameters appended to urls that don't need them.

2007-05-17 Thread Will Smith
On 5/17/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Will Smith <[EMAIL PROTECTED]> wrote: > Everything works as expected, but I noticed that when > the Blog_view view is rendered, my navigation links > now have that request parameter appended to them when >

Struts 2 providing injection

2007-05-18 Thread Will Smith
Hi, I have an action that I've been injecting with Guice. I just noticed that there is an @Inject annotation defined in com.opensymphony.xwork2.inject. I'm assuming that this allows you to use struts 2 as the di provider. So I tried removing my com.google.inject.*imports that bring in the @Inject

Re: [S2] field-validator regex ignoring given message

2007-05-19 Thread Will Smith
On 5/19/07, Paolo Beccari <[EMAIL PROTECTED]> wrote: Hi all, I'm a S2 newbie. Trying to validate input in a *-validation.xml, and found a strange behaviour: [0-9] id is not a numeric value

[S2] [OT] Hibernate and Struts 2, keeping session around (using Guice)

2007-05-22 Thread Will Smith
Hi, I'm sure this has probably been beaten to death, but I can't seem to find a viable solution without using spring. I just switched over to using hibernate from ibatis (so much better now), and I'm having trouble working my actions around hibernate's transaction model. With ibatis you had to ma

[S2] paramsPrepareParamsStack and validation

2007-05-27 Thread Will Smith
I don't quite understand how the validation is handled when using the paramsPrepareParamsStack. I have an action with a view() method that will be called via a get request specifying a blog id (blog.id) which should be numeric. This is working, but I want to make sure that if someone passed in an