Hi All,
How can html call servlet under weblogic ? I hope it is not off topic. But I
do need help.
I have a html, called bonus.html, under myserver\public_html\test.
If i want to invoke the servlet "BonusServlet" which will invoke the EJB.
Besides , where I shall put
"BonuServlet.class" to ?
Can
I would think that would work, but you might want to
try this in your web.xml instead:
http://java.apache.org/taglibs/jdbc
jdbc.tld
Also, as a point of information, this line shouldn't
be necessary if you only access the database via the
tag library:
> <%@ page language="java
Hi,
I downloaded the JDBC taglib directory and following the direction copied
the jdbc.tld file under the /WEB-INF directory and jdbc.jar under
/WEB-INF/lib directory. I also created an entry in the /WEB_INF/web.xml
like
http://java.apache.org/taglibs/jdbc
/WEB-INF
I think what you mean to do here:
> <% session.setAttribute("conn1",conn1); %>
is actually:
<% session.setAttribute("conn1",
pageContext.getAttribute("conn1")); %>
However, as Marius pointed out in a previous email,
this is incredibly bad practice and no substitute for
proper connecti
As far as I know the connection is stored in the page context
and not in the session, that is why you get the null pointer.
You should open and close the connection in every page you
need one.
Marius
> mihai manuta wrote:
>
> Hello,
>
> I need to create a connection in one page and then pass
Title:
Hello,I need to
create a connection in one page and then pass the same connection to another
page.The following is an example of what I've done:FIRST
FILE:<%@ taglib uri="http://jakarta.apache.org/taglibs/jdbc" prefix="sql"
%>
JSP
Test<%
String
driver