Forum

Accueil » Alloy UI » English

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Jerome Comouth
Reading jsp name in doView method
21 août 2014 02:58
Réponse

Jerome Comouth

Rang: Junior Member

Publications: 25

Date d'inscription: 7 avril 2014

Publications Récentes

It's not really a problem with Alloy, but I hope it's okay to post it here, because it's about JSP.

According to this article, I make it possible to render another JSP with this lines of code in a JSP:
1<portlet:renderURL var="viewGreetingURL">
2    <portlet:param name="jspPage" value="/view.jsp" />
3</portlet:renderURL>
4
5<p><a href="<%= viewGreetingURL %>">← Back</a></p>


In my portlet class I've got a doView method. I want to load specific informations for each of my JSPs in the doView method. How can I know, which JSP has been chosen / want to be rendered?
David H Nebinger
RE: Reading jsp name in doView method
21 août 2014 16:47
Réponse

David H Nebinger

Community Moderator

Rang: Liferay Legend

Publications: 11046

Date d'inscription: 1 septembre 2006

Publications Récentes

I think you're overthinking your implementation, and that will just lead to maintenance confusion later on.

Stick with the common MVC patterns that are already supported, be it LiferayMVC or Spring portlet MVC, whatever, but avoid trying to do your own thing.