| Author |
I want to change the app code value 10.
|
Preethi jaya
Greenhorn
Joined: Aug 18, 2008
Posts: 12
|
|
Hi I want to change the app code value 10. when i select value from drop down, the selected value should pass int. my java code public ArrayList<ServiceRenewalFormBean> getServiceRenewal(int a) throws SQLException, NamingException { DateFormat dateFormat = new SimpleDateFormat("MM-dd-yy"); java.util.Date date = new java.util.Date(); String FromDate = dateFormat.format(date); System.out.println("FromDate : " + FromDate); Calendar calendar = Calendar.getInstance(); //here i want to pass the argument value calendar.add(Calendar.DATE,10); [ August 18, 2008: Message edited by: Preethi jaya ]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
Welcome to the Ranch. Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information. You can go back and change your post to add code tags by clicking the .
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
|
I am unsure what you are trying to do. What are you trying to pass where? What is the relationship between the JSP code you showed and the Java code?
|
 |
Sunny Jain
Ranch Hand
Joined: Jul 23, 2007
Posts: 433
|
|
Hi Preethi, I think you can do following: [ August 18, 2008: Message edited by: Sunny Jain ] [ August 18, 2008: Message edited by: Sunny Jain ] [ August 18, 2008: Message edited by: Sunny Jain ] [ August 19, 2008: Message edited by: Sunny Jain ]
|
Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
|
 |
Preethi jaya
Greenhorn
Joined: Aug 18, 2008
Posts: 12
|
|
Thanks Sunz... its working fine  [ August 19, 2008: Message edited by: Preethi jaya ]
|
 |
 |
|
|
subject: I want to change the app code value 10.
|
|
|