The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by mecarmona]

Hi!!!
I have the following jsp example. This jsp call a applet and set the pool and
server values. This example is taken from www.weblogic.com documentation. I
would like to know what is doing this jsp in the following sentence:
<param name="weblogic_url" value="t3://localhost:7001">

This is jsp code:

<html>
<head>
<title>
Phonebook Applet
</title>
</head>

<body bgcolor=#FFFFFF>



<h1>

Phonebook Applet

</h1>

<BLOCKQUOTE>
This applet has been loaded using the Java 1.1.3 Plugin from a
<jsp:plugin> tag.
The JSP servlet should have sent the appropriate browser plugin
tags for your browser type. Try viewing the HTML source to see
the tags, then try loading the same JSP from another browser,
and view the HTML source again.
</BLOCKQUOTE>

<center>

<jsp:plugin type="applet" code="examples.applets.PhoneBook1">
codebase="/classes/"
height="800" width="500" type="applet" jreversion="1.1.3"
nspluginurl="http://java.sun.com/products/plugin/1.1.3/plugin-install.html"
iepluginurl="http://java.sun.com/products/plugin/1.1.3/jinstall-113-win32.cab#Version=1,1,3,0"

>
<params>
<param name="weblogic_url" value="t3://localhost:7001">
<param name="poolname" value="demoPool">
</params>
<fallback>
Sorry, your browser type is not supported!
</fallback>
</jsp:plugin>

</center>






Copyright © 1996-2000, BEA Systems, Inc. All rights reserved.


</body>
</html>


Because I would like to call a applet and that applet does access to the DB,
and i need to specify that line, but i don´t know how....before that it
example i reached do the following jsp, which do a query a DB:

<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->

<head>
<title>Query of Municipalities</title>

</head>
<body bgcolor=#FFFFFF>



<h1>

Municipalities List

</h1>
<%@ page import="<br /> weblogic.db.jdbc.*, <br /> weblogic.html.*, <br /> java.sql.*<br /> " %>




<%<br /> Connection conn = null;
try {
Class.forName("weblogic.jdbc.pool.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:weblogic:poolsmilieESAPool");
}
catch (Exception e) {
e.printStackTrace();
}

Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * from CAT_MUNICIPIO");

ResultSetMetaData md = rs.getMetaData();
int numCols = md.getColumnCount();

%>


<center>
<table border=1 cellspacing=2 cellpadding=0 width=400>
<tr>

<%<br /> for (int i = 1; i <= numCols; i++) {
%>

<td><%= md.getColumnLabel(i) %></td>

<%<br /> }
%>
</tr>

<%<br /> while (rs.next()) {
%>

<tr>

<%<br /> for (int i = 1; i <= numCols; i++) {
%>

<td><%= rs.getString(i) %></td>

<%<br /> }
%>




<%<br /> }
%>

<%<br /> rs.close();
stmt.close();
conn.close();

%>

Please call Mary with any updates ASAP!


Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.



</body>
</html>


This jsp is accesible from:
http://172.21.9.23/gep/alterno/ex_jsp/b1.jsp

From the final jsp, I think that i have to change the following lines from the
first jsp:
<params>
<param name="weblogic_url" value="t3://localhost:7001">
<param name="poolname" value="demoPool">
</params>
by:
<params>
<param name="weblogic_url" value="t3://localhost:7001"> //Here is my
doubt.What´s "t3:" meanning?
<param name="poolname" value="DESAPool">
</params>

Could somebody help me please?.....
Thanks in advance.....
Mary