• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

How do I collect a list of ClientMapping objects from a JSP using Spring 6 and JSTL?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do I collect a list of ClientMapping objects from a JSP using Spring 6 and JSTL?


And here is the JSP


 


I have tried to setup the path of the spring form a bunch of ways but can't seem to get the syntax correct.

Here is the error message from the code above:

 
Saloon Keeper
Posts: 28997
214
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Charles!

I'm the annoying person who has to nit-pick what people say. In this case, I just wanted to say that what you're dealing with isn't "Spring 6" as such, It's Spring Web 6.

Spring is a general framework with many modules, and Spring Web is one of them, but the reason I make the distinction is that I use JavaServer Faces with Spring as my web UI framework, not Spring Web.

As to your actual problem, it looks like you're attempting to use a variable expression in some of your "id=" tag attributes. As a general rule, you cannot do that. The id attribute is a magic XML attrbute and JEE EL isn't accepted in an id value.

On the other hand, you shouldn't need to have a variable ID, Just because it's in a loop. There are mechanisms that handle that as part of the conversion from page template (JSP) to HTML. Plus, you don't transmit form data values by id, you do it by the control's name attribute.

Finally,, when you have multiple values being transmitted under the same name, what you should be seeing on the server side is an array of values. So they all come in under the same name, but the name references an array rather than a simple value.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic