You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Vincent Bonamy <vi...@geomath.fr> on 2001/07/27 11:47:47 UTC

How can I get the parameters of a jsp?

> Hello,

I try to make a Jsp.
In fact, I would like to make the HelloVelocity in JSP instead of servlet.
I can't get the parameter when I input data in the form.

My JSP code for that is:



<form method = get >
value? <input = text name = "nameOfValue" value="hello" >
<input type=submit value="Submit">
</form>


... and i get my paramater with:

request.getParameter("nameOfValue");

but that returns me null !

thanks

vincent.




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: How can I get the parameters of a jsp?

Posted by Anthony Smith <an...@fedex.com>.
Let me know if you get this. I have been tryign as well.

Thanks

Vincent Bonamy wrote:

> I don't want to use a servlet or other but a Jsp !
> My jsp is working outside of jetspeed but not in jetspeed.
>
> My Jsp is a kind of "JSP"  of classname
> "org.apache.jetspeed.portal.portlets.JspPortlet"   (sf .xreg)
> ....  I'm going to see the source !
>
> But if evryone know how to get a parameter with a jsp IN jetspeed ...
>
> In attachment the code of my jsp
>
> vincent.
>
> Paul Spencer wrote:
>
> > Vincent,
> > If you are using the WebPagePortlet, not available in 1.3a1, the
> > parameter "NameOfValue" should be include in the <URL> of the portlet
> > configuration. See the "Portlet Catalog" on the jetspeed web site for
> > more information.
> >
> > I do not know how to pass a parameter to a JSP portlet :(
> >
> > Paul Spencer
> >
>
>   ------------------------------------------------------------------------
> <%
>
> String es = "";
> es =  request.getParameter("desc");
>
> System.out.println("desc = " + es );
>
> %>
>
>  <p>
>
> Hello <%=es %>
>
> </p>
>
> <form method=get >
>   Description? <input type=text name="desc" value="<%=es%>">
>  <input type=submit value="Submit">
> </form>
>
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: How can I get the parameters of a jsp?

Posted by Vincent Bonamy <vi...@geomath.fr>.
I don't want to use a servlet or other but a Jsp !
My jsp is working outside of jetspeed but not in jetspeed.

My Jsp is a kind of "JSP"  of classname
"org.apache.jetspeed.portal.portlets.JspPortlet"   (sf .xreg)
....  I'm going to see the source !

But if evryone know how to get a parameter with a jsp IN jetspeed ...

In attachment the code of my jsp

vincent.


Paul Spencer wrote:

> Vincent,
> If you are using the WebPagePortlet, not available in 1.3a1, the
> parameter "NameOfValue" should be include in the <URL> of the portlet
> configuration. See the "Portlet Catalog" on the jetspeed web site for
> more information.
>
> I do not know how to pass a parameter to a JSP portlet :(
>
> Paul Spencer
>

Re: How can I get the parameters of a jsp?

Posted by Paul Spencer <pa...@mikon.com>.
Vincent,
If you are using the WebPagePortlet, not available in 1.3a1, the
parameter "NameOfValue" should be include in the <URL> of the portlet
configuration. See the "Portlet Catalog" on the jetspeed web site for
more information.

I do not know how to pass a parameter to a JSP portlet :(

Paul Spencer

Vincent Bonamy wrote:
> 
> > Hello,
> 
> I try to make a Jsp.
> In fact, I would like to make the HelloVelocity in JSP instead of servlet.
> I can't get the parameter when I input data in the form.
> 
> My JSP code for that is:
> 
> <form method = get >
> value? <input = text name = "nameOfValue" value="hello" >
> <input type=submit value="Submit">
> </form>
> 
> ... and i get my paramater with:
> 
> request.getParameter("nameOfValue");
> 
> but that returns me null !
> 
> thanks
> 
> vincent.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org