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
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
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
is executed.
> Tom
>
>
> slideharmony wrote:
>>
>> I'm really going crazy with struts2 and request parameters, for example
>> look at the following struts2blankapplication code:
>>
>>
>>
>>
>>
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
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"
>>
>
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
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
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
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
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 {
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
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.
--
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.
-
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
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:
>> >
>&
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
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
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
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
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
21 matches
Mail list logo