Where can we find the compiled file of jsp in the directory struture.

Showing Answers 1 - 13 of 13 Answers

Dhana

  • Dec 9th, 2005
 

Will be available in the work folder under the tomcat base folder.

Sreejith

  • Dec 10th, 2005
 

Better i know which webserver u r using? i hope u know that any webserver would convert your jsp file into a java file first compile it into a .class file and then load it in the memory.  In a sense, instead of you doing the work of compiling and loading the file, the webserver does it.  Somewhat similar to that of Servlet concepts.  if you are using Apache Tomcat 4.1, the webserver creates the .java file in the classes directory in c:\Tomcat4.1.

Try it out and get back to me for any clarifictions.

regards

sreejith

  Was this answer useful?  Yes

kk

  • Dec 11th, 2005
 

Hi Sreejith and Dhana,

 thanks for your reply...actually am using Websphere apps server for the deployment for war and jar...so where can i find .class files of jsp file?

regards

kk

  Was this answer useful?  Yes

Haripriya

  • Dec 23rd, 2005
 

If u r using Tomcat then is found at C:/programfiles/apachegroup/tomcat/work/standalone/localhost

  Was this answer useful?  Yes

pankaj

  • Jan 9th, 2006
 

hi

       If u r working with war files , then after deploying war file as an application , go to websphere installtion dir

like

D:\Program Files\WebSphere\AppServer\temp\IND-SPZ7W2S0099\server1\epspal\epspal_scr.war\pages\jsp\compositeRate

in which there is temp folder in which u will find ur m/c name folder and then server name folder that u configure and then application name folder . so check out there u will get all class file of jsps started with _(underscore) 

  Was this answer useful?  Yes

B.srinivasarao

  • Feb 27th, 2006
 

I know In the tomcat tomcat/work/catliena/jspservlets/xxxxxxwebapplication/_xxxx.java ,_xxxx.classin weblogi Myserver/ .wlnotdelete/jsp_servlets -----__xxxx.class only

  Was this answer useful?  Yes

srinivas

  • Feb 27th, 2006
 

tomcat------------------->tomcat/work/catliena/XXXXwebapp/_yyy.java, /_yyy.classweblogic--------------->bea/user_projects/xxxxproj/applications/myserver/.wlnotdelete/jsp_servlets/yyyy.class

  Was this answer useful?  Yes

Sure Nageswara Rao

  • Feb 27th, 2006
 

It is very simple to find on any web  server whether you are using tomcat or webloigc etc.  Do a small syntax error. The web container shows the mistake along with the file structure(of where, in which class, the error occurred).  Follow the path you can see it.

  Was this answer useful?  Yes

Kaushik

  • Mar 1st, 2006
 

Hi!

I am using JDeveloper and Orcale9i application server.

In JDeveloper, the path is

JDeveloper\j2ee\home\application-deployments\your_application\your_application\persistence

In Oracle9i application server, the path is

/9ias/rel2/app/oracle/product/9.0.3/j2ee/home/application-deployments/your_application/your_application/persistence

Bye,

Kaushik

  Was this answer useful?  Yes

b srinivas

  • Mar 3rd, 2006
 

hi

haripriya,

your answer is correct . plz write the full path of the directoy structure in tomcat and weblogic server.

  Was this answer useful?  Yes

Vinod

  • Dec 28th, 2015
 

I am using Tomcat server and Mysql database. Whenever i tried to run this i am getting an error "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver ".
Can someone please help me to overcome this problem

Code
  1. <%@ page import="java.sql.*" %>

  2. <%!

  3. // mysql driver

  4. String driver = "com.mysql.jdbc.Driver";

  5.  

  6. // the "url" to our DB, the last part IS the name of the DB

  7. String url = "jdbc:mysql://localhost:8081/ebookshop";

  8.  

  9. // the DEFAULT DB username AND password may be the same as your control panel login

  10.  

  11. String name = "root";

  12. String pass = "root";

  13. %>

  14.  

  15. <html>

  16. <head>

  17. <title>testServlet</title>

  18. </head>

  19. <body>

  20. <p>Attempting to open JDBC connection to:... </p> <%=url%>

  21. <%

  22. try

  23. {

  24. // Test the DB connection BY making an empty table

  25. String tableStr = "CREATE.....table test (testid mediumint(8), name varchar(100))";

  26. Class.forName(driver);

  27.  

  28. // initialize the Connection, with our DB info ...

  29. Connection con = DriverManager.getConnection(url,"name","pass");

  30.  

  31. Statement stat = con.createStatement();

  32. %>

  33. <p> executing: <%=tableStr%></p>

  34. <%

  35. stat.executeUpdate( tableStr );

  36. %>

  37. <p> success.... </p>

  38.  

  39. <%

  40. // close connection

  41. con.close();

  42. }

  43.  

  44. catch (SQLException sqle)

  45. { out.println("<p> Error opening JDBC, cause:</p> <b> " + sqle + "</b>"); }

  46.  

  47. catch(ClassNotFoundException cnfe)

  48. { out.println("<p> Error opening JDBC, cause:</p> <b>" + cnfe + "</b>"); }

  49.  

  50. %>

  51. </body>

  52. </html>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions