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 Marco Fabbri <mf...@libero.it> on 2003/09/19 16:05:22 UTC
Link to a JSP page on a JSPPortlet
Hi all,
probably I'm making a concept mistake but I'm unable to see it...
I'm using a JspPortlet to display a jsp.
The jsp has a <jetspeed:link template="Contact.jsp" /> to another jsp
template: my goal is to open another jsp in the same portlet space.
The html anchor generated is:
http://<server>/jetspeed/portal/template/Contact.jsp and if I click the
link, a very long stacktrace is reported on the browser and it says:
"Error encountered processing a template:
/navigations//html/top_loggedIn.jspjavax.servlet.ServletException:
/WEB-INF/templates/jsp/navigations//html/top_loggedIn.jsp"
It seems Jetspeed try to render the page using jsp templates but I'm using
vm templates...
Where I wrong?
How can I open another jsp in the same portlet space?
I've searched a long on the mail archive with no luck...
Thanks a lot in advance
Marco Fabbri
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Link to a JSP page on a JSPPortlet
Posted by Marco Fabbri <mf...@libero.it>.
----- Original Message -----
From: "Christophe Lombart" <ch...@skynet.be>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Sunday, September 21, 2003 10:08 PM
Subject: Re: Link to a JSP page on a JSPPortlet
> Marco Fabbri wrote:
> >Can you send me a jsp action example to use the setTemplate?
> >
> See in the portlet demos, You can expect to find plenty of examples.
> in the action methods : setTemplate(rundata, "...jsp ref...") - more
> info in the javadoc
>
I've searched setTemplate on the jetspeed src and I haven't found many
examples to do it with JSP....
And I try in this way; on the JSP I placed a button (as reported on the
Jetspeed tutorial)
<form method="post" action="<jetspeed:dynamicUri/>">
<input type="hidden" name="js_peid" value="<%=jspeid%>">
<input type="hidden" name="action" value="portlets.DominoViewSSO"/>
<input type="submit" name="eventSubmit_goDetails" value="Save"/>
</form>
and in the DominoViewSSO I typed simply:
public void goDetails(RunData data, Portlet portlet)
{
setTemplate(data, "Contact.jsp");
}
But when I push the button "Save", the page is just reloaded and I see
always the same jsp not Contact.jsp
Can you help me again?
Thanks a lot
Marco Fabbri
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Link to a JSP page on a JSPPortlet
Posted by Marco Fabbri <mf...@libero.it>.
----- Original Message -----
From: "Christophe Lombart" <ch...@skynet.be>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Sunday, September 21, 2003 10:08 PM
Subject: Re: Link to a JSP page on a JSPPortlet
> Marco Fabbri wrote:
> >Can you send me a jsp action example to use the setTemplate?
> >
> See in the portlet demos, You can expect to find plenty of examples.
> in the action methods : setTemplate(rundata, "...jsp ref...") - more
> info in the javadoc
>
I've searched setTemplate on the jetspeed src and I haven't found many
examples to do it with JSP....
And I try in this way; on the JSP I placed a button (as reported on the
Jetspeed tutorial)
<form method="post" action="<jetspeed:dynamicUri/>">
<input type="hidden" name="js_peid" value="<%=jspeid%>">
<input type="hidden" name="action" value="portlets.DominoViewSSO"/>
<input type="submit" name="eventSubmit_goDetails" value="Save"/>
</form>
and in the DominoViewSSO I typed simply:
public void goDetails(RunData data, Portlet portlet)
{
setTemplate(data, "Contact.jsp");
}
But when I push the button "Save", the page is just reloaded and I see
always the same jsp not Contact.jsp
Can you help me again?
Thanks a lot
Marco Fabbri
Re: Link to a JSP page on a JSPPortlet
Posted by Christophe Lombart <ch...@skynet.be>.
Marco Fabbri wrote:
>With portlet space I mean to replace the JSP output contained in my portlet
>with another JSP content: it's not enough to use a jetspeed:link?
>
>
no, it is use for navigation. Use setTemplate in your portlet action.
>Can you send me a jsp action example to use the setTemplate?
>
See in the portlet demos, You can expect to find plenty of examples.
in the action methods : setTemplate(rundata, "...jsp ref...") - more
info in the javadoc
>
>And how can I pass parameters to the second jsp using the setTemplate?
>
From the jetspeed tutorial :
// Place appropriate objects in jsp context
rundata.getRequest().setAttribute(QUOTES, quotes);
I advise you to read the tutorial, there is a section on JSP
(http://www.bluesunrise.com/jetspeed-docs/JetspeedTutorial.htm - section 8)
HTH,
Christophe
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Link to a JSP page on a JSPPortlet
Posted by Christophe Lombart <ch...@skynet.be>.
Marco Fabbri wrote:
>With portlet space I mean to replace the JSP output contained in my portlet
>with another JSP content: it's not enough to use a jetspeed:link?
>
>
no, it is use for navigation. Use setTemplate in your portlet action.
>Can you send me a jsp action example to use the setTemplate?
>
See in the portlet demos, You can expect to find plenty of examples.
in the action methods : setTemplate(rundata, "...jsp ref...") - more
info in the javadoc
>
>And how can I pass parameters to the second jsp using the setTemplate?
>
From the jetspeed tutorial :
// Place appropriate objects in jsp context
rundata.getRequest().setAttribute(QUOTES, quotes);
I advise you to read the tutorial, there is a section on JSP
(http://www.bluesunrise.com/jetspeed-docs/JetspeedTutorial.htm - section 8)
HTH,
Christophe
Re: Link to a JSP page on a JSPPortlet
Posted by Marco Fabbri <mf...@libero.it>.
With portlet space I mean to replace the JSP output contained in my portlet
with another JSP content: it's not enough to use a jetspeed:link?
Can you send me a jsp action example to use the setTemplate?
And how can I pass parameters to the second jsp using the setTemplate?
Thanks again
----- Original Message -----
From: "Christophe Lombart" <ch...@skynet.be>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Saturday, September 20, 2003 6:50 PM
Subject: Re: Link to a JSP page on a JSPPortlet
> Marco Fabbri wrote:
>
> >
> >Where I wrong?
> >How can I open another jsp in the same portlet space?
> >
> >
> What do you mean by portlet space ?
>
> If you want to assigne another jsp into the same portlet use the method
> setTemplate in your jsp action or your GenericMvcAction (see the javadoc).
>
> Christophe
>
>
>
> ---------------------------------------------------------------------
> 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: Link to a JSP page on a JSPPortlet
Posted by Marco Fabbri <mf...@libero.it>.
With portlet space I mean to replace the JSP output contained in my portlet
with another JSP content: it's not enough to use a jetspeed:link?
Can you send me a jsp action example to use the setTemplate?
And how can I pass parameters to the second jsp using the setTemplate?
Thanks again
----- Original Message -----
From: "Christophe Lombart" <ch...@skynet.be>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Saturday, September 20, 2003 6:50 PM
Subject: Re: Link to a JSP page on a JSPPortlet
> Marco Fabbri wrote:
>
> >
> >Where I wrong?
> >How can I open another jsp in the same portlet space?
> >
> >
> What do you mean by portlet space ?
>
> If you want to assigne another jsp into the same portlet use the method
> setTemplate in your jsp action or your GenericMvcAction (see the javadoc).
>
> Christophe
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
Re: Link to a JSP page on a JSPPortlet
Posted by Christophe Lombart <ch...@skynet.be>.
Marco Fabbri wrote:
>
>Where I wrong?
>How can I open another jsp in the same portlet space?
>
>
What do you mean by portlet space ?
If you want to assigne another jsp into the same portlet use the method
setTemplate in your jsp action or your GenericMvcAction (see the javadoc).
Christophe
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Link to a JSP page on a JSPPortlet
Posted by Christophe Lombart <ch...@skynet.be>.
Marco Fabbri wrote:
>
>Where I wrong?
>How can I open another jsp in the same portlet space?
>
>
What do you mean by portlet space ?
If you want to assigne another jsp into the same portlet use the method
setTemplate in your jsp action or your GenericMvcAction (see the javadoc).
Christophe