File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Posting one selected option value in two forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Posting one selected option value in two forms" Watch "Posting one selected option value in two forms" New topic
Author

Posting one selected option value in two forms

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hello,


ERROR:
======
C:\Program Files (x86)\Java\apache-tomcat-6.0.18\webapps\ROOT\WEB-INF\classes>ja
vac *.java
AppointmentMethods.java:65: cannot find symbol
symbol : variable deptId
location: class AppointmentMethods
deptId+"' target=mainFrame\">"+

^
The following code works but..


the problem is I need deptId in two places one to show date/time of the concerned dept in right corner mainFrame
and same deptId I need for post form to create new appointment by inserting data into db.

If I am doing like the following code....

then on deptId==>submit() it call post form.

How can I use deptId for both forms?

Best regards




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Posting one selected option value in two forms