What is the solution of this problem
Hello,
I get the following error when the search.jsp is called.
Error: 500
Location: /examples/jsp/pro/search.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\jakarta-tomcat-3.2.4\jakarta-tomcat-3.2.4\work\localhost_8080%2Fexamples\_0002fjsp_0002fpro_0002fsearch_0002ejspsearch_jsp_82.java:111: 'catch' without 'try'.
} catch (Exception ex) {
^
C:\jakarta-tomcat-3.2.4\jakarta-tomcat-3.2.4\work\localhost_8080%2Fexamples\_0002fjsp_0002fpro_0002fsearch_0002ejspsearch_jsp_82.java:120: 'try' without 'catch' or 'finally'.
^
C:\jakarta-tomcat-3.2.4\jakarta-tomcat-3.2.4\work\localhost_8080%2Fexamples\_0002fjsp_0002fpro_0002fsearch_0002ejspsearch_jsp_82.java:120: '}' expected.
^
3 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:536)
What is the reason.. the file does not contain any catch statement which has ex as the Exception Object.
well this is the code of search.jsp
<html>
<head>
<title> SEARCH RESULT</title>
</head>
<%@ page
import="javax.servlet.*,java.io.*,java.sql.Connection,java.sql.DriverManager,java.sql.SQLException,java.sql.Statement,
java.sql.ResultSet,java.util.*,java.io.*,oracle.jdbc.pool.OracleDataSource"%>
<%
try
Class.forName("oracle.jdbc.OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@xyz-
2bb7f1c7083:1521:XE","system","tiger");
Statement st=con.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
} // end of try
catch (SQLException se) { System.out.println(se); }
catch(Exception exc) { System.out.println("exception from search.jsp"+exc); }
%>
<body>
WELCOME TO SEARCH
<form>
<input type="text" name="choice">
<select name="menu">
<option value="0" selected>(please select :)</option>
<option value="1" >Search by faculty
</option>
<option value="2" >Search by department
<%
System.out.println("menu"+request.getParameter("menu"));
System.out.println("choice"+request.getParameter("choice"));
if (request.getParameter("choice").equals("Computer"))
String q=("select * from empldminoyee,allowances,deductions,SALARY where employee.DEPARTMENT='CS' ");
ResultSet rs=st.executeQuery(q);
rs.first();
HttpSession hs=request.getSession(true);
response.setContentType("text/html");
PrintWriter pw=response.getWriter();
pw.print("<B>");
hs.setAttribute("res",rs);
response.sendRedirect("http://localhost:7080/examples/jsp/pro/sfwd.jsp");
%></option>
</select>
<input type="submit" value="submit">
</form>
</body>
</html>
--------------------------------------------------------
Similar Messages
-
@I have my Adobe ID and the Adobe Digital Editions. But when I download an EPUB-ebook, I don´t see the ebook or "My Digital Editions-Bibliothek".What is the solution for this problem?
how can we solve the problem?
I have my adob.e ID, downloaded Adobe Digital Editions.
Whren I download EPUB-ebooks and want to use
Digital Editions, nothing happens and appears!??
Please give me a short feedback and help -
Deactivation of Photoshop CS3 leads to an error 1914:1 what ist the solution for this problem
hello
I try to deactivate photoshop CS3 on my win XP system. When I try this I get the error code 1914:1 . This says there are no activations. But when I try to activate it on the new WIN 7 system
I get the message to many activations. What is the soltion for this problem?Contact support by web chat.
Mylenium -
I have deleted and re-installed it, but to no avail. I cannot access my ITunes from my PC. What must I do to get access to iTunes and my library of music?
In the course of your troubleshooting to date, have you worked through the following document?
iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues -
It won't work because I really want to get flappy bird back!!
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Go to Settings>iTunes and App Store and sign out and sign back in
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
i use an ipad4, it keeps getting stuck randomly and i have to power it off and switch it on again. whats the solution to this problem?
(A) Reset iPad
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected.
(B) Reset all settings
Settings>General>Reset>Reset all settings
Note: Data will not be affected but settings will be reset. -
hi. my laptop was reformatted recently, and my itunes there erased. i created a new one but the problem is it doesn't sync with my ipod anymore. what is the solution for this? can someone give me a tip? will really appreciate. thanks
Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
-
i got Mac originally version is 10.6 and have upgrate to 10.6.8 and than i continue updating to 10.8 and this kind of message always appear until i turn off and turn it on. what is the solution for this message
This message?
http://support.apple.com/kb/TA20920
is a difficult one to resolve.
There is an analysis and suggestions to this problem posted here.
http://www.thexlab.com/faqs/kernelpanics.html -
From the day I bought it I realized the phone heats up after a little use. It gets really hot while using Wifi and downloading. Anyone else having these issues? What's the solution to this?
Your VGA is definitely corrupted and it is irreparable, so just make the HP to change your vga.
Also next time read my post on how to keep your laptop cool to avoid same issues again.
I assume your laptop was pretty hot during some time and that's the result you've got.
Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
I use iphone5, I see an app update on the app store. but when App store and click on the update tab, it doesn't show me which application to update.. just gives me a blank page.!!!! I wouldn't able to know what app has to be updated, untill and unless i get check for each every app on the app store installed on my iphone... what is the solution for this.!!!! can any1 one help me out.!!!!
Cc2528 wrote:
The iTunes Store on my iPad is set up with all my music already. And at the very bottom it shows my apple Id username. The only place it shows the previous owners id is in the App Store...
You can probably change the ID in the "iTunes and App stores" settings on the iPad....click on the wrong account ID , select sign out, then log in with your own ID, I have not done this but I think it works.....
but I would be more inclined to to the factory reset and start afresh. -
I have always been able to import pictures from camera to iphoto without a problem. Now, for some unknown reason our iMac and Mac Laptop will not import pictures from camera to iphoto 9 or 11...what is the fix to this problem? It will only accept import from a CD.
I have always been able to import pictures from camera to iphoto without a problem. Now, for some unknown reason our iMac and Mac Laptop will not import pictures from camera to iphoto 9 or 11...what is the fix to this problem? It will only accept import from a CD.
-
I had bought an iPhone 4S just few days back.And I have noticed that the phone gets quite hot while i am using internet.Can u guys tell me why this happens and what is the solution to this.
Hi, I take it its not just a bit warm?
-
I want to purchase from within the game and show me what is the solution of this letter: Please advise and thank you (Your purchase could not be completed. For assistance, contact itunes support at)
You need to click here and ask the iTunes Store staff for assistance.
(100508) -
No longer authorized to enter the account was used to five devices have exhausted all attempts to please you to the solution to this problem I reside in recursion and I'm not good at English Language
MMS will be available for the 3G and 3GS in two weeks - on Friday, September 25th - likely with a carrier update made available via iTunes.
In the interim - for the next two weeks, ask the sender of an MMS to address the MMS to an email address that you access with the iPhone's Mail client - the sender will enter your email address in the To: field for the MMS instead of your cell phone number with area code. The MMS will be received by you as an email with the photo as an attachment. This will give you the sender's cell phone MMS email address. Add this email address to the contact's info in your iPhone's address book. If you want to send an email with a photo attached as an MMS to this person, address the email to their cell phone MMS email address. The email with the photo attached will be received as an MMS.
This will be required for another two weeks. -
I have Imatch and songs stop playing on my iphone I try to start it again and it will not play for more than 2-4 seconds, does anyone have the solution to this problem?
By "hard reset" you mean hold down the Home and power buttons until the iOS device restarts, correct?
Maybe you are looking for
-
Title says it all. Lightroom shuts down because it can't read from its preview cache.
-
Itunes will not open due to DEP
itunes will not open due to DEP, any suggestions on a fix??
-
New movement types required for Consignment
Hi Friends, Need help related to Consignment Movement Type: in Fill up Process KB/CF my client wants the goods to be in 'Transit' and then next step to Fillup. Similarly in returns, we wanted the goods to be first to be reflected in 'QI' (MMBE/MB58)
-
Can someone explain in lamens terms What is Jar Bundler?
I have recently looked in Finder for Recent Items list called 'Jar Bundler', it was under the Application log. I am not a developer and have never seen this before can someone assist in explaining what it is and does? thanks
-
I can see the icon in my Imovie Projects folder in my finder browser and have managed to copy and paste this file onto my desktop. When I click on the file for this 12:00 fully edited Imovie project it opens up Imovie '11....but the project does not