Re: cannot get parameter value in action class passed using html:link

2006-10-03 Thread Antonio Petrelli

Hi Vinod

Vinod Kumar ha scritto:

Hi Antonio,
   Thanks for your response.
1. I am not using any filter and if i am not wrong,
then tomcat 3.3.2 does support filters since it
implements servlet 2.2 specs.
  


Uh, right! Well i cannot know everything :-)

I am not sure
if paramters from html:link are passed only if the
corresponding action has a ActionForm.
  


They are passed anyway, but if there is an ActionForm, the parameters 
are got and put into the corresponding property, not the opposite.



I will check this with latest version of tomcat later
on.
  


Good luck!

Ciao
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot get parameter value in action class passed using html:link

2006-10-03 Thread Vinod Kumar
Hi Antonio,
   Thanks for your response.
1. I am not using any filter and if i am not wrong,
then tomcat 3.3.2 does support filters since it
implements servlet 2.2 specs.

Other thing is that I am not using any ActionForm for
this Action. My Action is below:



Since I am just passing couple of parameters on the
html:link to action and I am able to get those using
getQueryString(). Then I just split them from there
and use them. Atleast it keeps me going. I am not sure
if paramters from html:link are passed only if the
corresponding action has a ActionForm.

I will check this with latest version of tomcat later
on.

Thanks
Vinod


--- Antonio Petrelli <[EMAIL PROTECTED]> wrote:

> Vinod Kumar ha scritto:
> > Hi Antonio,
> >   When I Printed getQueryString in the action
> class
> > using the below stmt
> > System.out.println("request.getQueryString() =
> > "+request.getQueryString());
> >
> > Result was 
> > request.getQueryString() = print=1
> >
> > So it means, Query string has print parameter but
> > request.getParameter("print") is returning null in
> the
> > action class.
> >   
> 
> Gosh that's *really* strange, Houston we have a
> problem!
> 
> > I am using tomcat 3.3.2 and struts 1.2.9
> >   
> 
> Mmm... Did you try to use the latest Tomcat? It
> really could be the 
> container.
> 
> > Is there any other way to retrive this parameter
> other
> > than using getParameter?
> >   
> 
> No, I mean, since Struts' ActionForm is populated
> using "getParameter", 
> as it returns null, the parameter is not passed to
> the corresponding 
> property too!
> Now you should check if you are using a filter and:
> 1) if yes, debug your application to see what's the
> name of the class of 
> the instance of HttpServletRequest: if it is not a
> Tomcat's one, I would 
> suspect there's a bug in the filter;
> 2) if no, it could be a container problem, check it
> using the latest 
> Tomcat version.
> 
> Please let me know.
> 
> Ciao
> Antonio
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot get parameter value in action class passed using html:link

2006-10-02 Thread Antonio Petrelli

Vinod Kumar ha scritto:

Hi Antonio,
  When I Printed getQueryString in the action class
using the below stmt
System.out.println("request.getQueryString() =
"+request.getQueryString());

Result was 
request.getQueryString() = print=1


So it means, Query string has print parameter but
request.getParameter("print") is returning null in the
action class.
  


Gosh that's *really* strange, Houston we have a problem!


I am using tomcat 3.3.2 and struts 1.2.9
  


Mmm... Did you try to use the latest Tomcat? It really could be the 
container.



Is there any other way to retrive this parameter other
than using getParameter?
  


No, I mean, since Struts' ActionForm is populated using "getParameter", 
as it returns null, the parameter is not passed to the corresponding 
property too!

Now you should check if you are using a filter and:
1) if yes, debug your application to see what's the name of the class of 
the instance of HttpServletRequest: if it is not a Tomcat's one, I would 
suspect there's a bug in the filter;
2) if no, it could be a container problem, check it using the latest 
Tomcat version.


Please let me know.

Ciao
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cannot get parameter value in action class passed using html:link

2006-10-02 Thread Vinod Kumar
yes,,its intentional.

