This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

enum + select on Struts 2

 
Mad Java
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all! I'm having a problem with Struts 2 using select and enum

Lets say I have an Enum:



I want to populate an select with it, but I can't do it! So please help! I'll post what I'm trying:

- The request Action



- The JSP



- The result Action:



Ok, so this doesn't work because the select is returning the id as string, so I made a bad code:




Well, this works with one enum, but in another enum in the same class it doesn't work anymore (don't ask me why).

Anyone has a better, good idea, how to use enums with select on Struts 2?!?! =(
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic