Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Victor Boveda

Greenhorn
+ Follow
since May 22, 2001
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 Victor Boveda

Try this. I've found than Netscape doesn't wait for the OutputStream to send data before closing it. So you should force it to wait.
Applet code:

Servlet code:

Hope this helps
16 years ago
Try this. I've found than Netscape doesn't wait for the OutputStream to send data before closing it. So you should force it to wait.
Applet code:

Servlet code:

Hope this helps

[This message has been edited by Victor Boveda (edited May 31, 2001).]
16 years ago
I think you should index the foreign key (in both tables). I don't think the SQL Engine will search by indexes when you use a like clause
Hope this helps
Victor.
You can pass the Bean as an attribute to jsp page.
Something like this:
In your servlet:
try {
Context ctx = new InitialContext();
BeanHome home = ctx.lookup("bean");
Bean b = home.findByPrimaryKey("key");
request.setAttribute("myBean", b);
ServletContext context = getServletContext();
RequestDispatcher disp = context.getRequestDispatcher(page);
disp.forward(request, response);
} catch (.....
}
In your page
<% Bean b = (Bean) request.getAttribute("myBean"); %>
Code = <%= b.getCode() %>
....
Hope this helps
Victor.

[This message has been edited by Victor Boveda (edited May 22, 2001).]
17 years ago
I haven't hear about that but why don't do you use the Jdbc-odbc bridge?, this should work

[This message has been edited by Victor Boveda (edited May 22, 2001).]
17 years ago
You can refer to your pages with absolute
address="/public_html/yourpage.jsp"
or relative path
address="../../yourpage.jsp"
I prefer relative path, because you can change the html server path without change your servlet.
Hope this helps
Victor
17 years ago