--- "David Pinho (Hexadecimal)"
<[EMAIL PROTECTED]> wrote:

> The fact that you have myapp on the first link and
> orion on the second,
> is intencional right?
> 
> Obrigado,
>  
> David Pinho
> DAN/DIS
> 
> -Original Message-
> From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
> 
> Sent: segunda-feira, 2 de Outubro de 2006 11:14
> To: Struts Users Mailing List
> Subject: Re: cannot get parameter value in action
> class passed using
> html:link
> 
> Vinod Kumar ha scritto:
> > this is the way I try to get value in
> > aciton class
> > System.out.println("PRINT VALUE  =
> > "+request.getParameter( "print" ));
> >
> > Sometime, the printable link looks like
> >
>
http://localhost:81/myapp/setup.do;jsessionid=xrlq86pj71?print=YES
> >
> > even if i trim it to
> > http://localhost:81/orion/setup.do?print=YES , no
> > value is received in action class.
> 
> It seems to be a bug, but I don't know where it is.
> Just to restrict the
> 
> problem see what prints:
> request.getQueryString()
> i.e. see if it contains the parameters you want. If
> you see them, be 
> sure that you have not a filter that creates a
> wrapped 
> HttpServletRequest that overrides "getParameter". If
> you have no filter 
> (or your filter does not what I wrote before), it
> could be a bug of the 
> servlet container (though I don't think it is...).
> 
> Ciao
> Antonio
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> AVISO
> 
> Esta mensagem e quaisquer anexos seus podem conter
> informacao confidencial para uso exclusivo do
> destinatario. Cabe ao destinatario assegurar a
> verificacao de virus e outras medidas que assegurem
> que esta mensagem nao afecta os seus sistemas. Se
> nao for o destinatario, nao devera usar, distribuir
> ou copiar este e-mail, devendo proceder a sua
> eliminacao e informar o emissor. E estritamente
> proibido o uso, a distribuicao, a copia ou qualquer
> forma de disseminacao nao autorizada deste e-mail e
> seus anexos. Obrigado.
> 
> DISCLAIMER
> This e-mail and its attachments may contain
> confidential information for exclusive use of its
> recipient. It is your responsibility to carry out
> appropriate virus and other checks to ensure that
> this message and any attachments do not affect your
> systems / data. If you are not the intended
> recipient you must not use, distribute or reproduce
> this e-mail and you must notify the sender and
> delete the entire email. Any unauthorized use,
> dissemination, distribution or copying of this
> message and its attachments is strictly prohibited.
> Thank You.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot get parameter value in action class passed using html:link

2006-10-02 Thread Vinod Kumar
Hi Antonio,
  When I Printed getQueryString in the action class
using the below stmt
System.out.println("request.getQueryString() =
"+request.getQueryString());

Result was 
request.getQueryString() = print=1

So it means, Query string has print parameter but
request.getParameter("print") is returning null in the
action class.

I am using tomcat 3.3.2 and struts 1.2.9

Is there any other way to retrive this parameter other
than using getParameter?


Thanks
Vinod


--- Antonio Petrelli <[EMAIL PROTECTED]> wrote:

> Vinod Kumar ha scritto:
> > this is the way I try to get value in
> > aciton class
> > System.out.println("PRINT VALUE  =
> > "+request.getParameter( "print" ));
> >
> > Sometime, the printable link looks like
> >
>
http://localhost:81/myapp/setup.do;jsessionid=xrlq86pj71?print=YES
> >
> > even if i trim it to
> > http://localhost:81/orion/setup.do?print=YES , no
> > value is received in action class.
> 
> It seems to be a bug, but I don't know where it is.
> Just to restrict the 
> problem see what prints:
> request.getQueryString()
> i.e. see if it contains the parameters you want. If
> you see them, be 
> sure that you have not a filter that creates a
> wrapped 
> HttpServletRequest that overrides "getParameter". If
> you have no filter 
> (or your filter does not what I wrote before), it
> could be a bug of the 
> servlet container (though I don't think it is...).
> 
> Ciao
> Antonio
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cannot get parameter value in action class passed using html:link

2006-10-02 Thread David Pinho (Hexadecimal)
The fact that you have myapp on the first link and orion on the second,
is intencional right?

Obrigado,
 
David Pinho
DAN/DIS

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 2 de Outubro de 2006 11:14
To: Struts Users Mailing List
Subject: Re: cannot get parameter value in action class passed using
html:link

Vinod Kumar ha scritto:
> this is the way I try to get value in
> aciton class
> System.out.println("PRINT VALUE  =
> "+request.getParameter( "print" ));
>
> Sometime, the printable link looks like
> http://localhost:81/myapp/setup.do;jsessionid=xrlq86pj71?print=YES
>
> even if i trim it to
> http://localhost:81/orion/setup.do?print=YES , no
> value is received in action class.

It seems to be a bug, but I don't know where it is. Just to restrict the

problem see what prints:
request.getQueryString()
i.e. see if it contains the parameters you want. If you see them, be 
sure that you have not a filter that creates a wrapped 
HttpServletRequest that overrides "getParameter". If you have no filter 
(or your filter does not what I wrote before), it could be a bug of the 
servlet container (though I don't think it is...).

Ciao
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AVISO

Esta mensagem e quaisquer anexos seus podem conter informacao confidencial para 
uso exclusivo do destinatario. Cabe ao destinatario assegurar a verificacao de 
virus e outras medidas que assegurem que esta mensagem nao afecta os seus 
sistemas. Se nao for o destinatario, nao devera usar, distribuir ou copiar este 
e-mail, devendo proceder a sua eliminacao e informar o emissor. E estritamente 
proibido o uso, a distribuicao, a copia ou qualquer forma de disseminacao nao 
autorizada deste e-mail e seus anexos. Obrigado.

DISCLAIMER
This e-mail and its attachments may contain confidential information for 
exclusive use of its recipient. It is your responsibility to carry out 
appropriate virus and other checks to ensure that this message and any 
attachments do not affect your systems / data. If you are not the intended 
recipient you must not use, distribute or reproduce this e-mail and you must 
notify the sender and delete the entire email. Any unauthorized use, 
dissemination, distribution or copying of this message and its attachments is 
strictly prohibited. Thank You.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot get parameter value in action class passed using html:link

2006-10-02 Thread Antonio Petrelli

Vinod Kumar ha scritto:

this is the way I try to get value in
aciton class
System.out.println("PRINT VALUE  =
"+request.getParameter( "print" ));

Sometime, the printable link looks like
http://localhost:81/myapp/setup.do;jsessionid=xrlq86pj71?print=YES

even if i trim it to
http://localhost:81/orion/setup.do?print=YES , no
value is received in action class.


It seems to be a bug, but I don't know where it is. Just to restrict the 
problem see what prints:

request.getQueryString()
i.e. see if it contains the parameters you want. If you see them, be 
sure that you have not a filter that creates a wrapped 
HttpServletRequest that overrides "getParameter". If you have no filter 
(or your filter does not what I wrote before), it could be a bug of the 
servlet container (though I don't think it is...).


Ciao
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cannot get parameter value in action class passed using html:link

2006-09-29 Thread Vinod Kumar
I have following in page definition:-







In my bottom.jsp page, I create a link like

Printable
version


When I click on the "Printable version",it should pass
parameter print=YES to the setup.do
but when I check in the action class it does not
return anything. this is the way I try to get value in
aciton class
System.out.println("PRINT VALUE  =
"+request.getParameter( "print" ));

Sometime, the printable link looks like
http://localhost:81/myapp/setup.do;jsessionid=xrlq86pj71?print=YES

even if i trim it to
http://localhost:81/orion/setup.do?print=YES , no
value is received in action class.

I really appreciate the help on this.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]