jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 17149
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [newbie] Queries, passing/retrieving values from .java to jsp
 
jQuery in Action, 3rd edition