Enlightensoft's Blog

Helping in your each step

  • Categories

  • Authors

Struts 2

Posted by Pankil Patel on March 16, 2010

1) Date / datetimepicker

http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml

2) How will work in struts2?

myAppUserList -> List in supported Action file

selectedId -> value will be set in this property of supported Action file, after page submit

user.id -> ComboBox’s value component

user.name -> ComboBox’s text(display) component

key / label=”Select User” -> Use key for properties file & label for Hard Coding in jsp.

<s:select list=’myAppUserList’ listKey=”user.id” listValue=”user.name” key=”Select User” name=”selectedId” id=”id”/>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: