_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
You would pass the bean instance and session object as parameters in a JSP
function (called a method).
For Example, you would say:
jsp:useBean id="chk" scope="page" class="Alpine.chkBean" /
%!
int chkID(String strBar, Alpine.chkBean chk,
javax.servlet.http.HttpSession session)
{
You cannot call methods of JSP or Serlvets from outside.
A calling servlet or jsp is one that forwards itself to
another jsp or serlvet and does not return.
A Servlet or JSP loads once and thereafter is loaded, until changed again.
Once loaded, a calling jsp or serlvet will not cause it to
Do it via Interfaces:
Make an interface that describes the methods of CorbaConnection
Call it CorbaInterface_A.
have CorbaConnection implement CorbaInterface_A
Next say:
CorbaInterface_A corbacon = con.get();
This is how true Object Oriented Programming Works.
Eric R. Dunstan
May 30, 2000
Use StringBuffer.append. Don't use += of String for large Strings because
everytime you use += a new String is constructed and the previous String is
garbage Collected. StringBuffer.append, on the other hand, truly appends
the String to the StringBuffer and no garbage collecting is done. Hence
Use the forward tag:
jsp:forward page="mymainjsp.jsp"/
From: Mohan Radhakrishnan [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: JSP redirection
Date: Tue, 2 May 2000 18:45:10 -0700
Hi,
put a forward command at the end of your page:
jsp:forward page="mymainjsp.jsp"/
From: Mohan Radhakrishnan [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: JSP redirection
Date: Tue, 2 May 2000
try
%= (inputparams.getAreatype()).equals("Nativeforest")?"Checked" :
"Notchecked" %
Note the extra Parenthesis around the (inputparams.getAreatype())
ERD 2000 A.D.
From: Peter Hutchinson [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL
How do I send parameters to a servlet.
I have considered reading files inside the method
public void init(ServletConfig config) throws ServletException{
super(config);
//read file...
}
but I wonder if there is a better solution.
Thanks a lot, Eric
Why would the same SQL Query to the Connection bean provided by JRun
sometimes returns an empty result set and other times work?
We cannot figure it out. It has a connection each time- it returns true,
but when getting the result set it sometimes returns an empty set and other
times works.
Do
you,
Eric Dunstan
VEC 1999
__
Get Your Private, Free Email at http://www.hotmail.com
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
F
11 matches
Mail list logo