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 Indra Yana <ya...@lycos.com> on 2002/05/22 03:27:18 UTC

JSPLink

i have developed a JSPPortlet. The JSP page contain a link (href). I want thath if i click this link, the result will show on the same portlet and not on the whole page. How can we make this work ?
Thank you..

Regards,
Ikki


________________________________________________________
Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Technical Conferences

Posted by Anthony Smith <an...@fedex.com>.
Hey guys,

Anyone know of any technical conferences coming up in the next 12 months. I
mean dealing with any technology whether from a purely technical aspect to
kind of high level. I was looking at one that may talk about stuff like
SOAP, XSP, etc... And even if it did not touch on those subjects, that is
ok.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: JSPLink

Posted by Josselin Lebret <jo...@sycomore.fr>.
Write a simple controller jsp page and link it to your portlet
(myportlet.jsp). His role would be to dynamically include the JSP page
corresponding to portlet current state by using a request parameter such as
"portlet_state".

Sample code
<!--myportlet_edit.jsp-->

<form name="form1" method="post" action="/jetspeed/portal">
   <input type="hidden" name="portlet_name" value="myportlet">
 <input type="hidden" name="portlet_state" value="default">

Message     <input type="text" name="message" size="40"
value="<%=message%>">

   <input type="submit" name="Submit2" value="Modifier">
    </form>

<!--myportlet_default.jsp-->
le message est   <%=message%>
<a href="/jetspeed/portal?portlet_name=myportlet&portlet_state=edit">modify
message</a>

<!--myportlet.jsp-->
<%@ page import = "java.lang.reflect.*" %>
<%@ page import = "javax.servlet.http.*" %>
<%@ page import = "org.apache.turbine.util.*" %>
<% RunData rundata = (RunData)request.getAttribute("rundata"); %>


<%


 String temp = getServletConfig().getServletName();
 String portlet_name = temp.substring(temp.lastIndexOf("/") + 1,
temp.lastIndexOf(".jsp"));
 String portlet = request.getParameter("portlet_name");
 String state = request.getParameter("portlet_state");


 if ((portlet != null) && (portlet.compareTo(portlet_name) == 0))
 {
  if ((state == null))
  {
   state = "default";
  }
  page_name = portlet_name + "_" + state + ".jsp";
  %>
  <jsp:include page="<%=page_name%>" flush="true"/>
  <%
 }
 else
 {
  page_name = portlet_name + "_" + "default" + ".jsp";

  %>
  <jsp:include page="<%=page_name%>" flush="true"/>
  <%
 }
%>





----- Original Message -----
From: "Indra Yana" <ya...@lycos.com>
To: <je...@jakarta.apache.org>
Sent: Wednesday, May 22, 2002 3:27 AM
Subject: JSPLink


> i have developed a JSPPortlet. The JSP page contain a link (href). I want
thath if i click this link, the result will show on the same portlet and not
on the whole page. How can we make this work ?
> Thank you..
>
> Regards,
> Ikki
>
>
> ________________________________________________________
> Outgrown your current e-mail service?
> Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL
PLUS.
> http://login.mail.lycos.com/brandPage.shtml?pageId=plus
>
> --
> 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>


Re: JSPLink

Posted by Josselin Lebret <jo...@sycomore.fr>.
does not  seem to work.. at least on 1.3a2 version
----- Original Message -----
From: "touchmyheart" <to...@eastday.com>
To: "Jetspeed Users List" <je...@jakarta.apache.org>;
<ya...@lycos.com>
Sent: Wednesday, May 22, 2002 8:41 AM
Subject: Re: JSPLink


> easy :), in my.jsp,add:
>
> <a href="<jetspeed:uriLookup type="Home"/>?nextscreen=my2.jsp">my2.jsp</a>
>
>
> --
> 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>


Re: JSPLink

Posted by touchmyheart <to...@eastday.com>.
easy :), in my.jsp,add:
 
<a href="<jetspeed:uriLookup type="Home"/>?nextscreen=my2.jsp">my2.jsp</a>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>