get the Locale from Action[S2]

2008-03-03 Thread slideharmony
Hello, anybody knows how can I get the client machine's Locale from my action struts 2? any help would be apprecciated. Riccardo -- View this message in context: http://www.nabble.com/get-the-Locale-from-Action-S2--tp15799905p15799905.html Sent from the Struts - User mailing list archive at Nabb

How can I validate a composed object in my action?(Struts 2)

2008-02-06 Thread slideharmony
Hello! I have to validate a composed object in my action, this is my action: public class UserAction extends ActionSupport{ private User usr; public User getUser() {return usr;} public void setUser(User usr) {this.usr = usr;} } and this is User class: public class User{ private Strin

example code [s2]

2007-12-06 Thread slideharmony
Could anyone give me a working example code of setting request parameters with the tag param?(Jsp and action please!) thanks in advance riccardo -- View this message in context: http://www.nabble.com/example-code-%3Ctag-param%3E--s2--tf4954827.html#a14188704 Sent from the Struts - User mailing l

Re: struts2 blank application request parameters

2007-11-26 Thread slideharmony
is executed. > Tom > > > slideharmony wrote: >> >> I'm really going crazy with struts2 and request parameters, for example >> look at the following struts2blankapplication code: >> >> >> >> >>

struts2 blank application request parameters

2007-11-23 Thread slideharmony
I'm really going crazy with struts2 and request parameters, for example look at the following struts2blankapplication code: Languages en English es Espanol Ok, here it add a request parameter cal

Re: param tag won't work!

2007-11-23 Thread slideharmony
no, it's not! it doesn't render nothing.. newton.dave wrote: > > Is it rendering properly? > > --- slideharmony <[EMAIL PROTECTED]> wrote: > >> >> well actually I've also tried with >> >> href="#url" >> >

Re: param tag won't work!

2007-11-23 Thread slideharmony
ok, hope to find the solution slideharmony wrote: > > hi, > I'm using the following code in my jsp: > > > > > Link > >the following code for my action: > > package prova.actions; > import java.util.Iterator; > import java.util

Re: param tag won't work!

2007-11-23 Thread slideharmony
well actually I've also tried with href="#url" but it doesn't work yet.. newton.dave wrote: > > Is it rendering properly? (I'm actually a little > surprised you don't have to use the "#" character, eg. > href="#url"--I tho

param tag won't work!

2007-11-22 Thread slideharmony
hi, I'm using the following code in my jsp: Link the following code for my action: package prova.actions; import java.util.Iterator; import java.util.Map; import java.util.Set; public class Test extends ActionSupport { public String execute() throws Exception { return

Re: Problem with

2007-11-20 Thread slideharmony
thanks, I have tried it, but it doesn't work yet! I can't understand.. newton.dave wrote: > > --- slideharmony <[EMAIL PROTECTED]> wrote: >> in the interceptor class I use the following code: >> final ActionContext context >> = invocation

Problem with

2007-11-20 Thread slideharmony
Hi, I want to pass a request parameter with this code in order to use it inside an interceptor. this is jsp code: Sign up! in the interceptor class I use the following code: public String intercept(ActionInvocation invocation) throws Exception {

User validation

2007-11-20 Thread slideharmony
Hello, i have a question: shoud I put user validation (with username and password) into an action or an interceptor? If I have a LoginInterceptor that validate the user, what's the utility to have a LoginAction too? thanks -- View this message in context: http://www.nabble.com/User-validation-tf

Access the value stack

2007-11-20 Thread slideharmony
How can I access the value stack in my action in order to store objects(that I want to retrieve in my jsps)? -- View this message in context: http://www.nabble.com/Access-the-value-stack-tf4842284.html#a13853727 Sent from the Struts - User mailing list archive at Nabble.com. --

dispatchaction in struts2

2007-11-16 Thread slideharmony
Is there something like the struts' dispatchaction in struts2? or have I to use different actions? -- View this message in context: http://www.nabble.com/dispatchaction-in-struts2-tf4822558.html#a13796997 Sent from the Struts - User mailing list archive at Nabble.com. -

Re: access to bean property in struts2

2007-11-16 Thread slideharmony
there something else i can do? maybe using the value stack? Thilo Ettelt wrote: > > You can expose a property or bean to the JSP Expression language > (${myPropertyOrBean}) by using s:set taglib. > > > - Thilo > > slideharmony wrote: >> ok, but I read somewh

Re: ClassCastException

2007-11-16 Thread slideharmony
r returned, which is a > Long, and not a User object. > > Nils-H > > On 11/16/07, slideharmony <[EMAIL PROTECTED]> wrote: >> >> this line: >> newuser = (User)getSession().save(user); >> >> >> >> Hernandez, David wrote: >> > >&

RE: ClassCastException

2007-11-16 Thread slideharmony
this line: newuser = (User)getSession().save(user); Hernandez, David wrote: > > > What line's the Exception being thrown on? > > -Original Message- > From: slideharmony [mailto:[EMAIL PROTECTED] > Sent: Friday, November 16, 2007 9:35 AM > To: use

ClassCastException

2007-11-16 Thread slideharmony
Hello, I have a problem saving a bean User. I use the following code: UserDao dao = new UserDao(); User user = new User(); Service.populate(user); dao.save(utente); if(user != null){ return SUCCESS; } here is the dao.save method: public User save(User user){ Utente newuser = null; begin(); new

how can I set autoreload of struts.xml in struts2

2007-11-16 Thread slideharmony
I need to know how can I set autoreload of struts.xml in struts2, without restarting the container every time. -- View this message in context: http://www.nabble.com/how-can-I-set-autoreload-of-struts.xml-in-struts2-tf4820634.html#a13791425 Sent from the Struts - User mailing list archive at Nab

RE: access to bean property in struts2

2007-11-16 Thread slideharmony
s and use: > > > -Original Message- > From: slideharmony [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 15, 2007 11:28 AM > To: user@struts.apache.org > Subject: access to bean property in struts2 > > > Hello, > how can I access a bean properties f

access to bean property in struts2

2007-11-15 Thread slideharmony
Hello, how can I access a bean properties from a jsp page? I have created an action to creare a new account for a generic user, and I want to print in a jsp page the full name of the new user. Usually I put the new User object in session and obtained his properties by this way form the jsp page, b