Figured out.
Thanks..
User Profile
Collapse
-
-
Passing checkbox values from one JSP page to another
I'm trying to get user selections (using checkboxes) on one JSP page(A.jsp) and pass them on to another page.
So I have one page with a list of dynamically populated items like this
1 [checkbox]
2 [checkbox]
...
...
n [checkbox]
Submit button
So the second page(B.jsp) needs to say " You selected 1,2,3" (apart from stuffing them into a database)
... -
Hello!
Thank you Jos and r035198x for your time and assistance in this matter.
I called up the hosting service provider again. The customer service rep. indicated that there might be restrictions on trying to access an external database. I apologize for taking up your time. The last time I called, they were pretty confident that there were NO restrictions of any kind at their end.
Once again, thanks for...Leave a comment:
-
Hi Jos,
My local machine has WindowsXP and the remote runs Linux.
I can ping the database host machine from my local machine 1 (command prompt).
The database (2nd machine) is set up to be accessed remotely and has no security restrictions.
I tried this piece of code
[CODE=java] try {
InetAddress address = InetAddress.get ByName("url");
out.println("<B R>Name:...Leave a comment:
-
This is what the code looks like
[CODE=java] try{
.....
Class.forName ("com.mysql.jdb c.Driver").newI nstance();
out.println("<B R> Connecting to DB...Pls. Wait <BR>");
Connection con = DriverManager.g etConnection("j dbc:mysql://blah.blah.net:3 307/dbname","user", "pwd");
if(con.isClosed ())
out.println("<B R><BR><BR>"...Leave a comment:
-
Hi r035198x
That code is in the middle of a JSP page.
After that, I have a couple of out.println statements and a Continue button that redirects to another page. All the rest of the code works fine.
The part dealing with the database (where I'm trying to read and display some info) is "ignored".
=============== =============== =============== ==============
A little more background....Leave a comment:
-
Thank you! It feels like I'm making some progress.
Since the 3rd machine (that I called server) is essentially a web hosting account, I cannot try the ping directly.
I will try and ping it with some Java code
Something like
try{
ping ("url")
out.println("ab le to ping");
}
catch(IOEXcepti on e){}
Thank you again!!!
...Leave a comment:
-
Hi Jos,
Thank you for your time.
The database is on another (3rd) machine.
So I have
1. My local machine
2. Database hosted on a 2nd machine
3. Place I'm moving my code to (its basically a hosting account provided by an external company)
I can access it from my local machine. However, when I move the code over to another machine, it doesn't work.
...Leave a comment:
-
There is no error displayed.
Its as if that part of the code is ignored.
Thank you for the reply!Leave a comment:
-
JDBC/JSP/MySQL Code works from my local machine, but not on server
Hello All!
I've been struggling with this problem for a while.
I have a database from which I need to read and display some data on a browser. (The database is set up for remote access).
I'm using the following JSP/JDBC code to do that.
[CODE=java] ----------------------------------------------------------------------------------------------
Class.forName ("com.mysql.jdb c.Driver").newI nstance();...
No activity results to display
Show More
Leave a comment: