Hello Markus,
Can you please elucidate your mail with an example?
Actually my requirement is if i use a list of objects to populate on the
select element, how can i get the selected element as an object. For example
if i populate select element using list of Banner objects, how can i get
the
Have a look at the struts-showcase examples. There are lots of
s:select tags with Actions.
http://www.planetstruts.org/struts2-showcase/tags/ui/example!input.action
Regards
--
Markus Stauffer
On Wed, Feb 13, 2008 at 9:17 AM, Prashant Khanal
[EMAIL PROTECTED] wrote:
Hello Markus,
Can you
Hi Prashant,
For simple objects, the Type Conversion[1] feature is intended to
convert, say, a string value in into an object before its set in your
action.
In your case however, there's no automatic way for struts 2 to load the
selected Entity instance. At best, the key/id from the select
--- Prashant Khanal [EMAIL PROTECTED] wrote:
Can you please elucidate your mail with an example?
Actually my requirement is if i use a list of objects to populate
on the select element, how can i get the selected element as an
object. For example if i populate select element using list of
Hello all,
I just started working on struts 2 and stuck in a problem.
I have a page that consists of a select element and a submit button:
s:form name=conceptSelection action=sequenceSelection method=post
lis:select label=Select Concept name=concept list=banners
listKey=id
Hi
name=concept means the struts Action will call the setConcept()
method with the selected value as parameter. You want to add an
instance variable named conecept in your Action class. Add getters and
setters as well.
Regards
--
Markus Stauffer
On Wed, Feb 13, 2008 at 5:31 AM, Prashant Khanal
6 matches
Mail list logo