Forums

Home » Liferay Portal » English » Liferay Legacy

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
jineshv jineshv
WebKeys
August 17, 2005 7:37 PM
Answer

jineshv jineshv

Rank: Junior Member

Posts: 34

Join Date: October 5, 2004

Recent Posts

Hello,<br /><br />I would like to what are webkeys. why are they used in such a way in all the action classes? <br /><br />
1
2DLRepository repository = &#40;DLRepository&#41;req.getAttribute&#40;
3    WebKeys.DOCUMENT_LIBRARY_REPOSITORY&#41;;
<br /><br />Not understanding the purpose of this static class?<br /><br />If we were to create a similar portlet in the ext environment, what should we do ?<br /><br />Thanks in advance<br /><br />Jin
Brett Randall
WebKeys
August 18, 2005 4:52 AM
Answer

Brett Randall

Rank: Liferay Legend

Posts: 1254

Join Date: August 17, 2004

Recent Posts

They are simply constants, used as request attribute keys, avoiding duplicated strings.<br /><br />You would apply a similar pattern to anything you put into the request as an attribute, probably using your own WebKeys class.<br />