This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes  I want to change the app code value 10. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark " I want to change the app code value 10." Watch " I want to change the app code value 10." New topic
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: 61314
    
  66

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 .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61314
    
  66

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to change the app code value 10.