Win a copy of Java Challengers this week in the Java in General forum!

Nishant Vashisth

Greenhorn
+ Follow
since Jun 27, 2011
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 Nishant Vashisth

Okay !!
getting your point to some extent !!
can you send me a link to a tutorial for this ??
guys you are miss understanding me !!

i am not making connections on a jsp page i am well aware of the way !!

i am making a connection on a java class and forwarding the resultset to the jsp page !!

what i wanted to ask was that i can use data of one table easily but using multiple tables is creating problems !!
if its so then how to use data base in a jsp page ??
it not like we can work around without database !!!

please share any other modern way if you have i'd be obliged to learn it !!
Guys i need to feed in data from multiple tables on a jsp page..
please help me !!
i know how to do it using one table by using the use bean property and then using the snipplet but i don't know how to do it using multiple tables !!
hey guys i am making a website in jsp !!
and the login is working fine but the problem is when i go to another page and switch back to the login page it again asks to login !!

how to stay logged in like using session or something else !!
help me out please
9 years ago
JSP
i got it working thanks for the suggestion dude !!

moderators please close this topic !!
i thought of that dude !!
but i want to check the result of the question as per their numbers so that i could keep track of which question is answered correct !!
can you help me with the full code !!
Guy i am trying to make a online test website on jsp and am using a servelet to handle the result but when i execute the code it shows a invalid cursor error and i seriously don't know what the hell is wrong help me out please !!!


Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:mydata");
ResultSet rs;
PreparedStatement pst;
score=0;

for(int i=1;i<=num;i++)
{
ansgiven=request.getParameter(Integer.toString(i));
statement="select * from test where qnum = "+i ;
out.print(statement) ;
pst=con.prepareStatement(statement);
rs=pst.executeQuery();
ans=rs.getString("answer");
if(ans.equals(ansgiven))
{
score++;
}




}



The error is in this code only !!!
help me out please
Guys can anyone provide me with a good e-book for using filters in jsp !!
9 years ago
JSP

Bear Bibeault wrote:There are no such things as "HTML functions".

The proper way to do this is with JavaScript on the page, Without that you are forced to re-write the entire page making the changes that are needed.



ya my bad. I am not aware with the terms much. :P

still isn't there another way using java but not the javascripts.
9 years ago
JSP
yes but my course does not has javascript so can you tell me just HTML functions or normal java scriplets !! ???
9 years ago
JSP
guys i am trying to make a date system
in which when user selects year from a drop down list then according to the year selected the
month drop down list is activated
then if the month selected is a 31 days month then the disabled days drop down is activated with 31 days
or for February with 28 days or 29 days..

so how to get the value of the selection of the year and month on the same jsp page
so can you tell me
9 years ago
JSP
hey guys i made a jsp with a drop down.
now after going through 2 or 3 jsp i need the value that was selected in the first index.jsp

how can i do so...
9 years ago
JSP
sure thanks buddy i'll look in to what i can find !!

being a ammature is difficult !!!
9 years ago
JSP
thanks dude but isn't this calendar available in simple java tags <% %> or in jsp tags

because the project i am working on does not has script and if i add this it'll be hell lot difficult for me to explain it to teachers !!
so don't you have a simpler version
9 years ago
JSP