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:
<action
path="/print"
type="com.abc.myap.Actions.PrintableAction"
scope="request">
</action>
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]