Jack Bolton

Ranch Hand
+ Follow
since May 08, 2006
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jack Bolton

Shailesh Chandra wrote:I am not sure but probably you are looking for this.



Shailesh



with this code, the options array has all the values from the resultset.

but if i do this:



i got:

null
1
null

when in fact it should be the values from the database that the resultset had.

whats going on here?>
Hi, I am working with this cookie program that has a login and register fields for users,
and what I want to achieve now is: that the program tells me which one's are the most frecuents users.
what can i do to solve this?
thanks for any response...

this is the code:

the "login.html"(this is executed first)


the 2.jsp



[ June 04, 2007: Message edited by: Jack Bolton ]
[ June 04, 2007: Message edited by: Jack Bolton ]
15 years ago
JSP
so,
what can i do with this issue?
15 years ago
JSP

Originally posted by Bear Bibeault:
Are these users using the same computer?



yes
15 years ago
JSP
please help me ,
what can i do?
15 years ago
JSP
Hi,
help me with this please
I am working in this jsp-cookie issue,
and have this two .jsps: "1.jsp" and "2.jsp"

the first "1.jsp" looks like this(snippet):
It asks the user for his username, and it add it to a cookie


the "2.jsp", basically makes a request, and if there is an available cookie, it prints it.
snippet of 2.jsp:


what i am trying to achieve is to add another user (with the cookies), when the username is different; for example:
a user goes to the 1.jsp, enter his name"jack", then goes to the 2.jsp, and sees it displayed.
then another user goes to the 1.jsp, enter his name"marc", and sees it displayed in the 2.jsp.
so, the two names will be in two diferent cookies, and everytime a new user comes, the same will happen.
how can i do this?
thanks for any response...

[ June 01, 2007: Message edited by: Jack Bolton ]
[ June 01, 2007: Message edited by: Jack Bolton ]
15 years ago
JSP

Originally posted by Ulf Dittmer:
You can choose those freely - whatever makes sense for your server program. But the server app will need to know what they are so it can access them. The JSP page can't use "s.getText" (which you have above), instead it needs to access the request object and get those parameter. To do that, it needs to know their names.



give me a code example of this please...
15 years ago
ok,
I declared it like this:



but two things I don't understand:
1. in the code you posted:


what "param1" and "param2" represent?

and 2.

Originally posted by Ulf Dittmer:
And since that's not the one extending Applet, you'll need to pass a reference to the Sum class in the constructor.



do you mean I have to make a reference of the actionPerformed method in the main method of the Sum class?
15 years ago
I had to add the Northwind database in the ODBC Settings,
that's the one that was missing.

thanks guys...
Hi, I have this simple program to access a database in Microsoft SQL Server 2000, the database that i am trying to access is Northwind.
But, when i execute the .jsp i get this error:

java.sql.SQLException: [Microsoft] database not found and no driver was specified.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at desisoft_jsp_ch16_01_jsp1179415463593._jspService(desisoft_jsp_ch16_01_jsp1179415463593.java:52)
at desisoft.server.JspBaseClass.service(JspBaseClass.java:48)
at desisoft.server.servlets.Servlet.service(Servlet.java:86)

what am I doing wrong?
thanks for any response...

the code:
ch16_01.jsp
Hi, I have this simple program to access a database in Microsoft SQL Server 2000, the database that i am trying to access is Northwind.
But, when i execute the .jsp i get this error:

java.sql.SQLException: [Microsoft] database not found and no driver was specified.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at desisoft_jsp_ch16_01_jsp1179415463593._jspService(desisoft_jsp_ch16_01_jsp1179415463593.java:52)
at desisoft.server.JspBaseClass.service(JspBaseClass.java:48)
at desisoft.server.servlets.Servlet.service(Servlet.java:86)

what am I doing wrong?
thanks for any response...

the code:
ch16_01.jsp
15 years ago
JSP
This is what I've done so far, but,
something is missing: this program is suppoused to print the firsts numbers from a series of numbers:
1,5,9,13,17...etc..(as I said before),
so, if the user enters, for example: "3", the program should print the first "3" numbers that are: 1,5,9.
but,
Right now, if the user enters "3", the program only prints: "1".
what can i do to solve this?
thanks for any response...
the code:

[ May 15, 2007: Message edited by: Jack Bolton ]
15 years ago
Hi,
I am working in this program that is suppoused to print the firsts numbers from a series of numbers:
1,5,9,13,17...etc..
So, the numbers are jumping from 4 to 4.
for example:
if the user enters "1",the program prints 1.
if the user enters "2", the program prints 1 and 5.
and so on.

how can i program this?

thanks for any response...
15 years ago
i am declaring like this:


and i get: "unreported exception java.net.MalformedURLException; must be caught or declared to be thrown"

what should i do?
15 years ago
I am working with Blazix Web Server to do this.
This is my applet class.
I am only working with the two .jsps and this class.
Where should I "insert" the code you posted?

15 years ago