RE: Link to a JSP page on a JSPPortlet
Ha, this is also something I ran into. Your method HAS to be called doXxxx (Only 1 capital letter in the X) (so rename goDetails into doDetails - and if i'm not mistaken, you don't even need to modify your link of form - gosh...) Check the formatString method of the ActionEvent class in Turbine's source, that's where this happens. What I'm regretting here, is that not only jetspeed/turbine silently modifies the method name i want to call, but also doesn't give a single sign of warning when the method could not be found :/ Maybe I'll submit a patch for this (to at least get some logging of the error) greg -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 15:41 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet Thanks for the tip but I think the problem is the goDetails method is never fired. I add a line to debug on the jetspeed.log: public class DominoViewSSO extends JspPortletAction { public void goDetails(RunData data, Portlet portlet) throws Exception { Log.debug("Lancio il metodo"); setTemplate(data, "Contact.jsp"); } and I can't find the "Lancio il metodo" string on the log This is my .xreg file: Lotus Domino View Example (JSP) Lettura da una vista Domino via JSP org.apache.jetspeed.portal.portlets.JspPortlet Domino The Contact.jsp is in the same directory of the other template "View.jsp" Thanks a lot for your help Marco Fabbri - Original Message - From: "Gregory Joseph" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 3:26 PM Subject: RE: Link to a JSP page on a JSPPortlet the setTemplate method call (or what is done behind the seems) seems to have this tendency to silently ignore the fact that it could not find your template. Try catching a NullPointerException after your setTemplate call, or do some debugging. If the npex is thrown, it's likely your template wasn't found. Of course should leave this try/catch(NPEx) on production code, but that's how I found out something was wrong with my templates names greg -Original Message----- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 15:25 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet I removed it and this link is compiled: http:///jetspeed/portal/user/admin/page/default.psml/media-type/html? js_peid=P-f7b3f134a5-1&eventSubmit_goDetails=Save But the page remains the same... Where do I wrong? - Original Message - From: "Gregory Joseph" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 2:33 PM Subject: RE: Link to a JSP page on a JSPPortlet remove the from your form. The tutorial is outdated. http://www.mail-archive.com/[EMAIL PROTECTED]/msg09649.html greg -----Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 14:31 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet - Original Message ----- From: "Christophe Lombart" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> 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) 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --
Re: Link to a JSP page on a JSPPortlet
Thanks for the tip but I think the problem is the goDetails method is never fired. I add a line to debug on the jetspeed.log: public class DominoViewSSO extends JspPortletAction { public void goDetails(RunData data, Portlet portlet) throws Exception { Log.debug("Lancio il metodo"); setTemplate(data, "Contact.jsp"); } and I can't find the "Lancio il metodo" string on the log This is my .xreg file: Lotus Domino View Example (JSP) Lettura da una vista Domino via JSP org.apache.jetspeed.portal.portlets.JspPortlet Domino The Contact.jsp is in the same directory of the other template "View.jsp" Thanks a lot for your help Marco Fabbri - Original Message - From: "Gregory Joseph" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 3:26 PM Subject: RE: Link to a JSP page on a JSPPortlet the setTemplate method call (or what is done behind the seems) seems to have this tendency to silently ignore the fact that it could not find your template. Try catching a NullPointerException after your setTemplate call, or do some debugging. If the npex is thrown, it's likely your template wasn't found. Of course should leave this try/catch(NPEx) on production code, but that's how I found out something was wrong with my templates names greg -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 15:25 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet I removed it and this link is compiled: http:///jetspeed/portal/user/admin/page/default.psml/media-type/html? js_peid=P-f7b3f134a5-1&eventSubmit_goDetails=Save But the page remains the same... Where do I wrong? - Original Message - From: "Gregory Joseph" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 2:33 PM Subject: RE: Link to a JSP page on a JSPPortlet remove the from your form. The tutorial is outdated. http://www.mail-archive.com/[EMAIL PROTECTED]/msg09649.html greg -Original Message----- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 14:31 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet - Original Message - From: "Christophe Lombart" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> 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) 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Link to a JSP page on a JSPPortlet
the setTemplate method call (or what is done behind the seems) seems to have this tendency to silently ignore the fact that it could not find your template. Try catching a NullPointerException after your setTemplate call, or do some debugging. If the npex is thrown, it's likely your template wasn't found. Of course should leave this try/catch(NPEx) on production code, but that's how I found out something was wrong with my templates names greg -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 15:25 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet I removed it and this link is compiled: http:///jetspeed/portal/user/admin/page/default.psml/media-type/html? js_peid=P-f7b3f134a5-1&eventSubmit_goDetails=Save But the page remains the same... Where do I wrong? - Original Message - From: "Gregory Joseph" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 2:33 PM Subject: RE: Link to a JSP page on a JSPPortlet remove the from your form. The tutorial is outdated. http://www.mail-archive.com/[EMAIL PROTECTED]/msg09649.html greg -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 14:31 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet - Original Message - From: "Christophe Lombart" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> 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) 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to a JSP page on a JSPPortlet
I removed it and this link is compiled: http:///jetspeed/portal/user/admin/page/default.psml/media-type/html?js_peid=P-f7b3f134a5-1&eventSubmit_goDetails=Save But the page remains the same... Where do I wrong? - Original Message - From: "Gregory Joseph" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 2:33 PM Subject: RE: Link to a JSP page on a JSPPortlet remove the from your form. The tutorial is outdated. http://www.mail-archive.com/[EMAIL PROTECTED]/msg09649.html greg -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 14:31 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet - Original Message - From: "Christophe Lombart" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> 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) 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Link to a JSP page on a JSPPortlet
remove the from your form. The tutorial is outdated. http://www.mail-archive.com/[EMAIL PROTECTED]/msg09649.html greg -Original Message- From: Marco Fabbri [mailto:[EMAIL PROTECTED] Sent: lundi 22 septembre 2003 14:31 To: Jetspeed Users List Subject: Re: Link to a JSP page on a JSPPortlet - Original Message - From: "Christophe Lombart" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> 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) 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to a JSP page on a JSPPortlet
- Original Message - From: "Christophe Lombart" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> 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) 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to a JSP page on a JSPPortlet
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link to a JSP page on a JSPPortlet
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" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]