• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic