I don't see anything wrong in your code, it should have worked.
Well, what errors did you get when it didn't redirect you to "cgipage.jsp"? did all your code compile fine?
I guess it might be that you were redirected to the expected page, but there're some errors in your "cgipage.jsp" page. I don't know...
You may check log messages under $TOMCAT_HOME/logs, and make sure your code compile.
I dont get any error message but even if i put the right credentials to login,the same page comes again (i.e login.jsp).
following log get generated under $TOMCAT_HOME/logs/catalina.out
everytime i refresh the page an entry "oracle.jdbc.driver.OracleDriver" is written to the log.
However if i use the old path i.e.The UNIX and Linux Forums - Learn UNIX and Linux from Experts
things works fine and i get redirected to cgipage.jsp.There fore i think there should not be a problem in cgipage.jsp page.Anyway i m posting the code for cgipage.jsp as well.
At the very first part of your "cgipage.jsp" page, I see this code:
I guess this is the problem, "user" may not be set in session for some reasons and it is null, so you are redirected back to "login.jsp" as the code does.
I hope you would have solved your problem before seeing this reply, it shouldn't difficult.
At the very first part of your "cgipage.jsp" page, I see this code:
I guess this is the problem, "user" may not be set in session for some reasons and it is null, so you are redirected back to "login.jsp" as the code does.
I hope you would have solved your problem before seeing this reply, it shouldn't difficult.
OK, seems weird...
So you have to do some tests and see whether you were ever redirected to "cgipage.jsp" and redirected back to "login.jsp" for some reasons.
Add the following to your "cgipage.jsp" page, and see whether there are something printed to the console or logged in "$TOMCAT_HOME/logs/catalina.out", or there are something but it is a "null"...you know what's the problem:
You may also want to add some "System.out.println()"s to "login.jsp" and see how many times it has been accessed after you press the "login" button.
This is the help I can offer for the moment.
PS: Logging message to the jvm console using System.out.println() is always discouraged in production code, but it can be useful when troubleshooting.
OK, seems weird...
So you have to do some tests and see whether you were ever redirected to "cgipage.jsp" and redirected back to "login.jsp" for some reasons.
Add the following to your "cgipage.jsp" page, and see whether there are something printed to the console or logged in "$TOMCAT_HOME/logs/catalina.out", or there are something but it is a "null"...you know what's the problem:
You may also want to add some "System.out.println()"s to "login.jsp" and see how many times it has been accessed after you press the "login" button.
This is the help I can offer for the moment.
PS: Logging message to the jvm console using System.out.println() is always discouraged in production code, but it can be useful when troubleshooting.
I dont get any error message but even if i put the right credentials to login,the same page comes again (i.e login.jsp).
following log get generated under $TOMCAT_HOME/logs/catalina.out
Code:
everytime i refresh the page an entry "oracle.jdbc.driver.OracleDriver" is written to the log.
---------- Post updated at 10:37 PM ---------- Previous update was at 10:37 PM ----------
Quote:
Originally Posted by pinga123
I dont get any error message but even if i put the right credentials to login,the same page comes again (i.e login.jsp).
following log get generated under $TOMCAT_HOME/logs/catalina.out
Code:
everytime i refresh the page an entry "oracle.jdbc.driver.OracleDriver" is written to the log.
Do you think it has something to do with database?
Hi there, Im sure there is a simple explanation for this but I have a file like this with no balnk lines
peter
paul
john
I run the command
# var=`grep paul file.txt`
# echo $var
paul
# echo $var | wc -l
1
but when I grep for a value that isnt in the file, i still... (4 Replies)
Hi, I have a very simple script like below:
for n in 10 20 30
do
for a in 30 40 50 60 70 80
do
for r in 2 3 4 5 6 7
do
m=$((r*a))
count=1
while
do
echo "a = " $a ", m = " $m ", n = " $n
... (2 Replies)
I make some changes in a JSP file but the changes do not reflect on tomcat server. In my server.xml 'reloadable' paramtere is set to true. I even treid restarting the server. The changes still not reflect.
The changes do reflect in a day or two. am not sure why this is happening. Shall... (3 Replies)
Hello..
is there any way to send a file or a string from jsp website to java program
which all I will develope
i remember that i can make socket connection between jsp and java but:confused::confused:
I dont now how
if there any website or booke explain that or if there another way ... (2 Replies)
hi
I have one jsp file. i want to edit this jsp page using script.
This jsp page contains ("insert into employee values('raja', 32, ' ');)
i want to add empty column at the end of the line. i.e is that line should be
(insert into employee values('raja', 32, ' ', ' ');) (2 Replies)
Hi all,
i have requirement where i need to call a unix script from a JSP code. my script should list all the csv files from a directory and then should upload the file names to an oracle table (using sqlloader).
i tried using getRuntime function in JAVA to call my script and was successfully... (1 Reply)
Guys
I need to convert a code from JSP (Java Tags are also there inside JSP) to PYTHON.
I have OK kind of knowledge in PYTHON, but dont have a muck knowledge in JAVA/JSP.
Any idea how to approach?
Thanks in advance to all
C Saha (1 Reply)
We have an HP UX-11 server running Unix and we wish to run Java Server Pages on this system. Can anyone see a reason why these pages will not work under this environment.
Thanks for you help.
Matthew (2 Replies)
hello friends,
I have problem. We want to create user from jsp(browser based) on our linux server. How we can do that ? or How do we create a user with shell programming by taking arguments and checking with the existing users and if the user exist it should display the message the user exists... (1 Reply)