Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Struts default values
jaisai vijay
Ranch Hand
Posts: 70
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
When we submit a form it always takes default values of datatype. How to set it to not to take default values?
Thanks for your help
Sagar Rohankar
Ranch Hand
Posts: 2908
1
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Look at your action form, in constructor initialize it with the values you want, also take a look at ActionForm#reset() method.
[LEARNING bLOG]
|
[Freelance Web Designer]
|
[and "Rohan" is part of my surname]
jaisai vijay
Ranch Hand
Posts: 70
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I tried to set default values in constructor still it is not gicing me expected values.
Can any one please help me???
jaisai vijay
Ranch Hand
Posts: 70
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
Please help me in this issue.
Sagar Rohankar
Ranch Hand
Posts: 2908
1
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Either set in HTML FORM, like
<input type="text" name="id" value="YOUR_DEFAULT_VALUE"/>
OR
IN action form class
public class MyForm { private int id = "YOUR_DEFAULT_VALUE; // getter and setter }
[LEARNING bLOG]
|
[Freelance Web Designer]
|
[and "Rohan" is part of my surname]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Create bean with Init method
Problem in Reset button.
default value for EL functions arguments
final variables
double Type of Value in JTable
More...