This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes [newbie] Queries, passing/retrieving values from .java to jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "[newbie] Queries, passing/retrieving values from .java to jsp" Watch "[newbie] Queries, passing/retrieving values from .java to jsp" New topic
Author

[newbie] Queries, passing/retrieving values from .java to jsp

Shawn Sebedang
Greenhorn

Joined: Jul 20, 2012
Posts: 2
Hello guys. I don't know where to post this since I'm using Liferay but using JSF2.0 plugin.
I have no problem passing from jsp to java via the processAction but how do I pass values from the .java to .jsp from initial rendering of the page? On my .java, I have a database query using Liferay's built in service util which gets a list of countries. Now, I want to place the data I've retrieved to a select's option and value attributes.

excerpt of .java


excerpt of .jsp


Thank you in advance for the help
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

To get help, the first thing you need to do is fix your display name: http://www.javaranch.com/name.jsp .

This isn't JSF, regardless of what plugins LifeRay is using, so I'm moving it to the Portals forum.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
wood burning stoves
 
subject: [newbie] Queries, passing/retrieving values from .java to jsp
 
Similar Threads
linking jsp pages in a liferay portlet
Liferay: NullPointerException on load.
Dynamic drop down list validation.
selectOneListbox value from an ArrayList
load select options in spring MVC portlet with particular Item highlighted?