• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Can I direct link a portlet via a URL?

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all

Do portlets have url that I can link directly?
I find some information says that portlets are not directly URL addressable.
But in JSR-286 , there are a topic about portlet url.
I want to know that if a portlet can be linked by a URL that I can send some parameter to it via http request.


Thanks & Best Regards
 
author
Posts: 469
20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Avseq,

That is one thing you can't do: direct linking to a portlet. Portlets are not like Servlets.
The URL for a portlet is not specified in web.xml as in case of Servlets. The portlet URL is not specified by the developer but created using methods defined in the RenderResponse object or by using the portletURL tag of portlet tag library. The Portlet URL chapter that you saw in the 2.0 spec, it deals with the different types of portlet URLs that you can create for a portlet to send it different types of requests, like RenderRequest, ActionRequest and ResourceRequest. Instead of directly linking to a portlet, you should link to a portal page, which contains the portlet.

hope this helps.

regards
Ashish
-----------------------
SCJA, SCJP, SCJD, SCWCD, SCEA, SCBCD, IBM-XML, IBM-DB2
Author: Portlets in Action
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Avseq,

Which portal server are you talking about? In case of weblogic there is a way.

Andy
reply
    Bookmark Topic Watch Topic
  • New Topic