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 "Aliyar, Nishar" <ni...@schema.de> on 2002/09/03 14:43:50 UTC
Problem with Portlet and JSP
Hai All,
I got a problem with Portlet and JSP. I wrote a Portlet which disply a jsp like this
public ConcreteElement getContent(RunData data){
try{
return (new EcsServletElement(data,"WEB-INF/my-jsp/CreateLdapRoleGuiJsp.jsp"));
}
catch(Exception ee){
ee.printStackTrace();
}
}
okai portlet is abple to disply CreateLdapRoleGuiJsp.jsp and my CreateLdapRoleGuiJsp.jsp is like :
<form method="post" action="Test2.jsp">
<p>Enter The LDAP Role :
<input type="text" name="name">
<p>
<input type="submit" value="Create Role">
</form>
but when click the button it won't go to Test2.jsp , I placed the Test2.jsp with the
CreateLdapRoleGuiJsp.jsp (I mean in the same folder)
whats wrong here dears,
Greetings,
Nishar.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Problem with Portlet and JSP
Posted by Mark Orciuch <ma...@ngsltd.com>.
Nishar,
First, I would make use of JspPortlet rather than create a portlet class
(unless you have any special reasons to do so).
Second, you may use the following tag in your action (assuming thatTest2.jsp
is located on the template search path):
<jetspeed:link template="Test2.jsp" />
Hope this helps.
Best regards,
Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com
> -----Original Message-----
> From: Aliyar, Nishar [mailto:nishar.aliyar@schema.de]
> Sent: Tuesday, September 03, 2002 7:44 AM
> To: Jetspeed Users List
> Subject: Problem with Portlet and JSP
>
>
>
> Hai All,
> I got a problem with Portlet and JSP. I wrote a Portlet which
> disply a jsp like this
>
> public ConcreteElement getContent(RunData data){
>
> try{
>
> return (new
> EcsServletElement(data,"WEB-INF/my-jsp/CreateLdapRoleGuiJsp.jsp"));
> }
> catch(Exception ee){
>
> ee.printStackTrace();
> }
> }
>
> okai portlet is abple to disply CreateLdapRoleGuiJsp.jsp and my
> CreateLdapRoleGuiJsp.jsp is like :
>
> <form method="post" action="Test2.jsp">
> <p>Enter The LDAP Role :
> <input type="text" name="name">
> <p>
> <input type="submit" value="Create Role">
> </form>
>
> but when click the button it won't go to Test2.jsp , I placed the
> Test2.jsp with the
> CreateLdapRoleGuiJsp.jsp (I mean in the same folder)
> whats wrong here dears,
>
> Greetings,
> Nishar.
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>