Here is my whole code. implement ParameterAware.
Declaration of MAP.
Map parameters = null;
Call this method.
getParameters("alId")
public void setParameters(Map params) {
// TODO Auto-generated method stub
this.p
Yes, the map is Map. Because the HTTP protocol allows
sending multiple parameters with the same name.
(*Chris*)
On May 19, 2011 2:06 AM, "arin_12" wrote:
> I also tried Map . But the same result.
> .toString also does not help any thing. It looks like the Parameter from
> request is returning
>
I also tried Map . But the same result.
.toString also does not help any thing. It looks like the Parameter from
request is returning
Map.
Later If i run the value as String array I get the value. The length is
always sets to 1.
String st[] = map.get("param");
value = st[1];
This gives me th
org
> Subject: Re: Separate Java Bean Class for Getter/Setter method.
>
> Now the URL looks like, No extra amp;
> http://localhost:8080/Samvidh_CIS/doEditAllergy.action?alId=2&;
> alDescription=algy_full_desc&alName=algy_short_desc
>
> Now the New problem is that, I am not abl
Now the URL looks like, No extra amp;
http://localhost:8080/Samvidh_CIS/doEditAllergy.action?alId=2&alDescription=algy_full_desc&alName=algy_short_desc
Now the New problem is that, I am not able to retrieve the value of the key
though I am able to see the key.
Code in Action Class-
http://localhost:8080/Samvidh_CIS/doEditAllergy.action?alId=2&alDescription=algy_full_desc&alName=algy_short_desc
This the URL that is generating.
It is al not all.
--
View this message in context:
http://struts.1045723.n5.nabble.com/Separate-Java-Bean-Class-for-Getter-Setter-method-tp4385274p4
On Thu, May 12, 2011 at 11:59 AM, arin_12 wrote:
> I am passing three parameters via URL from one page to another.
> I only see one available on the second page; don't know why.
>
> Page one
>
>
>
>
>
>
>
> Page two
>
> value="%{#parameters.alDescription}"/>
>
>
>
> Any feed bac
I dont know if its a bug or functinoality. I am passing 3 param from a page.
I am only able to receive the 1st one in the next page... Dont know why.
Page one :-
Page two :-
Description
Enable th
Thanks for the reply. I had tried the same thing and again removed. Will
there be any dis/adv if I use this Model class ?
Another question is how can i pass/retrieve a parameter in my action class ?
http://localhost:8080/Samvidh_CIS/doEditAllergy.action?allergy.Id=1002
I want this allergy.Id=1002
Hi,
If you want to keep the bean in a separate class then your action class that
needs to implement two interfaces Modeldriven and Preparable. Its called
model driven approach in struts 2
class MyBean
{
// attributes
// getter and setter
}
class MyAction extends ActionSupport implements ModelDri
10 matches
Mail list logo