MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sonoerin
Post subject: not sure what I am looking for  PostPosted: Apr 04, 2011 - 06:46 PM
Veteran Member
Veteran Member


Joined: Jul 22, 2005
Posts: 107

Good day,
New to Spring MVC 3.0 and I was hoping someone could point me in the right direction. I have a @Controller and a jsp. The jsp has several tables to demonstrate many-to-many relationships. What I am trying to do, is when a table item is clicked such as:


<c:forEach items="${myList}" var="listItem">
<tr>
<td><a href="<spring:url value="/productName/${listItem.itemDescription}"/>">${listItem.itemDescription}</a></td>
..
</tr>

This works to select the items description, but really want I want to to return the listItem object so I can use it in my controller. Unfortunately, I am not seeing the documentation on how I make this object available from the JSP table to the Controller.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jkennedy
Post subject: RE: not sure what I am looking for  PostPosted: Apr 05, 2011 - 03:57 PM



Joined: Jan 27, 2010
Posts: 245

Are you using MyEclipse for Spring?

If so, one of our main features is the ability to scaffold a Spring MVC Application using your existing data model. You can start with a Java Bean, JPA Entity, or RDBMS table, etc.

Here is a quick video that you can review: http://www.youtube.com/watch?v=Ef6JyuRv8C4

The output of this scaffolding will have the JSP pages and Spring MVC Controllers (If you choose MVC on the wizard) that can get you a nice example (and reusable software components) that you can use to build out the rest of your application.

Thanks,
Jack
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits