• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want to change the app code value 10.

 
Preethi jaya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Preethi jaya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sunz... its working fine
[ August 19, 2008: Message edited by: Preethi jaya ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic