Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

Atanu Dey

Greenhorn
+ Follow
since Apr 25, 2002
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 Atanu Dey

Hi,
How can I view the pages which are being accessed by the users in the console of Tomcat 4.1.12 ? Is there any process of displaying the user accessed pages in the
console?
Thanx in advance..
Atanu
19 years ago
Hi,
When Iam trying to configure tomcat's resource factory , it is giving error:
----- Root Cause -----
javax.servlet.ServletException: java.sql.SQLException: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc racle:thin@132.132.1.22:1521 bform'
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.Cricket_jsp._jspService(Cricket_jsp.java:636)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)

where 132.132.1.22 is my database server url and dbform is the database service name. Iam configuring with the following parameter:
<Resource name="jdbc/SPAppDB" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/SPAppDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>username</name>
<value>sportsprix</value>
</parameter>
<parameter>
<name>password</name>
<value>sportsprix</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc racle:thin@132.132.1.22:1521 bform</value>
</parameter>
Please somebody help me...this is urgent..
Thanks in advance..
Atanu
20 years ago
Hi Kartik,
The basic difference between jsp:include and <% @ include is that, <%@ include is a include directive and is processed at compile time, whereas jsp:include is processed everytime whenever there is a request at runtime. It is always better to use <%@ include when u have predefined/static files to be included.
Hope this answers yr query,
Atanu
20 years ago
JSP
Hi Kartik,
The basic difference between jsp:include and <% @ include is that, <%@ include is a include directive and is processed at compile time, whereas jsp:include is processed everytime whenever there is a request at runtime. It is always better to use <%@ include when u have predefined/static files to be included.
Hope this answers yr query,
Atanu
20 years ago
JSP
Hi James,
Yeah, you are correct. JSP-compiled servlets are container and vendor specific. But in case somebody wants to check a JSP for error before deploying that, I think that can be done thru compiling that in an IDE.
Regards,
Atanu

Originally posted by James Carman:
Remember, you may pre-compile JSPs for a specific servlet container, but the pre-compiled classes will not be portable across vendor implementations. Yes, JSPs are just servlets, but typical JSP implementation servlets (those generated by aJSP processor like Jasper) rely upon vendor-specific super/helper classes. I don't know if that's what you meant, but I just wanted to give you a heads-up just in case.

20 years ago
JSP
Hi Cathy,
U can use some IDE like 'Pramati Studio' from to pre-compile your JSPs.
Atanu
20 years ago
JSP
Hi Hari,
If u want to have one more directory 'module1' in the 'MyApp' directory and want to access the same logo.gif in a JSP file inside that 'module1' folder, just refer to the image like this:
<img src="../images/logo.gif">. Likewise u can have multiple JSPs in multiple folders accessing the same image file in 'images' folder.
Hope this will solve yr problem. let me know.
Atanu

Originally posted by Hari babu:

Hi Atanu,
If i put images folder in "Myapp" directory it will work, but what if i have another directory "module1" in my web folder and i want the same logo image in one of its JSP,then i should copy the images folder under module1 also, which is waste, as iam repeating the same set of files (here logo.gif). I want to have a single set of files
Thanks

20 years ago
Hi Hari,
U have to put the 'images' folder inside yr 'myApp' folder. Then u can use <img src="images/logo.gif"> statement.
Atanu

Originally posted by Hari babu:

Hi Karl,
If i use <img src="images/logo.gif">, it tries to get the logo.gif from images folder under "Myapp" folder, which i dont have b'coz "Myapp" and "images" are at same level.


[ April 25, 2002: Message edited by: Atanu Dey ]
20 years ago