Re: Trouble with Forward...

2001-08-29 Thread Shawn Zhu

You should be able to forward with those params in it.
However, you may need to properly encode them.  Try
using URLEncode

-Original Message-
From: Moganna, Prasad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 3:17 PM
To: [EMAIL PROTECTED]
Subject: Re: Trouble with Forward...


Try passing the query string info. as request attributes.

- Prasad

> -Original Message-
> From: Rice, David [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 5:04 PM
> To:   [EMAIL PROTECTED]
> Subject:  Trouble with Forward...
>
> Is there any way that anyone knows of to do the following from a JSP page:
>
> String graphletURL =
> "/servlets/GraphServlet?cmd=GtMapStatePayouts&nMonths=27:200012";
>
> RequestDispatcher dispatcher =
> getServletContext().getRequestDispatcher(graphletURL);
> dispatcher.forward(request, response);
>
> In other words, is it possible to FORWARD to a servlet and pass query
> string information? I have tried many permutations of this approach and am
> out of options... ;)
>
> Thanks in advance for any help or advice,
> --
> David L. Rice
> Web Applications Developer
> BellSouth/AL
> Direct: 205.977.0092
> 24/7 Cell: 205.903.9467
> Wk: [EMAIL PROTECTED]
> Hm: [EMAIL PROTECTED]
>
> "Your friend is the man who knows all about you, and still likes you." --
> Elbert Hubbard (1859-1915)
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Creating a JSP function

2001-08-29 Thread Shawn Zhu

Yeah, pass in a double as the parameter.
And declare it in <%! %> tags.

-Original Message-
From: Gustavo Gallas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 10:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Creating a JSP function


When calling a function dbToMoney I declared, I'm getting the following
error message:

500 Internal Server Error
/Eponte/hc_compre2.jsp:

javax.servlet.ServletException: Compilation error occured:
 Found 8 errors in JSP file:
E:\\Servers\\JRun\\servers\\default\\default-app\\Eponte\\parametros.jsp:232
: Error: No match was found for method "dbToMoney(double)".

Is there any hint to call this function I declared?

thanx


- Original Message -
From: "Rajesh Nair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 2:26 PM
Subject: Re: Creating a JSP function


> Jsp allows any valid Java constructs and functions. You can write  a
> funciton
> within the <%! %> tags.
>
>
>
> -Original Message-
> From: Miihir Sahu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 10:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Creating a JSP function
>
>
> Hi,
> As far as I know, we cannot have a function in JSP.  This is due to
> the fact that whatever we are writing in the JSP is combined into a
> function in a servlet.  So if we are to write JSP function, that means
> function within a function, whichi is not possiblethis is what I
> know from the knowledge of JSP.  If anyone has really done it, please do
> inform me, as I think it is a really a surprise to me.  Thanks
> Regards
> Mihir
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: How can i pass the value(object) in jsp to javabean ?

2001-08-21 Thread Shawn Zhu

your exerBeanId is not instantiated, hence the NullPoint Exception.
the exerBeanId from **
is not the same in <% ... exerBeanId.setValues(v); ... %>

They are of different scope.  It's been discussed in the JSP-Interest
Archive.

-Original Message-
From: Carl Song [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 6:21 AM
To: [EMAIL PROTECTED]
Subject: How can i pass the value(object) in jsp to javabean ?


Hi everybody out there!!!

I'm very new to JSP and not really efficient with Java either.
but here I'm tring to pass the Vector object in JSP page to Bean in
order to carry out database insertion.
>From Vector object i'm intending to get values for insert.

Does anybody know how to pass the values(object)?
Please help me!!!

Thanks

*Here is JavaBean(exerBean.java)*
package jp1;

import java.util.*;

public class exerBean {
  private String values ;
  Vector v = new Vector();

  public void setValues(Vector v){
for (int i=0; i




exer



   <% Vector v = new Vector();

v.addElement(new String("hello"));
v.addElement(new String("Bye"));
v.addElement(new String("go"));

  exerBeanId.setValues(v);//* getting
NullPoint Exception***
 out.println(exerBeanId.getString());
  %>

  

  

  






-

E-mail Confidentiality Notice and Disclaimer

This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to which they are
addressed. Access to this e-mail by anyone else is unauthorised. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited.
E-mail messages are not necessarily secure.  Hitachi does not accept
responsibility for any changes made to this message after it was sent.
Please note that Hitachi checks outgoing e-mail messages for the presence of
computer viruses.

-

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Developing for scalability..HttpSession fail-over...

2001-08-21 Thread Shawn Zhu

That's one reason to use EJB. =)

-Original Message-
From: Kevin Duffey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 9:50 AM
To: [EMAIL PROTECTED]
Subject: Developing for scalability..HttpSession fail-over...


Hi all,

Just wanted to see if anyone has developed an application that works and is
HttpSession fail-over safe. In other words, your web.xml has the
 tag, and you can successfully deploy the application into a
container and handle session level fail over so that if one of two (or more)
servers craps out, the user(s) on that box are still able to have their
session in existence and are routed to another server that has it alive.

Now, the reason I am asking is that there is one problem I noticed when
testing my application for this. Something I think alot of people don't
realize that in order to be ready to scale, you have to do this.

If you use JavaBeans at the session scope level, you may be used to doing
something like this in say, a servlet:

MyBean myBean = (MyBean) session.getAttribute("MyBean");

myBean.setFirstName("SomeName");
myBean.setLastName("AnotherName");

RequestDispatcher rd =
request.getRequestDispatcher("/somepage.jsp").forward( request,response );

-

somepage.jsp:




  
Demonstation
  
  
Welcome <%= MyBean.getFirstName() %> <%= MyBean.getLastName() %>
  



This works just fine. You set the bean first and last name, forwarded to a
JSP page and can display it. The problem is..since you are setting object
references (and even values) on a HttpSession object, these changes are NOT
reflected on another server in a cluster unless you ALWAYS reset the object
back into the session. So, every time you get a bean out, you would have to
add this at the end of any changes you make:

session.setAttribute("MyBean", myBean);

>From what I have read, the only way a server (that supports session-level
failover) replicates HttpSession data is when the setAttribute() or
putValue() (deprecated Servlet 2.1 call) is called upon! If you just change
various references of objects in the HttpSession, this data will never get
copied over to another server.

Now, my point in all this is that I am wondering if anyone working with say
WebLogic, WebSphere, and so on has had to program in this manner for session
replication, or if those servers just do it for you? If they do..how?
Because the only other way I can think of is not exactly accurate: after a
set interval, copy the HttpSession to any other server in the cluster! This
would suck though..because if that set interval was every 1 second, it would
seriously degrade your system. If it was every say 10 to 15 seconds, a few
things could change in that time in one session..and if the server crapped
out, the users session on another server would not be accurate. But on the
other hand, if the session is replicated every time any one user stores an
object in the session, it is possible that 100 users do this every second
(on a high-traffic site) and thus replication might be evern WORSE on
performance at this pace, than just doing it every 1 second. Ofcourse..the
last part of this...it would be worse in this case only if the entire
HttpSession was replicated. If it was on a per object per user type of
replication, then it would be much more effecient.

So..which is it? Do servlet containers only replicate session data when code
sets the object back into the HttpSession (which makes sense if it can do
"smart" object replication and not serialize the entire HttpSession every
time)? Do the containers serialize the entire HttpSession every time? What
happens if you have 500MB of HttpSession objects in memory? Does it really
try to send 500MB every time the setAttribute() is called?

Love to hear some answers on this topic.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP session recognized in Netscape not in IE.

2001-08-20 Thread Shawn Zhu

In JSP, you don't have to create the session
as in
<%
HttpSession vSession = request.getSession(true);
%>

It's there for your use already, the name is *session*.
And are you still using JSP 1.0?  The getValue and putValue
methods for HttpSession are deprecated, use getAttribute and
setAttribute

-Original Message-
From: Dasti, Hassan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 1:19 PM
To: [EMAIL PROTECTED]
Subject: JSP session recognized in Netscape not in IE.
Sensitivity: Personal


Hi everyone,

I have a small JSP application which is password protected.  After
Authentication, I am saving the userID and Password in JSP Session.  Then
any proceeding page, I check to see if the session is alive or not.
It works perfect with Netscape but doesn't work in IE.   Any help will be
appreciated.

Thanks
Hassan Dasti

Sample Code Below:
In "validate.jsp" Page
<%@ page import="java.sql.*, java.util.*,  cdis.beans.*, lib.beans.*"  %>
<%@ page errorPage = "errorPage.jsp" %>
<%
HttpSession vSession = request.getSession(true);
%>


<%!
int flag = 0;
String dbId   = "";
String dbPass = "";
String dbRole = "";
String dbDist = "";
String errmesg= "";
cdisValidateBean cdis = new cdisValidateBean();
Vector vec = new Vector();
%>
<%
String  userPass= request.getParameter("password");
String  userId  = request.getParameter("ID");
   try{
vec = cdis.getAllUserLogin();
Enumeration rs = vec.elements();
flag = 0;
while(rs.hasMoreElements() && (flag==0) )
{
dbId= rs.nextElement().toString();
dbPass  = rs.nextElement().toString();
dbRole  = rs.nextElement().toString();
dbDist  = rs.nextElement().toString();

if(dbId.equals(userId) && dbPass.equals(userPass) )
{
flag = 1;
vSession.putValue("sesUserId", userId);
vSession.putValue("sesPasswd", userPass);
vSession.putValue("sesRole", dbRole);
vSession.putValue("sesDist", dbDist);

response.sendRedirect("cdisSearch.jsp");
}
}
if(flag == 0)
{
%>  

Please Click Here and
Try to Login again.
 <%
}
}catch(OAException ex ){
errmesg = "Error in getAllUserLogin() " + ex.getMessage();
vSession.putValue("errmsg", errmesg);
System.out.println("errmsg: "+ errmesg);
response.sendRedirect("errorInt.jsp");
}catch (Exception e){
errmesg = "Error in getAllUserLogin() " + e.getMessage();
vSession.putValue("errmsg", errmesg);
System.out.println("errmsg: "+ errmesg);
response.sendRedirect("errorInt.jsp");
}
%>

END of Validate.jsp Page

then In cdisSearch.jsp Page
<%@page import="java.sql.*, java.text.*, java.io.*, java.util.*,
cdis.beans.*, lib.beans.*" %>
<%
String dbrespass = "";
String dbresid   = "";
String dbresrole = "";
String isFalse = "false";

HttpSession vSession = request.getSession(false);

try
{
  if(!(vSession.isNew()))
  {
 dbresid = (String)vSession.getValue("sesUserId");
 dbrespass = (String)vSession.getValue("sesPasswd");
 dbresrole = (String)vSession.getValue("sesRole");

 if( dbresid.equals(isFalse))
{ response.sendRedirect("errorInt.jsp?Res=NS");}
  }
  else { response.sendRedirect("errorInt.jsp?Res=NS"); }
}
catch(Exception e)
{
   System.out.println("searchPersonal.jsp Exception");
   out.println(e);
}
..

IN netscape I am taken to cdisSearch.jsp page without any problems but In I
IE  I am redirected to my error Page called errorInt.jsp?Res=NS

Please let me know if some one has any suggestions.

Thanks again.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http:/

Re: ASP to JSP converstion

2001-08-09 Thread Shawn Zhu

on that note, I agree with Celeste, that any decent c/c++ coder
will have no problem with the whole Java/Jsp/Servlet stuff.  ASP
can be equally good, however, I prefer coding in JSP/Java.

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:12 AM
To: [EMAIL PROTECTED]
Subject: Re: ASP to JSP converstion


Kenneth,

I have worked on both the MS side of the shop (VB VC++ COM and
ASP) and the
Java side of the shop (Java, JSP, RMI).  On of the major
difference between
ASP and JSP is that ASP is interpreted, where as JSP is
compiled by your JSP
server into a servlet the first time you "hit" the JSP file during the
development phase.  As a result, errors can be thrown from your  JSP
complier during run time to your browser, and these error can
throw you if
you don't understand that JSP's are complied, not interpreted.

Secondly, using Java beans vs COM objects requires you to understand the
concepts of polymorphism, inheritance, and encapsulation VERY
well.  COM and
DCOM are MS ways to "implementing" a "kinda sorta" Object
Oriented Design,
and as such, I had a hard time "bending" my mind away from the
true concept
of OO Design that I had learned as a hard core C++ programmer.
If you do
NOT have a background in C++, only in VB, you will find developing Java
class Beans very difficult, as VB does NOT hold true to OO
concepts.  You
can purchase IDE's for Java that may help you, but be VERY
careful that you
do NOT compile in those IDE's using the IDE's internal library.
 You want to
use only Sun's library to compile with, or you will find your bean code
suddenly NOT working when you port it over from your
development environment
to your server for testing.

Last, you will need to learn new techniques for debugging your
JSP pages.
You can debug your JSP's in many ways depending on the JSP
server you are
using.  The most common way is the old DOS way of debugging
code (prior to
the IDE day's).  Which is to put writeln statements in your code, and to
open up your err.log or output.log file and determine at which
line in your
JSP file the complier threw an error, or your logic "failed".  There are
some IDE's for JSP, JRUN Studio being one of my favorites, that
do have a
built in debugger for JSP's, but even then, it is very limited.  I still
often have to rely on the old fashioned way of debugging code
that I learned
in the DOS days.

Hang in there, the transition (should you survive this
mission), will make
you very marketable.  I suspect as the .NET platform does emerge, and
companies find out that they will have to completely retrain
staff to use
the .NET platform, plus the added expense that all the ASP and VB code
developed under 6.0 will NOT port to the .NET platform (ie will
need to be
rewritten), more of these companies will move over to JSP.  I'm seeing a
number of higher level IT executives in the Dallas area that have been
tasked with investigating the cost of porting their internal MS products
over to Java/JSP (where applicable) and to provide reports to
their senior
executives by 4th quarter in regards to cost, manpower hours, staffing,
retraining costs, ect.  Perhaps your company is one of them
that has decided
to go ahead and make the switch.

Good luck

Celeste


-Original Message-
From: Jon Garry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:52 AM
To: [EMAIL PROTECTED]
Subject: Re: ASP to JSP converstion


I am in a similar situation where I am moving from a COM/ASP
scenario over
to a Bean/JSP environment.

>From my experiences so far, I'd say that a tool to convert from
ASP over to
JSP isn't going to exist and I'd not put a lot of faith in the
output that
any tool would output, and there could be other problems in actually
ammending or reading the code at a later date.

Realistically, you are going to have to learn JSP and I don't
think the jump
is that great really. If you are sticking with JUST JSP then
the conversion
is fairly straightforward. Using Beans etc makes it more
challenging though.

If I assume your using a fair bit of DB work, you could try using IBM's
Websphere Studio as that can do some DB work as a wizard.

If you have a look at the Wrox book Professional JSP (2nd
Edition) there is
an appendix for crossing over from ASP to JSP and is well worth reading.

I am no expert (yet :) ), but these are my experiences.

Jon

-Original Message-
From: Parker, Kenneth [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2001 13:23
To: [EMAIL PROTECTED]
Subject: Re: ASP to JSP converstion


Well, I'd prefer to stay with ASP, but my project is moving
over to JSP. If
I can't figure out how to re-write the app in JSP, I'm may be history.
That's why I'm hoping I can do a quicky conversion for something and I'm
looking for some kind of conversion tool. I know that finding a
magic tool
is not a likely scenerio, but I'm going to try.

-Original Message-
From: lee hwaying [mailto:[EMAIL PROTECTED]]
Sent: Thursday

Re: ASP to JSP converstion

2001-08-09 Thread Shawn Zhu

An example I found
in a jsp page:
<%@ page contentType="application/vnd.ms-excel" %>
<%-- Note that there are tabs, not spaces, between columns. --%>
19971998199920002001 (Anticipated)
12.313.414.515.616.7

-Original Message-
From: lee hwaying [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: ASP to JSP converstion


any one has any idea how to launch excel from jsp or servelet
without using
linar, which cost money???

>From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: ASP to JSP converstion
>Date: Thu, 9 Aug 2001 10:11:53 -0500
>
>Kenneth,
>
>I have worked on both the MS side of the shop (VB VC++ COM and
ASP) and the
>Java side of the shop (Java, JSP, RMI).  On of the major
difference between
>ASP and JSP is that ASP is interpreted, where as JSP is
compiled by your
>JSP
>server into a servlet the first time you "hit" the JSP file during the
>development phase.  As a result, errors can be thrown from your  JSP
>complier during run time to your browser, and these error can
throw you if
>you don't understand that JSP's are complied, not interpreted.
>
>Secondly, using Java beans vs COM objects requires you to
understand the
>concepts of polymorphism, inheritance, and encapsulation VERY
well.  COM
>and
>DCOM are MS ways to "implementing" a "kinda sorta" Object
Oriented Design,
>and as such, I had a hard time "bending" my mind away from the
true concept
>of OO Design that I had learned as a hard core C++ programmer.
 If you do
>NOT have a background in C++, only in VB, you will find developing Java
>class Beans very difficult, as VB does NOT hold true to OO
concepts.  You
>can purchase IDE's for Java that may help you, but be VERY
careful that you
>do NOT compile in those IDE's using the IDE's internal
library.  You want
>to
>use only Sun's library to compile with, or you will find your bean code
>suddenly NOT working when you port it over from your development
>environment
>to your server for testing.
>
>Last, you will need to learn new techniques for debugging your
JSP pages.
>You can debug your JSP's in many ways depending on the JSP
server you are
>using.  The most common way is the old DOS way of debugging
code (prior to
>the IDE day's).  Which is to put writeln statements in your
code, and to
>open up your err.log or output.log file and determine at which
line in your
>JSP file the complier threw an error, or your logic "failed".
There are
>some IDE's for JSP, JRUN Studio being one of my favorites,
that do have a
>built in debugger for JSP's, but even then, it is very
limited.  I still
>often have to rely on the old fashioned way of debugging code that I
>learned
>in the DOS days.
>
>Hang in there, the transition (should you survive this
mission), will make
>you very marketable.  I suspect as the .NET platform does emerge, and
>companies find out that they will have to completely retrain
staff to use
>the .NET platform, plus the added expense that all the ASP and VB code
>developed under 6.0 will NOT port to the .NET platform (ie
will need to be
>rewritten), more of these companies will move over to JSP.
I'm seeing a
>number of higher level IT executives in the Dallas area that have been
>tasked with investigating the cost of porting their internal
MS products
>over to Java/JSP (where applicable) and to provide reports to
their senior
>executives by 4th quarter in regards to cost, manpower hours, staffing,
>retraining costs, ect.  Perhaps your company is one of them that has
>decided
>to go ahead and make the switch.
>
>Good luck
>
>Celeste
>
>
>-Original Message-
>From: Jon Garry [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, August 09, 2001 8:52 AM
>To: [EMAIL PROTECTED]
>Subject: Re: ASP to JSP converstion
>
>
>I am in a similar situation where I am moving from a COM/ASP
scenario over
>to a Bean/JSP environment.
>
>From my experiences so far, I'd say that a tool to convert
from ASP over to
>JSP isn't going to exist and I'd not put a lot of faith in the
output that
>any tool would output, and there could be other problems in actually
>ammending or reading the code at a later date.
>
>Realistically, you are going to have to learn JSP and I don't think the
>jump
>is that great really. If you are sticking with JUST JSP then
the conversion
>is fairly straightforward. Using Beans etc makes it more challenging
>though.
>
>If I assume your using a fair bit of DB work, you could try using IBM's
>Websphere Studio as that can do some DB work as a wizard.
>
>If you have a look at the Wrox book Professional JSP (2nd
Edition) there is
>an appendix for crossing over from ASP to JSP and is well
worth reading.
>
>I am no expert (yet :) ), but these are my experiences.
>
>Jon
>
>-Original Message-
>From: Parker, Kenneth [mailto:[EMAIL PROTECTED]]
>Sent: 09 August 2001 13:23
>To: [

Re: Working with multiple WAR files in a single container?

2001-08-06 Thread Shawn Zhu



have 
you tried simply:
  
request.getRequestDispatcher("/index.jsp").forward(reuqest,response);
 
I am assuming you 
are not doing 
outside_server->forwardto->inside_server.

  -Original Message-From: Duffey, Kevin 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 12:19 
  PMTo: [EMAIL PROTECTED]Subject: Working with 
  multiple WAR files in a single container?
  Hi 
  all,
   
  Deploying 3 web-apps in one container. Outside, 
  Inside and Admin. Outside is mostly static, with a login section. The login 
  section takes the user to the Inside app. This all works. Problem occurs when 
  I try to get a user to forward to a JSP page in the outside application. Using 
  my MVC framework, I get a RequestDispatcher for the forwarding URL which is a 
  "relative" URL to the web-app its in. I figured out by using 
  SerlvetContext.getContext(url) to get the ServletContext of any web-app 
  running, but using that ServletContext's RequestDispatcher doesn't seem to 
  allow me to forward to a JSP page in that context. For 
  example:
   
   
   
  / = 
  outside web app
  /inside = inside web-app
  /admin = admin web-app
   
   
  Lets 
  say we are in the ControllerServlet of the /inside 
web-app:
   
  request.getContextPath()   = 
  /inside
   
  I 
  want to forward TO the outside web-app index.jsp page. I have /index.jsp, 
  /inside/index.jsp, and /admin/index.jsp. I do the following bit of code to 
  forward from within the /inside web-app context to the / outside index.jsp 
  page:
   
  ServletContext sc = 
  getServletContext().getContext("/index.jsp");
   
  This 
  correctly gives me the / context, as I tested this by having the /index.jsp 
  page set an attribute, and in the ControllerServlet I can successfully get 
  that attribute.
   
  Now, 
  this call always results in a 404 error:
   
  sc.getRequestDispatcher("/index.jsp").forward(reuqest,response);
   
   
  Ideally, since the "/index.jsp" indicates its in the 
  / (root or outside) context, it should forward to the index.jsp page in this 
  context. On the other hand, because I already have a ServletContext of the 
  outside app, perhaps just "index.jsp" is used. I tried this and still get 404 
  error.
   
  So, 
  any ideas why, or how, to forward from a servlet running in one web-app, to a 
  servlet/jsp page in another web-app? I know according to the spec you can't 
  pass data among web-apps (other than through JNDI), but I sure would like to 
  separate our outside, inside and admin sites into their own WAR files, but 
  still be able to move from one web-app to another. If I kept it all in a 
  single web-app, then using the paths of /admin, /inside or / would work fine. 
  So I am unclear as to why getting the ServletContext of any given web-app OR 
  just trying to forward to a path using the relative "root" path, would work. 
  The API is not exactly clear on how this works.
   
  Thanks.


Re: WebLogic

2001-07-26 Thread Shawn Zhu

Yes I'll be so kind. =)

ServletServlet

weblogic.servlet.ServletServlet


ServletServlet
/servlets/*


therefore your compiled servlet classes should be in
Web-Inf/classes/servlets/
regards, and when you figure out having weblogic pick up servlet changes
without restarting
weblogic, let me know.

-Original Message-
From: Srdjan Pantic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 9:27 AM
To: [EMAIL PROTECTED]
Subject: Re: WebLogic


> I was looking for the same thing.  Using /servlet/
> was the way I found.  However, it doesn't seem to
> pick up new changes.  You can play around with and
> see if you can get it to work.

  Can you bi so kind to give a example of configuration?
 And of course where exactly to put it. I was unable to
 configure /servlet/ usage with WebLogic.

  And, yes, it's look like that WebLogic (at least in version
 6.0 SP1, I now for sure for 5.1 also) can't pick up new
 changes in servlets.

  --Srdjan


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: WebLogic

2001-07-24 Thread Shawn Zhu

I was looking for the same thing.  Using /servlet/
was the way I found.  However, it doesn't seem to
pick up new changes.  You can play around with and
see if you can get it to work.

If it doesn't pick up new changes it's the same as
registering each servlet and restart the server.

-Original Message-
From: Srdjan Pantic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 10:56 AM
To: [EMAIL PROTECTED]
Subject: Re: WebLogic


> Most likely you have to force WebLogic to use the /servlet/
> path mapping.
> Keep in mind the /servlet/ is a security issue because any
> servlet can be
> invoked when used in this manner. In general, you should
> ALWAYS map your
> servlets via paths or extension mapping and never use the
> /servlet/ call.
> Its fine for development and testing, but ideally get away from it.

  Yes, that is fine with single servlet, I can just add to web.xml
 for eBiz application:


TestServlet

com.asucon.ebiz.test.web.TestServlet



TestServlet
test


  But if I have application with couple hundred servlets that
is not easy to
 do and its not possible for every single developer to add new sevlet to
 mapping and than to restart the web application.

  I understand security but security issue is covered in
application. You
can't
 just type in some servlets and jump inside the application.

  Therefore there must be some way to workaround.

  Thank you for helping.

  --Srdjan


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



off-topic: just a technical discussion about naming

2001-07-13 Thread Shawn Zhu

It's off-topic, but I think for programmers
this may be sort of interesting discussion.

Lets start with a few questions:
What do you think it's a good practice for
documenting your code?

What does it means to have self-documenting
code?

There are people who believes using absolutely
english like phrases for variable/function names,
even if it means it'll be really long.  I've seen
people coding with elaborously long names.  However,
I'd say they don't really get what self-documenting
code really is all about.

Self-documenting code is clean with adequate documentation,
and easy to follow.  With long names like that, it
clutters the view; it's error prone; it slows down
development process.  The same can be said to long
documentations.

so what would you prefer long names or long documentations,
or something in between?

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: How to install a service on a NT server?

2001-07-12 Thread Shawn Zhu

Actually, Sio, all you need to do is have jrun running as
a NT service.  And your application will be accessible since
it's served up by JRun.

for example, your application virtual path is /myapp.  And your
JRun server is //ServerName, then you can access your application
from the browser as http://servername/myapp

-Original Message-
From: Pantarotto, Sio [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 11:58 AM
To: [EMAIL PROTECTED]
Subject: Re: How to install a service on a NT server?


Dear Chris,

As I said in my previou email:

"I have a web application that runs blab blab bla.." and a web
application is an application.
I really din't understand why you came up with that explanation.
I don't think I asked people to help me install a JSP page as a
service, did
I???

sio

-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: How to install a service on a NT server?


You can't install a JSP as a service, since it isn't an
application, only a
fragment of an application.  You can, however, run JRun as an
NT Service,
which should allow you to get to your JSP page even when the machine is
logged out.  Just check the JRun documentation.
(*Chris*)

- Original Message -
From: "Pantarotto, Sio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 11:25 AM
Subject: Re: [JSP-INTEREST] How to install a service on a NT server?


> I have a web application that runs under JRUN ( and yes it
does have a lot
> to do with JSPs) and I also would like to learn how to install this
> application as a NT service, and once the server is started, and NT
identify
> that JRun (as a service) ios running then it would start the
application.
>
> Anybody has any clue on how to do that
>
> Thanks
>
> Siomara
>
> -Original Message-
> From: Jann VanOver [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 1:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to install a service on a NT server?
>
>
> What does this have to do with JSP?
>
> -Original Message-
> From: Tom Yang [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 09, 2001 10:24 AM
> To: [EMAIL PROTECTED]
> Subject: How to install a service on a NT server?
>
>
> Hi all:
>   I have a Java application named MyApplication. I need to
run it on a NT
> server. I can type the command:
>
> java MyApplication
>
> But I want to install it as a service so that the application will be
> started automatically each time the machine is booted up and the
application
> can survive logging off. Putting that short-cut of the command in the
> StartUp menu is not what I want because the application
window still shows
> up in the task bar and will be killed if the current user logs off.
> Installing it as a service will meet all my requirements. But
I don't know
> how to do that. Can anybody please help? I've tried the
following methods
> but didn't succeed:
>
> 1) I found a utility called SRVANY.EXE which, according to the
instruction,
> will launch the application as a service. But after I have copied the
> SRVANY.EXE to my NT box, I can't run it because I got an
"Internal error"
> message when I run it.
>
> 2) I used the INSTSRV utility to install a command file (a batch file
> containing the command "java MyApplication") to start my java
application.
> It seems the batch file can't be used. I probably should have
used a .exe
> file. But I don't have a utility to convert my batch file to
an .exe file.
I
> found one utility named batch2exe, but that only converts the
batch file
to
> a .com file and that .com file doesn't work on the NT (it
only works on
> Window 98). Besides, I don't even know whether the .exe file
will solve
the
> problem.
>
> I've asked several people around but to my disappointment,
there's no such
> expertise here. I've run out of resource. I know this
question may be off
> the topic to this news group, but I really don't know where
else to seek
for
> help. Hopefully, someone who has the expertise can drop me a
line and help
> me. Thank you all very much in advance!
>
> Tom
>
>
>
>

_
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
>
>

===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAI

Re: How to get rid of objects ( beans) when the user abandons the site

2001-06-13 Thread Shawn Zhu

>
> .. but if you open a new browser window with crtl_n does the
> session extend
> to that window?

yep.

>
> ..if you open a new window other than as above what happens.

you start a new session.

>
> -Original Message-
> From: Shawn Zhu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 4:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get rid of objects ( beans) when the user abandons
> the site
>
>
> If the user leaves your site, and before the session times
> out he/she comes
> back, the session object (your worker bean) will still be there.
>
> So yes, the worker bean will be waiting for the session to expire.
>
> > -Original Message-
> > From: Lenin Lopez [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 13, 2001 4:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to get rid of objects ( beans) when the
> user abandons
> > the sit e
> >
> >
> > Thanks guys,
> > let me see if I understand correctly,
> > That means if I create objects in a servlet and put them in a
> > session using
> > the session.setAttribute,  and if I use those objects in a
> > jsp file. what
> > you are saying is that I should not worry about unbinding the
> > objects from
> > the session???
> > In other words I do not need to use the session.invallidate()
> > to unbind the
> > objects??
> > Let me give you a scenario of my problem
> >
> > let say my JSP uses a worker bean (whose reference is store
> > in a session )
> > to display a list of available accounts from my DB, now that
> > same page give
> > the user the option to delete one of the available accounts
> > from the list, (
> > at this moment I still have a reference to my worker bean in
> > a session )
> > The user can continue with the deletion of one of the
> > accounts on the list
> > or the user can JUST LEAVE the site, if the user  decides to
> > do so, at this
> > point,   WHAT happens to my worker bean ( in the session )
> > remember I did not invalidated it because I was going to use
> > it in a future
> > JSP ( assuming that the user was goint to continue with the
> process of
> > deletion)
> > Since the user as I said JUST LEAVES the site.  How do I
> > reclaim the memory
> > in use by the session.
> > Do I just wait until it expires???
> > What if I have more than one object in the same situation??
> > Thanks a lot for your input
> >
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification
> > and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Chandra Patni
> > Sent: Wednesday, June 13, 2001 1:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to get rid of objects ( beans) when the
> user abandons
> > the sit e
> >
> >
> > You can't get rid of objects as such because that's what GC
> > is doing for
> > you. All the object u are creating in your JSP will follow
> > the same GC rule
> > as other object created in any method. For beans you can
> > specify the scope
> > mechanism to control how long you want to keep the reference handle.
> > I will NEVER suggest you finalize() method to do some 'smart
> > things'. By
> > overriding finalize(), you are effectively increasing the
> > life of the object
> > as GC now has to deal with this object at least twice.
> > Regards,
> > Chandra Patni
> > Oracle Corp
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification
> > and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Lenin Lopez
> > Sent: Wednesday, June 13, 2001 12:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to get rid of objects ( beans) when the user
> abandons the
> > sit e
> >
> >
> > HI all,
> > My question is how to get rid of object ( to avoid memory
> > leaks) when the
> > user 'just' abandons the site
> > is there any way I can detect when the user leaves the page
> > so  I can triger
> > some kind of event to get rid of my objects?
> >
> > Please
> > Help
> > Thank you all
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
&

Re: How to get rid of objects ( beans) when the user abandons the site

2001-06-13 Thread Shawn Zhu

If the user leaves your site, and before the session times out he/she comes
back, the session object (your worker bean) will still be there.

So yes, the worker bean will be waiting for the session to expire.

> -Original Message-
> From: Lenin Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get rid of objects ( beans) when the user abandons
> the sit e
>
>
> Thanks guys,
> let me see if I understand correctly,
> That means if I create objects in a servlet and put them in a
> session using
> the session.setAttribute,  and if I use those objects in a
> jsp file. what
> you are saying is that I should not worry about unbinding the
> objects from
> the session???
> In other words I do not need to use the session.invallidate()
> to unbind the
> objects??
> Let me give you a scenario of my problem
>
> let say my JSP uses a worker bean (whose reference is store
> in a session )
> to display a list of available accounts from my DB, now that
> same page give
> the user the option to delete one of the available accounts
> from the list, (
> at this moment I still have a reference to my worker bean in
> a session )
> The user can continue with the deletion of one of the
> accounts on the list
> or the user can JUST LEAVE the site, if the user  decides to
> do so, at this
> point,   WHAT happens to my worker bean ( in the session )
> remember I did not invalidated it because I was going to use
> it in a future
> JSP ( assuming that the user was goint to continue with the process of
> deletion)
> Since the user as I said JUST LEAVES the site.  How do I
> reclaim the memory
> in use by the session.
> Do I just wait until it expires???
> What if I have more than one object in the same situation??
> Thanks a lot for your input
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Chandra Patni
> Sent: Wednesday, June 13, 2001 1:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get rid of objects ( beans) when the user abandons
> the sit e
>
>
> You can't get rid of objects as such because that's what GC
> is doing for
> you. All the object u are creating in your JSP will follow
> the same GC rule
> as other object created in any method. For beans you can
> specify the scope
> mechanism to control how long you want to keep the reference handle.
> I will NEVER suggest you finalize() method to do some 'smart
> things'. By
> overriding finalize(), you are effectively increasing the
> life of the object
> as GC now has to deal with this object at least twice.
> Regards,
> Chandra Patni
> Oracle Corp
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lenin Lopez
> Sent: Wednesday, June 13, 2001 12:51 PM
> To: [EMAIL PROTECTED]
> Subject: How to get rid of objects ( beans) when the user abandons the
> sit e
>
>
> HI all,
> My question is how to get rid of object ( to avoid memory
> leaks) when the
> user 'just' abandons the site
> is there any way I can detect when the user leaves the page
> so  I can triger
> some kind of event to get rid of my objects?
>
> Please
> Help
> Thank you all
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROT

Re: Basic Object Reference Question

2001-06-13 Thread Shawn Zhu

Now here's where pointers come in handy.
However, getString() returns a String object,
not a reference to the String object (from looking at
the api doc).  So in essence it's no difference assigning
it to a String object.

correct me if I am wrong.

>
> > Hi,
> >
> > I am having a basic object reference question. Consider the
> following
> > code snippet:
> >   while (rootRs.next())
> >   {
> >
> > categories.addElement(getCategory(rootRs.getString("cat_id")));
> >   }
> >
> > Another code snippet:
> >  String catID = "";
> >   while (rootRs.next())
> >   {
> >catID = rootRs.getString("cat_id");
> >categories.addElement(getCategory(catID));
> >   }
> >
> > Now my question is which one is better?  When we say
> > categories.addElement(getCategory(rootRs.getString("cat_id")));
> >
> > then we are getting a reference to the resultset string
> object or its
> > new object. If its a new String object, then the while loop will be
> > creating n no of objects throughout the loop!!!
> >
> > Awaiting your feedback.
> >
> > Thanks. in advance.
> >
> > Sushil
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp related

2001-06-12 Thread Shawn Zhu

Hi:

anybody knows this question?
j/k =)

Anyway, this what you can do: break the text with  tags.

> -Original Message-
> From: Carol Geng [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 12, 2001 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: jsp related
>
>
> Hi:
>
> anybody knows this problem?
>
> I have a jsp page which some text loaded, but for some reason,
> the text looks garbled, some text overlayed onto other text.
> I think it
> maybe the cache problem from the browser, but it turns out not even we
> clear the cache memory or put the cache size 0 KBytes.
>
> Any idea?
>
> Thanks,
>
> Carol
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: display results in many pages

2001-06-07 Thread Shawn Zhu

Yes it's very easy, tell me how you do that in ASP.
and I'll show you how to convert it.

> -Original Message-
> From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 07, 2001 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: display results in many pages
>
>
> Hi!
> I HAVE TWO PAGES, int the first one i enter an input, in the
> second one i
> intialize a bean, call amethod that gets the result !
> in the result page, i'd like to display only some of the
> result then use a
> next button that sends me to that same page and displays the
> rest of the
> results and so on!
> how can i do that ? i bet it's easy i use to do it with php
> and asp but i've
> never done it using jsp!
> Thanks
> __
> ___
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: tracking email-off topic

2001-06-06 Thread Shawn Zhu

I read there's a code snippet or macro you can embed in your
email message, and send back vital info to the sender.  I've
never seen it though.

> -Original Message-
> From: Thakkar yahoo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 11:04 AM
> To: [EMAIL PROTECTED]
> Subject: tracking email-off topic
>
>
> hello friends,
>
> I would like to send mails to some of the clients and would
> like to keep a
> the track of this mail forwarded on the net.
>
> that is i would like to know the email address of the person
> to whom this
> mail is forwarded.
>
> Is is possible to receive back a bcc of mail forwarded by my
> client without
> he himself knowing about it.
>
> Thanks in advance
>
> Thakkar
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: submit from more than a page ?

2001-06-06 Thread Shawn Zhu

easy, treat each next as a submit.
collect each page's infor and store them in a bean.
pass it down the pages and do a final process on the bean

> -Original Message-
> From: sufi malak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 11:25 AM
> To: [EMAIL PROTECTED]
> Subject: submit from more than a page ?
>
>
> I have an application that has lot of fields, I want the user
> fill up the
> fields in the first page and then click in the "NEXT" link and do the
> samething until reaching the last page that has "SUBMIT"
> button, how to
> collect data in the action jsp file from all those pages ?
>
> Thanks lot
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: off topic (javascript popup window selection) ???

2001-06-01 Thread Shawn Zhu

Sufi, I assume you know how to create the popup window
and lay out the selection boxes.

So what you do is after clicking the select button, you can
either:
1. use Javascript to populate fields in the parent window
something like, window.opener.document.[whatever].value
or
2. pass the check boxes values to a servlet, and process/
manipulate those values then forward back to the parent
window.

> -Original Message-
> From: sufi malak [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 01, 2001 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: off topic (javascript popup window selection) ???
>
>
> Hi, I was looking for this in some javascripts sites , but
> could not find
> it, please if you know a web site that has done it , show me
> the link, or if
> you have done it, I will appreciate your help.
>
> from a parent window the user has two radi buttons YES and NO
> when the user click in one of them, a pop up window show up
> with several
> checked box, from that pop up window the user can check one
> or more checked
> boxes, then click select button, the popup window disappears
> and in the
> parent window under the radio button selected the user can
> see the value
> selected.
>
> Thanks lot
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: how to get notified of session timeout

2001-05-31 Thread Shawn Zhu

LOL, didn't I send you an response?  And since the mail-list is
all wacked, like it kept sending all emails out; other's reply
may have been delayed.  Besides, aren't you glad that you've
figure out the solution?  You've just stepped up a level in
your JSP/Java programming.

> -Original Message-
> From: Ivan Kougaenko [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 31, 2001 4:59 PM
> To: [EMAIL PROTECTED]
> Subject: how to get notified of session timeout
>
>
> Alright, I figured out a way of detecting session timeout and
> performing
> cleanup after its death.
>
> example:
> 1. user logs in (creates a session)
> 2. user modifies some tables in the DB
> 3. user closes the browser, leaves it unattended, logs out,
> disconnects from
> the internet, etc.. (session timesout)
> 4. after session's timeout, it resets all of the previously
> modified tables.
>
> This can be done using HttpSessionBindingEvent and
> HttpSessionBindingListener.
> basically, have a "clean-up" object implement
> HttpSessionBindingListener,
> and then during the creation of the session, just add this
> object to the
> session " session.setAttribute("OBJECT",new CleanUp()) "
> After the session expires/timesout/invalidates, it will send
> out an event to
> your Cleanup object where you can do all sorts of neat things.
>
> _I
>
> p.s.
> I noticed the following trend on this mailing list... If you want your
> question to be answered ASAP, you better be asking about
> something that's
> totally not related to JSP... even though you will get a
> couple of lines of
> "this is a JSP list", chances are that you'll at least get an answer
> (usually more than 1).. Next time if I have any kind of
> questions regarding
> JSP, I'll be visiting mySQL, Jakarta, Apache, Swing/AWT
> lists.. if those
> groups exhibit similar trends, I'll be getting answers in no time :)
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jrun:sendmail

2001-05-31 Thread Shawn Zhu

If using CDONTS worked for you on the same machine, that means
you have a smtp server.  now you just need to figure out what to put
in props.put("mail.smtp.host", "smtp.jspinsider.com");

You need to substitute "mail.smtp.host" to the hostname of your smtp
server.

> -Original Message-
> From: Supreme Being [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 31, 2001 8:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jrun:sendmail
>
>
> Jim,
>
> I'm not having any email server installed on my system. In
> fact i use Internet Mail (Yahoo, Hoboe) etc. Apart from JSP,
> i use PHP and ASP for my Server Programming. PHP has the
> in-built mail() function and ASP uses either the CDONTS
> component or JMail. So i never faced any such problem with
> them. However, now with JSP, i'm having these problems sending mail.
>
> >JavaMail and JAF works fine.  How do you have it installed.  In which
> >directories did you put all the .jar files.
>
> I've placed all these files in D:\Allaire\JRun\servers\lib
> In fact, they are also in D:\Allaire\JRun\lib
> cause on person told me they should go there.
>
> >What java container are you using?
> This, i don't understant.
>
> >When you say it doesn't work, what do you mean?
> Well this the error that i get when i click my "Send" button :
>
> javax.mail.SendFailedException: Sending failed; nested
> exception is: javax.mail.SendFailedException: Invalid
> Addresses; nested exception is:
> javax.mail.SendFailedException: 553 sorry, that domain isn't
> in my list of allowed rcpthosts (#5.7.1)
>
> And if you wanna see ... this is the code that i'm using :
>
> <%@ page
>   import=" javax.mail.*, javax.mail.internet.*,
> javax.activation.*,java.util.*"
>   %>
> <%
>
>  try{
>Properties props = new Properties();
>Session sendMailSession;
>Store store;
>Transport transport;
>
>   props.put("mail.smtp.host", "smtp.jspinsider.com");
>   sendMailSession = Session.getInstance(props, null);
>   Message newMessage = new MimeMessage(sendMailSession);
>   newMessage.setFrom(new
> InternetAddress(request.getParameter("from")));
>   newMessage.setRecipient(Message.RecipientType.TO, new
> InternetAddress(request.getParameter("to")));
>   newMessage.setSubject(request.getParameter("subject"));
>   newMessage.setSentDate(new Date());
>   newMessage.setText(request.getParameter("text"));
>
>   transport = sendMailSession.getTransport("smtp");
>   transport.send(newMessage);
>%>
> Your mail has been sent.
> <%
>   }
>  catch(MessagingException m)
>   {
>   out.println(m.toString());
>   }
> %>
>
> Anything else you need to know?
>
> Thanks,
> SupremeBeing
>
>
>
> **
> From my right-eye i create all for myself, from the left-eye
> i accept all that there is otherwise. It is nothing more than
> what i deserve, for i am the Supreme Being
> **
>
> 
> Are you a Hoboe?  Hobnob at http://www.hoboe.com
> Click here -> http://www.hoboe.com Global Mail Access
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: jsp mysql error ?

2001-05-31 Thread Shawn Zhu

lol, seen way too many of that sort.

> -Original Message-
> From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 31, 2001 7:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp mysql error ?
>
>
> Maybe you should try the obvious.
>
> Oh wait, you probably can't tell what that means.
>
> "Invalid authorization" means you aren't properly
> authenticated via the JDBC
> url. Use a real user/correct password. Try, try, try, try
> reading your own
> error messages before using JSP-I as your personal "help me
> debug my simple
> code!" forum. Thanks.
>
> >From: sufi malak <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> >reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: jsp mysql error ?
> >Date: Thu, 31 May 2001 13:49:35 -
> >
> >Hi, I am trying to connect to a mysql database, but I got
> this error :
> >Error: 500
> >Location: /Career/test55.jsp
> >Internal Servlet Error:
> >
> >javax.servlet.ServletException: java.sql.SQLException: Invalid
> >authorization
> >specification: Access denied for user: 'wapdemo@localhost'
> (Using password:
> >YES)
> >
> >could you please help.
> >Thanks
> >_
> >Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >=
> ==
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >http://java.sun.com/products/jsp/faq.html
> >http://www.esperanto.org.nz/jsp/jspfaq.html
> >http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Storing encryption key in web.xml

2001-05-31 Thread Shawn Zhu

Other place can be in the DB

> -Original Message-
> From: Mohammed Ali [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 31, 2001 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: Storing encryption key in web.xml
>
>
> Hello,
>
> I am writing a web application using the MVC in jsp/servlet.
> The data in the
> table is encrypted. Is it safe to store the encryption key in my
> application's web.xml file so that it can be retrieved by the
> servlet ? If
> it's not, where else ? I am using Tomcat as the container.
>
> thanks in advance for your advice.
> Ali.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Excel and Servlets

2001-05-30 Thread Shawn Zhu

write the exact syntax in a JSP first.  Then I'll
tell you.

> -Original Message-
> From: Lorena Carlo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 30, 2001 1:24 AM
> To: [EMAIL PROTECTED]
> Subject: Excel and Servlets
>
>
> Hello all,
>
> Can yot tell me how can I construct an excel sheet with a servlet.  I
> already know how to do it with jsp.  I need to construct it
> with servlets,
> please help me if you know.
>
> Thanks in advance
>
> Lorena Carlo
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP to javascript

2001-05-30 Thread Shawn Zhu

alert('<%=bookname%>');
play around with it.

> -Original Message-
> From: Warty, Koustubh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 30, 2001 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: JSP to javascript
>
>
>  Hello all,
>   I am trying to show an alert box like ' This book already
> exists in the Cart ' . What I really want to do is to display
> the name of the book like - ' This book "ABC" already exists
> in the Cart ' . So I understand that I need to pass ABC from
> JSP to javascript ! But I am not able to do it ?? Please help.
>
>  thanks,
>  - Koustubh
>
>
>
>
>
> >=
> ==
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> ---
> Gopi Mandava(703) 267-1735 x307
> CoManage Inc.
>
> "The world is more apt to be destroyed by bad politicians
> than bad physics"
> - A.Einstein
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: what's gnu/regexp/ ??

2001-05-30 Thread Shawn Zhu

ditto, also the impression of being lazy, has no
analytical skill, not self-motivated, lack of investigative
skill, etc.

=)

> -Original Message-
> From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 11:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: what's gnu/regexp/ ??
>
>
> sufi malak wrote:
> >
> > Hi, could you please tell me what is the package gnu/regexp/
> > and where to find a the jar file.
> >
>
>  Go to:
>
>  http://www.google.com>
>
>  and enter "gnu regexp" into the text box, and then
> hit the "Google Search" button. Google is what's called
> a "web search engine". Google is currently the best search
> engine for programming-related topics.
>
>  It's generally a good idea to do a quick web search
> before posting a question, just in case it turns out
> to be a question you could have easily answered on your
> own. Not making at least some small token effort to
> answer the question yourself is a quick way to give
> people the (hopefully mistaken) impression that you
> aren't very bright.
>
>
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: when to query vs when to use a 'model' bean?

2001-05-23 Thread Shawn Zhu

Set a limit on the number of records you are willing to keep in memory.
once that limit hits, switch to querying the DB.

Choose the right limit will help your sites performance.

> -Original Message-
> From: Rich Diaz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 2:16 PM
> To: [EMAIL PROTECTED]
> Subject: when to query vs when to use a 'model' bean?
>
>
> I'm kinda new to JSP and I'm making an application that will
> access a database
> to render most of my jps pages.
>
> Using MVC of course:
>
> Models: (beans of retrieved data)
> Views: (jsp)
> Controllers: (servlet to get data)
>
> I'm wondering where is the line when I should just re-query
> the database vs
> storing a database query in a bean? (beans taking up server memory).
>
> I don't want to keep querying the database vs storing a
> common query result in
> a bean for all my users (request) to use.
>
> thanks, and hope this made sense ;)
>
> Rich
>
>
> 
> Get free email and a permanent address at
> http://www.netaddress.com/?N=1
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: The End of the World is Coming

2001-05-23 Thread Shawn Zhu

ummm...no Thanks in advance?
anyway, maybe you should change it back to "hello.NameHandler" not
"hello.nameHandler"?

besides did you change it at one place or in all occurrances?

> -Original Message-
> From: [Qari Qasim] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 9:30 AM
> To: [EMAIL PROTECTED]
> Subject: The End of the World is Coming
>
>
> I downloaded an example from the following:
> http://java.sun.com/products/jsp/html/jsptut.html
> and was running the jsp file, which worked Ok. The jsp file had the
> following import statement:
>
> <%@ page import="hello.NameHandler" %>
>
> 
> 
>
> I thought lets change "hello.NameHandler" to "hello.*". I
> tried to run the
> same jsp file, but this time it did not work. So I changed
> the "hello.*"
> back to "hello.nameHandler" and ever since I have been trying
> to run this
> example, but only God knows why its not working anymore. So u
> can understand
> why the End of the World is Coming.
>
> No, honestly, if u know what's happening , then please do let me know.
>
> Regards
>  -Original Message-
> From:   Mayuresh Kadu [mailto:[EMAIL PROTECTED]]
> Sent:   Wednesday, May 23, 2001 11:26 AM
> To: [EMAIL PROTECTED]
> Subject:
>
> well ... one way would be to check the REFERRER Header ... it
> will give u
> the filename from which the JSP was called before checking
> the QueryString
> Params.
>
> Alternatively .. u could pass a additional param that would
> indicate the
> source using
>
> 
>
> in ur form. although that would increase the variable numbers by one
>
>
>
> Mayuresh
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nicholas Larsson
> Sent: Wednesday, May 23, 2001 3:21 PM
> To: [EMAIL PROTECTED]
> Subject:
>
>
> Hi!
>
> I use a "search" jsp which is accessed from two different jsp's.
> One of the jsp's only needs to send in 1 parameter and the
> other sends in 3
> parameters.
> if I use request.getParameter("aaa") I get a nullpointer when
> parameters
> aren't found.
>
> Is there a work around except from including them in the URL
> (looks bad)?
>
> /Nico
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem in jdbc-odbc driver

2001-05-23 Thread Shawn Zhu

but I thought he's using the latest spec. I mean doesn't
java 2.0 (Or whatever version it should be.)
jdbcodbc drivers support that feature?

> -Original Message-
> From: Jann VanOver [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: problem in jdbc-odbc driver
>
>
> No, no, no.  It just means that the
> sun.jdbc.odbc.JdbcOdbcDriver doesn't
> support it.  It tells you NOTHING about the capabilites if
> the SQL Server.
>
> -Original Message-
> From: Shawn Zhu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 12:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: problem in jdbc-odbc driver
>
>
> hmmm...So SQL server doesn't support scrollable, updatable
> feature eh?  I know that MS Access doesn't definitely don't
> support that.  Didn't know that SQL server is not up to date
> for it.  Good to know, thanks.
>
> > -Original Message-
> > From: bipin sabhani [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 23, 2001 12:42 AM
> > To: [EMAIL PROTECTED]
> > Subject: problem in jdbc-odbc driver
> >
> >
> > Hi!
> >
> > I m creating a recordset which has properties like
> > scrollable,updatable.
> > so i write this code.
> >
> > i m using sql server as a database
> >
> > Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> > Connection con =
> > DriverManager.getConnection("jdbc:odbc:dsn1","sa","");
> > Statement stmt =
> > con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSe
> > t.CONCUR_UPDATABLE);
> > ResultSet rs = stmt.executeQuery("select * from Lees_jobs");
> >
> >
> > But it gives me error like
> > [Microsoft][ODBC SQL server Driver]Optional feature not implemented.
> >
> > give me some suggestions.
> >
> > can i download new driver? if yes then which site and which driver?
> >
> > Thanks,
> >
> > Bipin
> > __
> > ___
> > Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem in jdbc-odbc driver

2001-05-23 Thread Shawn Zhu

hmmm...So SQL server doesn't support scrollable, updatable
feature eh?  I know that MS Access doesn't definitely don't
support that.  Didn't know that SQL server is not up to date
for it.  Good to know, thanks.

> -Original Message-
> From: bipin sabhani [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 12:42 AM
> To: [EMAIL PROTECTED]
> Subject: problem in jdbc-odbc driver
>
>
> Hi!
>
> I m creating a recordset which has properties like
> scrollable,updatable.
> so i write this code.
>
> i m using sql server as a database
>
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> Connection con =
> DriverManager.getConnection("jdbc:odbc:dsn1","sa","");
> Statement stmt =
> con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSe
> t.CONCUR_UPDATABLE);
> ResultSet rs = stmt.executeQuery("select * from Lees_jobs");
>
>
> But it gives me error like
> [Microsoft][ODBC SQL server Driver]Optional feature not implemented.
>
> give me some suggestions.
>
> can i download new driver? if yes then which site and which driver?
>
> Thanks,
>
> Bipin
> __
> ___
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-JSP Invocation

2001-05-23 Thread Shawn Zhu

yes you can pass an object between jsps.

<% request.setAttribute("empHT", empHT); %>
notice no quote for the second parameter.  "empHT" is a
String whereas empHT is the real object you want.

> -Original Message-
> From: Randy San Miguel [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 12:43 AM
> To: [EMAIL PROTECTED]
> Subject: JSP-JSP Invocation
>
>
> Hi,
> I am relatively new to JSP and I would like to ask if it
> is possible
> to pass an object between JSP's?
> Suppossed I have EmpResult.JSP that passes a HashTable value to
> EmpResultNext.JSP. How should I code it?
>
> fragment of my scriplet code in  EmpResult.JSP is:
>
> ...
>   <%  request.setAttribute("empHT", "empHT"); %>
> ...
>
>
>
> while on the recieving end, EmpResultNext.JSP
>
> ...
>   <%@ page language="java" %>
>   <%@ page import = "EmployerInfo,java.util.*,java.sql.*,java.io.*" %>
>   <% Hashtable empHT3 = (Hashtable)request.getAttribute("empHT"); %>
>   <%= empHT.size() %>
> ...
>
>
> thanks in advance.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: extra urgent problem

2001-05-23 Thread Shawn Zhu

lol, this interest list is the most fun.
Not only you get tech answers, you get dramas. =)
I think it's pretty fun here just as long
as none of you go off and gun people. hehe.

It's very comical in a way, don't you think?

> -Original Message-
> From: sandarbh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: Re: extra urgent problem
>
>
> I would have done the same as u  joseph, read on my own, but
> i was in a
> hurry and wanted quick answers.
>
> neway thanx for your help.
>
> sandarbh
>
>
>
> - Original Message -
> From: "Joseph Ottinger" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 23, 2001 4:27 PM
> Subject: Re: extra urgent problem
>
>
> > Hmm, seems to me that you're being rude to *me*.
> >
> > Let's examine what I told him:
> >
> > > > What does this have to do with JSP? The FTP *port* is,
> as always, 21
> (if
> >
> > Line 1: "What does it have to do with JSP?" Are you saying that his
> question
> > DID have something to do with JSP, yet didn't mention a
> SINGLE tie-in?
> >
> > Line 1a: "The FTP *port* is, as always..." Hmm, this is
> easily found on
> the
> > Internet, yet I went ahead and gave him a correct answer
> (and mentioned
> that
> > some systems might not use it, although WHY they wouldn't
> use it is ...
> > obscure.)
> >
> > > > you're talking about the standard FTP port.) As far as
> sftp - don't
> know
> >
> > Line 2b: "As far as sftp - don't know..." I can't
> manufacture knowledge I
> > don't have, yet this was part of his question. I was tell him that I
> didn't
> > know, as opposed to "I just ignored part of your question."
> >
> > > > what that is, look it up yourself.
> >
> > Line 3b: "look it up yourself." Oh, wait - he could have
> done that on his
> > own, with complete results. Maybe it's an erroneous
> assumption: Hif I need
> > to use NetComponents as a project requirement, it's a safe
> bet I've GOT
> > NetComponents, and it's just as safe a bet that if I've got
> NetComponents,
> I
> > have access to NetCOmponents' documentation. Thus, looking
> it up myself
> > isn't hard and it isn't inappropriate... nor would it be
> inappropriate for
> > someone to suggest that I do so.
> >
> > ... at least, that's the way it is in MY objective world.
> >
> > >From: "Richie Bab A. Boyboy" <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: extra urgent problem
> > >Date: Wed, 23 May 2001 23:13:25 +0800
> > >
> > >You know what Joseph, you do not need to be rude to this
> guy. He just
> wants
> > >to
> > >know if anyone of us knows the answer to his problem. OK.
> Now if you do
> not
> > >know
> > >the problem you can either advice the person where to seek
> help. This is
> a
> > >discussion group that will help people solve their problems, not to
> create
> > >one.
> > >
> > >
> > >
> > >Joseph Ottinger wrote:
> > >
> > > > What does this have to do with JSP? The FTP *port* is,
> as always, 21
> (if
> > > > you're talking about the standard FTP port.) As far as
> sftp - don't
> know
> > > > what that is, look it up yourself.
> > > >
> > > > >From: sandarbh <[EMAIL PROTECTED]>
> > > > >Reply-To: A mailing list about Java Server Pages
> specification and
> > > > > reference <[EMAIL PROTECTED]>
> > > > >To: [EMAIL PROTECTED]
> > > > >Subject: extra urgent problem
> > > > >Date: Wed, 23 May 2001 14:05:41 +0100
> > > > >
> > > > >Dear all,
> > > > >
> > > > >I want to send a xml file in sftp to a ftp server.
> what port i have
> to
> > > > use,
> > > > >We are using NSFTP as FTP server.
> > > > >
> > > > >sandarbh
> > > > >
> > > >
> > >
> >=
> ==
> > > > >To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> > > > >JSP-INTEREST".
> > > > >For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST
> > > > >DIGEST".
> > > > >Some relevant FAQs on JSP/Servlets can be found at:
> > > > >
> > > > >  http://java.sun.com/products/jsp/faq.html
> > > > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > >
> > > >
> _
> > > > Get your FREE download of MSN Explorer at
http://explorer.msn.com
> > >
> > >
>
>===
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jgur

Re: How to handle errors from a Java Bean

2001-05-22 Thread Shawn Zhu

Have the bean throw exception.
That way you can catch them in the JSP

> -Original Message-
> From: Lenin Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 2:14 PM
> To: [EMAIL PROTECTED]
> Subject: How to handle errors from a Java Bean
>
>
> Hi all,
>
> I have an appliation that works fine,  except that I do not
> have any arror
> handling ( other that the normal try and catch blocks)
> My question is how do you guys pass an error from a bean to the JSP.
>
> I know hoe to handle errors from a JSP but I don't quite know
> how to pass an
> error from a bean to the JSP
>
> thanks
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JavaMail with JSP

2001-05-22 Thread Shawn Zhu

lol!!! And Jim, I hear ya.  Those are the frustrations
that Mr. Joseph Ottinger face with this mailing-list constantly.

> -Original Message-
> From: Chase, Scott [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JavaMail with JSP
>
>
> Then don't answer...
> Tough day at the office Jim?
>
>
>
> -Original Message-
> From: Jim Rueschhoff [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 5:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JavaMail with JSP
>
>
> The host, port, user etc. is for the connection to the email
> server that you
> will use to deal with email.  JavaMail is a mail client set
> of methods, it
> is not a mail server.
>
> You should really at least attempt to read the documentation
> and try to
> understand what a package does before installing it.  I don't
> mind answering
> questions, even beginner questions, but I do get frustrated
> when the person
> asking has not even read the documentation of the package they just
> downloaded before asking questions.  Please read the javamail
> documentation
> FIRST and then if you don't understand something, please ask
> for help here.
> This is especially true if you feel the need to call yourself
> Supreme Being.
>
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Supreme Being
> Sent: Tuesday, May 22, 2001 1:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JSP-INTEREST] JavaMail with JSP
>
>
> How do i get this information? I just installed Jrun 3.0 on
> my win98 PC. I
> did not install or configure any smtp on my machine. I did
> download and put
> JavaMail from Sun's site.
>
> >Transport smtp = Session.getTransport("smtp");
> >smtp.connect(host, port, user, password);
>
> which port, user, password & host do i have to use here?
> because i don't
> know any other than the one that my JRun uses.
>
> SupremeBeing
>
>
>
> >
> >Justy
> >
> >- Original Message -
> >
> >> Aneesha,
> >>
> >> how can i setup my SMTP host?
> >>
> >> Cheers,
> >> SupremeBeing
> >>
> >>
> >> >Date: Mon, 21 May 2001 07:54:01 +1000
> >> >From: Aneesha <[EMAIL PROTECTED]>
> >> >SUBJECTTo: [EMAIL PROTECTED]
> >> >
> >> >Hi
> >> >> Aneesha,
> >> >> thanks a LOT! my connection to mySQL with JSP is
> working GREAT now.
> >thanks
> >> >a ton. i did place my .jar files in the /servers/lib dir
> instead of
> where
> >> >they were and it's working. tell me something, if  remove the
> %CLASSPATH%
> >> >references from my autoexec.bat, will it work? cause i
> think JRun's not
> >> >using the classpath.
> >> >>
> >> >Glad to be of assistance. You can remove the references from the
> >classpath -
> >> >if Jrun is gonna be the only app that needs access to these.
> >> >
> >> >> Somehow my JavaMail is still not working. I did put all
> my .jar files
> >> >concerned with JavaMail (mail.jar, smtp.jar,
> activation.jar etc.) in the
> >> >/servers/lib dir...but it's still not working could
> you tell me what
> >> >could be wrong and how to use JavaMail with JRun?
> >> >>
> >> >
> >> >I'm not sure about the javamail. I'll have to test this.
> What error
> >message
> >> >are you getting? I do no that within the Jrun/lib/ext
> folder you will
> >find
> >> >activation, mail and pop jar files. Jrun has a send mail
> tag. You should
> >try
> >> >this and see if it works.
> >> ><%@ taglib uri="jruntags" prefix="jrun" %>
> >> >
> >> > >> >   sender="[EMAIL PROTECTED]"
> >> >   recipient="[EMAIL PROTECTED]"
> >> >   subject="Hello from SendMail tag">
> >> >Testing. C.
> >> >
> >> >
> >> >
> >> >> >
> >> >> >Hi
> >> >> >
> >> >> >JRun does not use the classpath. Check the
> documentation  for sure
> but
> >I
> >> >> >think you place the jar files in D:\Allaire\JRun\Servers\lib\
> >> >> >
> >> >> >Aneesha
> >> >> >
> >> >> >
> >> >> >
> >> >> >> this is what i'm putting in my autoexec.bat :
> >> >> >>
> >> >> >> SET CLASSPATH=%CLASSPATH%;D:\Allaire\javamail\mail.jar
> >> >> >> SET CLASSPATH=%CLASSPATH%;D:\Allaire\jaf\activation.jar
> >> >> >> SET CLASSPATH=%CLASSPATH%;D:\Allaire\javamail\smtp.jar
> >> >> >>
> >> >> >> and still my JavaMail ain't working. What could be wrong?
> >> >> >>
> >> >> >> SupremeBeing
> >> >> >>
> >> >> >> >Date: Sat, 12 May 2001 17:08:55 -0500
> >> >> >> >From: Shahed Ali <[EMAIL PROTECTED]>
> >> >> >> >Subject:  Re: JavaMail with JSP
> >> >> >> >To: [EMAIL PROTECTED]
> >> >> >> >
> >> >> >> >You also need smtp.jar in your classpath
> >> >> >> >
> >> >> >>
> >> >>
> >>
> ==
> ==
> =
> >=
> >> >=
> >> >> >> >To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> >> >> >JSP-INTEREST".
> >> >> >> >For digest: mailto [EMAIL PROTECTED] with body: "set
> >JSP-INTEREST
> >> >> >DIGEST".
> >> >> >> >Some relevant FAQs on JSP/Servlets can be found at:
> >> >> >> >
> 

Re: Please Help a Beginner!

2001-05-22 Thread Shawn Zhu

ahhh...you guys should have used JRun3.0.  Its seamless installation
and ease of use are great for standalone and dev purperse.  I have it
installed on my wkstation, and I've been developing a small app with
access db.  Gives me no trouble.

> -Original Message-
> From: Ruaidhrí Fernandes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 1:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Please Help a Beginner!
>
>
> Hi,
> I'm a beginner aswell.
> I'm usinf Win95 and Ive set up Tomcat on it.
> Its working fine.
> Ive pasted my autoexec/bat contents below. It contains
> what I have in my path and classpath.
> Have a look and see if it helps.
>
> SET BLASTER=A220 I5 D1 T4
> PATH=%PATH%;C:\ASYMPRES
> SET
> PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK\BIN;c:\JDK\JAVACC2.0
> \bin;"%PATH%"
> SET
> CLASSPATH=.;c:\jdk\lib\classes.zip;c:\tomcat\lib\servlet.jar;c
> :\tomcat\lib\jasper.jar;c:\tomcat\lib\jaxp.jar;c:\tomcat\lib\a
> nt.jar;c:\tomcat\lib\parser.jar;c:\tomcat\lib\webserver.jar;%C
> LASSPATH%;
> SET JAVA_HOME=c:\jdk
> SET TOMCAT_HOME=c:\tomcat
> SET HOMEDRIVE=C:
> rem LH C:\CDROM\MSCDEX /D:MSCD000
> mode con codepage prepare=((850)
> C:\WINDOWS\COMMAND\ega.cpi)
> mode con codepage select=850
> keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
> --- "Sarkar, Indra" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > sorry for having to ask a question this facile, but
> > i've scoured the web and
> > have found nothing  :-(
> >
> > i'm trying to set up and configure Tomcat 3.2.1  as
> > a standalone to test
> > jsps/servlets. Tomcat will only serve static pages
> > and  s o m e servlets at
> > the moment despite all my efforts.
> >
> > I suspect there's something wrong with my classpath
> > or path [below]  and i
> > would greatly appreciate someone giving me some
> > pointers...
> >
> > Regards,
> >
> > Indra
> >
> >
> CLASSPATH=.\classes;.\webserver.jar;.\lib\jakarta.jar;.\lib\se
> rvlet.jar;.\li
> >
> b\jsp.jar;.\lib\jspengine.jar;.\examples\WEB-INF\jsp\beans;.\w
> ebpages\WEB-IN
> >
> F\servlets;.\lib\xml.jar;.\lib\moo.jar;c:\jdk1.3\lib\tools.jar
> ;.\classes;.\w
> >
> ebserver.jar;.\lib\jakarta.jar;.\lib\servlet.jar;.\lib\jsp.jar
> ;.\lib\jspengi
> >
> ne.jar;.\examples\WEB-INF\jsp\beans;.\webpages\WEB-INF\servlet
> s;.\webpages\W
> >
> EB-INF\jsp\beans;.\lib\xml.jar;.\lib\moo.jar;.\lib\tools.jar;.
> ;c:\jdk1.3\lib
> >
> ;c:\jdk1.3\bin;c:\jdk1.3\lib\tools.jar;c:\Segue\SilkPerformer
> >
> 4.1\ClassFiles\javaUserFramework.zip;c:\jdk1.3\lib\jaxp.jar;c:
> \jdk1.3\lib\pa
> >
> rser.jar;c:\javamail-1.2\imap.jar;c:\javamail-1.2\mail.jar;c:\
> javamail-1.2\m
> >
> ailapi.jar;c:\javamail-1.2\pop3.jar;c:\javamail-1.2\smtp.jar;C
> :\jdk1.3\lib\s
> > ervlet.jar;
> >
> C:\jdk1.3\lib\parser.jar;.\;c:\jdk1.3\classes;c:\jsdk2.0\lib\j
> sdk.jar;c:\jsw
> > dk-1.0.1
> >
> >
> PATH=.;c:\jdk1.3\bin;C:\jdk1.3\lib\jsdk.jar;C:\Oracle\Ora81\bi
> n;C:\Oracle\Or
> > a81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program
> >
> Files\Oracle\jre\1.1.7\bin;C:\oracle\Ora81\bin\;C:\Program
> >
> Files\Oracle\jre\;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin;C
> :\PROGRA~1\RAT
> >
> IONAL\RATION~1\NUTCROOT\bin\x11;C:\PROGRA~1\RATIONAL\RATION~1\
> NUTCROOT\mksnt
> >
> ;C:\Inprise\AppServer\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\
> System32\Wbem;
> > c:\Program Files\Rational\ClearCase\bin;C:\Program
> > Files\Rational\common;C:\Program
> > Files\Rational\Rational
> >
> Test;C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jsdk2.0\bin;.\;C:\WINDOW
> S;C:\WINDOWS\C
> > OMMAND
> >
> > Indra Sarkar
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body:
> > "set JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> =
> "If a rabbit's foot is so lucky,. what happened to the rabbit?"
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST 

Re: Good Morning !!!

2001-05-22 Thread Shawn Zhu

So you are working in a project eh. =)
It doesn't matter what the database was done in.
It's a database in sql?  You can always access it
as long as the language provide connectivity to that
kinda database.

You can always use java's jdbcodbc drivers.  You can
create a DBManager Bean(model) that does the db access stuff.

Then you can instantiate DBManager in your servlets (controller)
and interface with the Database.

> -Original Message-
> From: Vadlmudi Harischandra [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 7:12 AM
> To: [EMAIL PROTECTED]
> Subject: Good Morning !!!
>
>
>Hai  ,
>  I am very new to the S/W Environment.
> In the sense, I had just camed out from my college ,after
> completing my M.C.A..
> Now I am working in a project , where I have to Use
> MVC architecture..
>  I am using
>
>   Model--Java Beans
>   View---JSP
>   Controller--Servlet
>
>  But I have no problem with the above architecture..
>
>   But My problem is , this company already had some database
> which is done  in  VC++..
>
> Now I have to connect to that database using
> CONTROLLER(servlets or jsp) .
>
>I am trying to use CORBA I/f to connect to the
> Database..But I am get strucked here...I am not getting any
> good ideas...
>
>if any one had  experience in this area, please kindly
> give me Ur Valuable suggestions...
>
>With Adv.Thanks & Wrm Rgds..
>   .. Have A Nice Day
>
>
>
>
> _
> Chat with your friends as soon as they come online. Get Rediff Bol at
> http://bol.rediff.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: IE5 and cached jsp pages?

2001-05-21 Thread Shawn Zhu

how do you expire the pages once you go to a new page?
syntax please.

> -Original Message-
> From: Hari Yellina [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 19, 2001 10:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: IE5 and cached jsp pages?
>
>
> Hi,
>
>  If you are submitting a form. it should be post method
> rather than get
> method. That u cannot see any cached elements. U can expire
> the pages once
> you go to new page.
> - Original Message -
> From: "Ruaidhrí Fernandes" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, May 20, 2001 3:00 AM
> Subject: IE5 and cached jsp pages?
>
>
> > Hi all,
> > Sorry for sending in this question again but nothing I
> > try is working. I've tried setting the response
> > headers to control the cache and Ive tried setting the
> > meta eqiv tags but I still have my problem.
> > When the user hits the back button the previous pages
> > is still there, I'm assuming its coming from the
> > cache.
> > I read IE5 has a few problems but I can't resolve them
> > with the fixes. If anyone has ever resovled a problem
> > similar to this could they let me know how they did
> > it?
> > Thanks
> > Rui
> >
> > =
> > "If a rabbit's foot is so lucky,. what happened to the rabbit?"
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great prices
> > http://auctions.yahoo.com/
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Cache Control Question?

2001-05-18 Thread Shawn Zhu

Hi Ruaidhri, how's your project going?  Looks like you are almost done.
did you get your db problem sovled?

As for the back bottun.  One solution is to reset your form during form
onload event.  You should be able to figure out what to do now.

comment on others' suggestion:
1. disabling the back button, I have not seen how to do that yet; if someone
truely knows, show us please.

2. disable caching? don't think that works in this case. they must not know
what the question is.

3. using document.[var].value="" with onsubmit event?! lol, that won't work.


> -Original Message-
> From: Ruaidhrí Fernandes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 18, 2001 2:28 PM
> To: [EMAIL PROTECTED]
> Subject: Cache Control Question?
>
>
> Hi all,
> My problem is,I want to know how to stop users from
> seeing previous pages by using the back button. Like
> if someone fills out form fields and then submits and
> leaves the PC and then another user comes along and
> hits the back button then they can see all the past
> users sensitive info in the form fields.
> It seems the browser is retrieving the cached
> pages.How can I stop this from happening. I'd like to
> have it that if a person tried to hit the back button
> then they are taken to a warning page telling them
> that they can't view this page and give them a link to
> the start page.
> I've tried various methods to solve this problem but
> none seem to work properly.
> Could anyone tell me how to tell a jsp not to use the
> cached pages?
> thanks
> Rui
>
> =
> "If a rabbit's foot is so lucky,. what happened to the rabbit?"
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Clearing form fields after a submit?

2001-05-18 Thread Shawn Zhu

interesting, on a form submission the visible fields
automatically clears.  So what did you do?

> -Original Message-
> From: Ruaidhrí Fernandes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 18, 2001 11:03 AM
> To: [EMAIL PROTECTED]
> Subject: Clearing form fields after a submit?
>
>
> Hi all,
> Can anyone tell me hoe to clear form fields after
> clicking on the submit button.
> I have fields which contain sensitive info. When the
> submit button is clicked the data is sent to another
> JSP. But how can I clear these fields after
> submitting?
> Thanks
> Rui
>
> =
> "If a rabbit's foot is so lucky,. what happened to the rabbit?"
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: java.awt.List error

2001-05-16 Thread Shawn Zhu

you've included class java.awt.* and java.util.*
they both have a List class, therefore declaring
private List studentList is Ambiguous (as the error
message states, read it! lol).

so you need the full qualified declaration as:
private java.awt.List studentList;
or
private java.util.List studentList;

> -Original Message-
> From: Nguyen, Thang P [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: java.awt.List error
>
>
> Hi,
>
> Can someone pls tell me what I did wrong here? The java compiler keeps
> complaining about the List class.  I include the error, my
> PATH, and source
> code below:
> Thanks much in advance.
> TN
> ==   Error ===
> C:\APPLET~1\client>javac TestDBApplet.java
> TestDBApplet.java:12: Ambiguous class: java.awt.List and
> java.util.List
> private List studentList;
> ^
> TestDBApplet.java:22: Ambiguous class: java.awt.List and
> java.util.List
> studentList = new List();
>   ^
> TestDBApplet.java:23: Class <>List not found in
> void init().
> studentList.setFont(new Font("monospaced",
> Font.PLAIN, 12)
>^
> TestDBApplet.java:24: Class <>List not found in
> void init().
> this.add(BorderLayout.CENTER, studentList);
> ^
> = Path
> ==
>
> C:\APPLET~1\client>path
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\ORANT\BIN;C:\ORAWIN\BIN
> ;u:\;;C:\WINDO
> WS\S
> ystem32\WBEM;C:\WINDOWS\System32\WBEM;C:\MSSQL7\BINN;C:\Program
> Files\Microsoft
> Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
> Studio\Common
> \MSDev98\Bin;C:\Program Files\Microsoft Visual
> Studio\Common\Tools;C:\Program Fi
> les\Microsoft Visual Studio\VC98\bin;c:\program
> files\devstudio\sharedide\bin\id
> e;c:\program files\devstudio\sharedide\bin;c:\program
> files\devstudio\vc\bin;c:\
> informix\bin;c:\jdk1.2.2\bin;c:\jdk1.2.2\jre\bin;c:\tomcat3.2.
> 1\jakarta-tomc
> at-3
> .2.1\webapps\webdev\WEB-INF\classes
>
>
>
>
> ==  my source code below ==
>
>
>
> import java.awt.*;
> import java.awt.event.*;
> import java.applet.*;
>
> import java.util.*;
> import java.io.*;
> import java.net.*;
>
> public class TestDBApplet extends Applet
> {
>
> private List studentList;
> private TextArea statusTextArea;
>
>
> private final int COLUMN_WIDTH = 20;
>
> public void init()
> {
> this.setLayout(new BorderLayout());
>
> studentList = new List();
> studentList.setFont(new Font("monospaced",
> Font.PLAIN, 12));
> this.add(BorderLayout.CENTER, studentList);
>
> }
>
> }
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: where to store my servlet

2001-05-16 Thread Shawn Zhu

That is not true.  You don't have to put you servlets
under the servlet folder.  If you have a Application
on JRun mapped to /myApp.  So you usually call your applciation
as follows http://server:port/myApp/index.jsp then if you have
a servlet written for that Application, you can just put that
servlet under where /myApp is and call it
http://server:port/myApp/servlet/myAppServlet Read JRuns Administrative
Docs

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 7:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: where to store my servlet
>
>
> In the Servlets folder , the Servlets folder is located under
> the JRUN root
> In JRUN 2.3 it is  C:\program files\jrun\servlets
>
> In JRUN3.0 it is c:\program files\allaire\jrun\servlets
>
> You can access the servlet as
> http://server:portnumber/servlet/servlet_name
> or http://server/servlet/servlet_name
>
> Santosh
>
>
>
>
>
>
>
> Chandralal Aruketty Velayudhan <[EMAIL PROTECTED]> on
> 05/16/2001 09:33:54 AM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  where to store my servlet
>
>
>
> hi there,
>   where i can store my servlets in JRUN
> regards chandralal
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: important ..................

2001-05-15 Thread Shawn Zhu

How come when calling in a similar fashion to
long gmtTime = gmtCalendar.getTimeInMillis();
the compiler complains that
==
TestCases/dataBase/DBManager.java [441:1] getTimeInMillis() has protected
access in java.util.Calendar
long tRightNow = c.getTimeInMillis();
  ^
1 error

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: important ..
>
>
> Is this what you are looking for?
>
> TimeZone gmtz = TimeZone.getTimeZone("GMT");
> Calendar gmtCalendar = Calendar.getInstance(gmtz);
>
> long gmtTime = gmtCalendar.getTimeInMillis() ;
>
>
> If the time zone you want is not represented by one of the
> supported IDs, then
> you can create a custom time zone ID
> with the following syntax:
>
> GMT[+|-]hh[[:]mm]
>
>
>
> Santosh
>
>
>
>
>
>
> sandarbh <[EMAIL PROTECTED]> on 05/15/2001 12:57:20 PM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  Re: important ..
>
>
>
> this will give me current time in milliseconds. can we try
> getting this
> value for some other time in GMT format
>
> sandarbh
> - Original Message -
> From: "Clayton Nash" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 15, 2001 5:19 PM
> Subject: Re: important ..
>
>
> > just try
> > long thetime=System.currentTimeMillis();
> >
> > Clayton
> >
> > -Original Message-
> > From: A mailing list about Java Server Pages specification
> and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of sandarbh
> > Sent: 15 May 2001 13:49
> > To: [EMAIL PROTECTED]
> > Subject: important ..
> >
> >
> > Hi all,
> > I have a basic simple question to ask.
> > I need to know exact difference between two times in
> milliseconds in a
> bean
> > which i am callig thru a JSP page. If i use calender class
> and use compute
> > time then it is abstract in nature so i have to blah blah
> blahu
> know
> >
> > The other option is -->>
> > select sysdate - (select max(logdatetime) from module_log)
> from dual,  get
> > the result and proceed the .. the connection is already
> there so question
> is
> > only of creating resultset and blah blah.
> >
> > which of these options will take less system resources and why??
> >
> > Sandarbh
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.j

Re: Can I adminster multiple instances of tomcat?

2001-05-09 Thread Shawn Zhu

lol

> -Original Message-
> From: King Maurice [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Can I adminster multiple instances of tomcat?
>
>
> yes
>
> - Original Message -
> From: "A Stephen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 7:06 PM
> Subject: Can I adminster multiple instances of tomcat?
>
>
> > Can I adminster multiple instances of tomcat?
> > If i can how , can this be done?
> > Cheers!
> > _
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Database locked?

2001-05-07 Thread Shawn Zhu

haha...it's only confusing when you describe it.

put it in simple words (I think what's you've been trying to describe):
1. your app is the only app
that's accessing the DB;
2. you are trying to do read/write to the DB
3. you get table is locked error.

Solution:
someone has suggested,
1. close your DB connection after trieving the records.
2. reopen your db connection to update a record


> -Original Message-
> From: Ruaidhrí Fernandes [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 07, 2001 5:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Database locked?
>
>
> Hi again,
> It's a standalone application. Im writing a e-commerce
> web site for my final year project. I have tomcat
> running on my machine.It is the only application open.
> Do u know what i mean?
> Basically, one page pulls columns from a table and
> puts this information in forms so the user can edit
> the information on the web page. When the user hits
> the update button, the Update.jsp page is invoked and
> this pages tries updating the table with the values in
> the forms. But i keep getting that error message
> saying the data base is locked by the user who pulled
> the values from the table in the first page. Get me?
> Confusing stuff, i know.
> Let me know if you know anymore on this, and thanks
> for helping.
> Cheers
> Rui
>
> --- Shawn Zhu <[EMAIL PROTECTED]> wrote:
> > close your admin application that's using your
> > Access
> > database on machine 'RUI'.
> >
> > > -Original Message-
> > > From: Justin Owens [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, May 07, 2001 9:05 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Database locked?
> > >
> > >
> > > You are running into a deadlock.  You are try to
> > access
> > > records/tables that
> > > are locked by the database.  There are a couple of
> > ways to
> > > remedy this.  The
> > > first one is to close your first connection and
> > recordset.  By closing
> > > these, it should free up resources.  I am not sure
> > of the
> > > syntax or if you
> > > can do this in java/jsp as I have just started
> > learning (my
> > > experience comes
> > > from ASP programming), it sounds like a readonly
> > lock on the database.
> > > There should be richer lock types than this.
> > >
> > > Justin
> > >
> > > -Original Message-
> > > From: A mailing list about Java Server Pages
> > specification
> > > and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Ruaidhrm Fernandes
> > > Sent: Monday, May 07, 2001 10:33 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Database locked?
> > >
> > >
> > > Hi all,
> > > I'm getting an error saying :
> > > java.sql.SQLException: [Microsoft][ODBC Microsoft
> > > Access 97 Driver] Couldn't update; currently
> > locked by
> > > user 'admin' on machine 'RUI'.
> > >
> > > What my program does is,I have a JSP page that
> > opens a
> > > connection with the database and retrieves fields
> > from
> > > a products table in my database and stores them in
> > > forms. This allows users to edit/delete/add
> > entries to
> > > the database. When the user clicks the submit
> > button
> > > it should invoke the Updatetable.jsp page.
> > > The Updatetable.jsp page creates another
> > connection
> > > and either updates/deletes/adds entries to the
> > same
> > > products table depending on what the users choice
> > was.
> > > When I click the submit button, i get the error at
> > the
> > > top of this e-mail.
> > > Does anyone know why this is happening?
> > > Thanks Rui
> > >
> > > =
> > > "If a rabbit's foot is so lucky,. what
> > happened to the rabbit?"
> > >
> > > __
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> > >
> >
> ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff
> > > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with
> > body: "

Re: Database locked?

2001-05-07 Thread Shawn Zhu

close your admin application that's using your Access
database on machine 'RUI'.

> -Original Message-
> From: Justin Owens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 07, 2001 9:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Database locked?
>
>
> You are running into a deadlock.  You are try to access
> records/tables that
> are locked by the database.  There are a couple of ways to
> remedy this.  The
> first one is to close your first connection and recordset.  By closing
> these, it should free up resources.  I am not sure of the
> syntax or if you
> can do this in java/jsp as I have just started learning (my
> experience comes
> from ASP programming), it sounds like a readonly lock on the database.
> There should be richer lock types than this.
>
> Justin
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ruaidhrm Fernandes
> Sent: Monday, May 07, 2001 10:33 PM
> To: [EMAIL PROTECTED]
> Subject: Database locked?
>
>
> Hi all,
> I'm getting an error saying :
> java.sql.SQLException: [Microsoft][ODBC Microsoft
> Access 97 Driver] Couldn't update; currently locked by
> user 'admin' on machine 'RUI'.
>
> What my program does is,I have a JSP page that opens a
> connection with the database and retrieves fields from
> a products table in my database and stores them in
> forms. This allows users to edit/delete/add entries to
> the database. When the user clicks the submit button
> it should invoke the Updatetable.jsp page.
> The Updatetable.jsp page creates another connection
> and either updates/deletes/adds entries to the same
> products table depending on what the users choice was.
> When I click the submit button, i get the error at the
> top of this e-mail.
> Does anyone know why this is happening?
> Thanks Rui
>
> =
> "If a rabbit's foot is so lucky,. what happened to the rabbit?"
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Passing a string from a JSP to a Java class and back.

2001-05-04 Thread Shawn Zhu

> > Your JSP needs to create the new instance of Test ...
> > <% Test test = new Test() %>
> > Then you can do the rest of the JSP and it should work
>
> Actually this is specificly what I need to avoid. I need to
> have only one instance of test running for the during of the
> time the server is up. The eventual end us of what I'm trying
> to write is to track users who log into a service and let an
> administrator log them out or be to simply be aware they are
> there.

So you are assuming there's an instance of Test somewhere.  I am
certain you got an error that test is not defined.

>
>
> > What's your error message?
>
> Don't get any... when I go to the jsp page it just ends where
> my jsp begins. View source shows the html up to that point,
> from there on out it fails to create any html.

Error messages might not have been printed on the browser, they may be just
in your webserver's error log or output log.

Now you haven't answer my question about making your constructor private*

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Passing a string from a JSP to a Java class and back.

2001-05-04 Thread Shawn Zhu

lol, you have getGoo() defined not getFoo().
What's your error message?
Why do you have the constructor private? (just curious)

> -Original Message-
> From: Arcady [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 04, 2001 12:31 PM
> To: [EMAIL PROTECTED]
> Subject: Passing a string from a JSP to a Java class and back.
>
>
> This is an ultra simple one I would guess.
>
> But for some reason I cannot get it to go...
>
>
> I want to take a string of data and send it from the jsp
> webpage over to a class.
> Then have that class send it back to the webpage which puts
> it on the screen.
>
> In essense step one of a larger process.
>
> My JSP would be something like this:
>
> <% String hello="Hello World" %>
> <% test.setFoo(hello); %>
> <%=test.getFoo() %>
>
>
> My java class would be:
>
> test.java :
>
> import java.util.*;
>
> public class test {
>
> static public String foo;
> private test() {}
> static public void setFoo(String t) {
> foo = t;
> }
> static public String getGoo() {
> return foo;
> }
> }
>
>
> I assume I'm missing something very obvious here...
> Oddly enough none of my books on JSP cover this topic.
> They all cover more advanced things like putting and pulling
> from SQL databases or whatever...
> But nothing on this simple level of work.
>
> So...
> What exactly do I need to do to get that String to go in and
> come back out again? :)
>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: URL Encoding

2001-05-03 Thread Shawn Zhu

Why don't you use response.encodeURL()?

> -Original Message-
> From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 9:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: URL Encoding
>
>
> king,
>
> String firstName = "King Maurice";
> String encodedFName = java.net.URLEncoder.encode(firstName);
> String encodedLink = "Servlet?Name="+encodedFName;
>
> hope this is what you are looking for..
>
> Nishit
>
> -Original Message-
> From: King Maurice [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: URL Encoding
>
>
> Can someone point out to me some real world examples of using
> url encoding
>
> I have a non-submit button where it passes some values
> The values are string being passed
>
> Ex:::mywebsite.com?index.jsp?valuestring=<%= stringvalue %>
>
> then when I process the string in another page
>
> Ex:::String valuestring = request.getParameter("valuestring");
>
> I get these %20, which should be +
>
> I need to encode these before submiting
>
> Does anyone have a code sample(s)
>
> I would appreiciate it
>
> Thanks~
>
>
> - Original Message -
> From: "Chitra Muthukrishnan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 03, 2001 10:25 AM
> Subject: Re: DATE FORMAT
>
>
> > Hi there
> >
> > You can use
> > 1) "to_date()" method  to convert str to oracle date
> > 2) "to_char()" method to convert oracle date to string
> >
> > Examples :
> >
> > 1. to_date('01-MAY-2001 12:00:00','dd-MONTH- hh:mi:ss')
> > 2. to_char('oracledate','any format')
> >
> > You can insert/update the date field (Oracle) in any format
> and retrieve
> > date field in any format
> >
> >
> >
> > M.Chitra
> > www.3rdagenda.com
> >
> >
> > - Original Message -
> > From: [Lelievre Frederic] <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, May 03, 2001 7:24 PM
> > Subject: DATE FORMAT
> >
> >
> > Hi all,
> > I would like to change a String (String str = "01-MAY-2001
> 12:00:00";) to
> a
> > Oracle Date ?
> > And I would like to change a Oracle Date to a String.
> > How can I do this ?
> >
> > Give the code please .
> > Thank for your help.
> >
> >
> > > Frédéric LELIEVRE
> > > TTE -  (BA / F04 C024)
> > >
> > > *   +352-44992--2485
> > > * [EMAIL PROTECTED]
> > >
> >
> >
> > Visit us at http://www.clearstream.com
> > Check out current job vacancies at
> > http://www.clearstream.com/public/english/e_vacs.htm
> >
> > IMPORTANT MESSAGE
> >
> > Internet communications are not secure and therefore Clearstream
> > International does not
> > accept legal responsibility for the contents of this message.
> >
> > The information contained in this e-mail is confidential and may be
> legally
> > privileged. It is
> > intended solely for the addressee. If you are not the
> intended recipient,
> > any disclosure,
> > copying, distribution or any action taken or omitted to be taken in
> reliance
> > on it, is
> > prohibited and may be unlawful. Any views expressed in this
> e-mail are
> those
> > of the
> > individual sender, except where the sender specifically
> states them to be
> > the views of
> > Clearstream International or of any of its affiliates or
> subsidiaries.
> >
> > END OF DISCLAIMER
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Fo

Re: Session variables

2001-05-01 Thread Shawn Zhu

now that is weird.  Which JSP server are you using?
I'll remember not to get that.
Try using session.setAttribute, and session.getAttribute
see if it makes a difference.

> -Original Message-
> From: Lenin Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 1:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Session variables
>
>
> No I do not mean a different instance of the same browser, I mean an
> instance of the EI (after having an instance of Netscape)
> I do not get it. I understand that if I create an instance of the same
> browser yes, I would get the same session,  but i am instanciating a
> differnt browser
> here is how I create the instances of my bean
>
> User aUser = new User();
> aUser.callSomeMethod();
> session.putValue("user",aUser)
>
> then  from all other beans and JSPs I just do
>
> User aUser = (User)session.getValue("aUser")
>
> am I doing something wrong?
>
>
>
> -Original Message-
> From: erik morton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Session variables
>
>
> Let me try to clear some things up first. What do you mean by
> "different"
> browser?
> I will assume that you meant that you created another
> instance of the same
> browser
> type (Netscape for example) from which you made the first request.
>
> The servlet container keeps track of sessions by assigning
> jsessionids to
> clients
> in either a cookie or a URL parameter. If you have cookies
> enabled then no
> matter
> how many instances of Netscape you create, you will still
> only have one
> session
> because Netscape shares cookies across the instances. If you
> were to fire up
> IE and
> request the same page you would get a new session because you
> Netscape and
> IE do
> not share cookies (unless you appended the parameter
> jsessionid= to the url).
>
> There was a good discussion of this late last week.
>
> I would need more information to properly discuss.
>
>
> Lenin Lopez wrote:
>
> > HI ALL
> > I desperatly need your help!!
> >
> > Here is the scenario
> >
> > I instanciate  a bean  'User' ( which contains user acct,
> user type, and
> > other pieces of information ) and I store a reference to
> that bean in a
> > SESSION variable so I can share that bean among other beans
> and JSPs that
> > need the same information.
> > It works fine when I access the information from all the
> different beans
> and
> > JSPs.
> > However,  if a launch a different browser with a different
> User account
> the
> > first page uses its own user account.  However the
> following pages SOMEHOW
> > get the information STORED in the previous session variable
> therfore I
> lose
> > my new account number.
> > I thought every browser would create its own session variable,
> >
> > Any input is greatly appreciated
> > Thanks
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> --
> Erik I Morton
> Software Developer
> --
> CommerceHub
> http://www.commercehub.com
> 518-886-0704
> 21 Corporate Drive
> Clifton Park, NY 12065
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/fa

Re: MS Access

2001-05-01 Thread Shawn Zhu

Hi I keep getting my message rejected by the list server.
Do you guys get that?  I don't think I have any offending
words in my email.  Or is it just a bug in the server?

The truth is "People can not get along".

> -Original Message-
> From: King Maurice [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 12:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: MS Access
>
>
> To tell you the truth.
> I really don't care about if someone does not know what they
> are talking
> about but that is a learning process, you ask questions that
> seem to be
> strange or ludacrious.
> As a teacher, I should know, people get offended.
> >From the tone of that email it sounded like you were
> insulting that person
> from whatever he suggested something that makes no sense. But
> say no more.
>
>
> - Original Message -
> From: "Joseph Ottinger" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 01, 2001 3:20 PM
> Subject: Re: MS Access
>
>
> > *sigh* This again.
> >
> > I think you're being overly sensitive on someone else's
> behalf. I didn't
> say
> > he was a moron. Maybe I should have, but I was giving him
> the benefit of
> the
> > doubt. If you read what I said, you'll see that I indicated
> that he didn't
> > want to have a bad reputation undeservedly. If you can
> figure out how to
> > read between the lines, and back off from your
> apparently-chosen stance of
> > "Everybody's so INSULTING!", you'd see that I was giving
> him the benefit
> of
> > the doubt.
> >
> > >From: King Maurice <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: MS Access
> > >Date: Tue, 1 May 2001 14:21:19 -0400
> > >
> > >This is a forum of questions, esp if one is not knowledgeable about
> > >technology.
> > >
> > >So bashing someone not knowkledgeable in a certain area
> does not give the
> > >right from degrading the person, that is unprofessional and bad
> judgement.
> > >I agree that person should go into a newbie forum, but the
> person should
> > >not
> > >get dissed rather be advised of the proper channels.
> > >
> > >
> > >- Original Message -
> > >From: "Joseph Ottinger" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Tuesday, May 01, 2001 2:11 PM
> > >Subject: Re: MS Access
> > >
> > >
> > > > Please tell me this is a joke... and if it's not, please let the
> entire
> > >list
> > > > know which site this is, so we can avoid it.
> > > >
> > > > 1) Deciding that JSP and JSP alone is all you'll use is
> typically a
> Bad
> > > > Idea. The existence of JSP implies an array of
> resources. Use them.
> (And
> > > > yes, I've made this mistake myself.)
> > > >
> > > > 2) Access is a stupid, stupid, stupid idea for any kind
> of reliable
> > > > database. In addition, the JDBC drivers for it tend
> to.. um... suck.
> > > >
> > > > You should really look at using J2EE the way it's meant
> to be used.
> This
> > > > kind of "I'll port straight from ASP!" approach gives
> JSP - and you -
> a
> > >bad
> > > > reputation, undeservedly.
> > > >
> > > > >From: Ruaidhrí Fernandes <[EMAIL PROTECTED]>
> > > > >Reply-To: A mailing list about Java Server Pages
> specification and
> > > > > reference <[EMAIL PROTECTED]>
> > > > >To: [EMAIL PROTECTED]
> > > > >Subject: Re: MS Access
> > > > >Date: Tue, 1 May 2001 10:47:15 -0700
> > > > >
> > > > >Hi all,
> > > > >Im new to JSP. Trying to create an e-commerce web site
> > > > >using JSP alone.
> > > > >Im usinf MS Acess as my database and im wondering how
> > > > >i would go about making a connection to it using JSP.
> > > > >If anyone knows or knows some web page explaining how
> > > > >to do it that would be great.
> > > > >Thanks
> > > > >Ruaidhri Fernandes
> > > > >
> > > > >--- Ashish Shrestha <[EMAIL PROTECTED]> wrote:
> > > > > > Celeste Haseltine wrote:
> > > > > > > I must admit that I had not heard of the FreeTDS
> > > > > > driver.  I've already
> > > > > > > purchased a Type 4 JDBC driver, but just out of
> > > > > > curiousity, is FreeTDS a
> > > > > > > type 4 driver, or a type 2?  For my production
> > > > > > internet application, I
> > > > > > > needed a Type 4 driver, and one that included the
> > > > > > extended API.
> > > > > >
> > > > > > It is a Type 4 driver, but I think the
> > > > > > implementation is not
> > > > > > complete.
> > > > > > --
> > > > > > a s h i s h @ j d g n p . o r g
> > > > > > Get Headlines 0.5.2 for free at
> > > > > > http://headlines.sourceforge.net/
> > > > > >
> > > > > >
> > > >
> > >
> >=
> ==
> > > > > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > > > > > body: "signoff JSP-INTEREST".
> > > > > > For digest: mailto [EMAIL PROTECTED] with body:
> > > > > > "set JSP-INTEREST DIGEST".
> > > > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > > > >
> > > > > >  http://java.sun.com/

Re: Session variables

2001-05-01 Thread Shawn Zhu

I think this is a problem either with the browser or the webserver.
I had experience with this as well.  If you are running two browsers
on the same machine, something about the session gets screw up.

> -Original Message-
> From: Lenin Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: Session variables
>
>
> HI ALL
> I desperatly need your help!!
>
> Here is the scenario
>
> I instanciate  a bean  'User' ( which contains user acct,
> user type, and
> other pieces of information ) and I store a reference to that
> bean in a
> SESSION variable so I can share that bean among other beans
> and JSPs that
> need the same information.
> It works fine when I access the information from all the
> different beans and
> JSPs.
> However,  if a launch a different browser with a different
> User account the
> first page uses its own user account.  However the following
> pages SOMEHOW
> get the information STORED in the previous session variable
> therfore I lose
> my new account number.
> I thought every browser would create its own session variable,
>
> Any input is greatly appreciated
> Thanks
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: forte for java ie

2001-05-01 Thread Shawn Zhu

except it has some nasty memory leak.
sometimes hidden text gets added into your source code.
you have to becare to remove them.

However, it's a nice IDE, I am waiting for them to fix
the bugs

> -Original Message-
> From: Jim Rueschhoff [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 11:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: forte for java ie
>
>
> Community Edition is actually quite nice and powerful.  Version 2 of
> community edition is very usable for JSP.
>
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Gilson do
> Nascimento Del
> Rei
> Sent: Tuesday, May 01, 2001 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: [JSP-INTEREST] forte for java ie
>
>
> Hello all,
> I have seen much about the better IDE Development for java, i
> tried to get
> Forte for Java IE version but your download is on eletronic
> payment even the
> trial version (maybe i didn't understood correctly... ). Exists a free
> version this IDE Tool (not Community Editon )!?
> thanks in advance!
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: frame problem

2001-04-30 Thread Shawn Zhu

I am very sorry Shirley.  Please be patient with me on that.
Anyway, was I right about your company suddenly gave a JSP
project to a newbie?

> -Original Message-
> From: Shirley Chen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 30, 2001 6:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: frame problem
>
>
> Shawn,
>
> Don't be so mean.  Everybody has the first time doing things.
>  You know
> something doesn't give you the right to tease other people.
> Yes, I am the
> beginner at jsp.  But  you sure are the beginner as a decent
> human being.
> So work on that.
>
> Shirley
>
>
> >From: Shawn Zhu <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: frame problem
> >Date: Fri, 27 Apr 2001 15:48:18 -0700
> >
> >Hey Shirley,
> >   So basically you never knew how to program in JSP (and
> maybe Java),
> >and your company just suddenly assigned you a JSP/Java project which
> >requires you to finish in 2 weeks?  I am curious because, lets say if
> >you knew OOP, then it'll take your 1 week to learn JSP/Java.
>  Okay, it
> >may take you a bit longer to get a hang of programming it.
> Because it
> >just seem like you are probably a HTML writer and the questions you
> >are asking is like asking someone write the JSPs for you.
> This is how
> >it appears to me, please enlighten me otherwise though. =)
> >
> >Okay to answer your question.  use HttpSession's setAttribute and
> >getAttribute.
> >
> >
> > > -Original Message-
> > > From: Shirley Chen [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, April 27, 2001 3:05 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: frame problem
> > >
> > >
> > > I tried passing the hidden form values and it didn't
> work. Well, some
> > > reasons for using frames are: 1. too much information needed to be
> > > displayed. 2. each screen need have header, menu and main
> text area.
> > > Sometimes, the menu item could be quite long, since the
> frames have
> > > scrolling bar feature, we can use limited space to
> display long text.
> > >
> > > How do I save variable in session object?
> > >
> > > Shirley
> > >
> > >
> > > >From: Justin Owens <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages
> specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: frame problem
> > > >Date: Fri, 27 Apr 2001 16:45:45 +0100
> > > >
> > > >One way would be to use hidden form values to pass since you
> > > are using
> > > >frames.  Another method you can use placing your parameters
> > > in session
> > > >objects or even cookies.  I am not sure of the coding for
> > > this as I am a
> > > >beginner with JSP development.  Just one question, Why
> are you using
> > > >frames.
> > > >There is more effective ways of laying out sites.  Just
> > > curious though.
> > > >
> > > >
> > > >Justin
> > > >
> > > >-Original Message-
> > > >From: A mailing list about Java Server Pages specification
> > > and reference
> > > >[mailto:[EMAIL PROTECTED]]On Behalf Of Shirley Chen
> > > >Sent: Friday, April 27, 2001 10:35 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: frame problem
> > > >
> > > >
> > > >Thanks.  At least I can make the doc2Body reload when
> doc1Body gets
> > > >refreshed.  The next question is how can I pass parameters
> > > from doc1Body to
> > > >doc2Body while I am doing  > > >onload="parent.doc2Frame.doc2Body.window.location.href =
> > > "doc2Body.jsp"">?
> > > >
> > > >
> > > >
> > > > >From: Justin Owens <[EMAIL PROTECTED]>
> > > > >Reply-To: A mailing list about Java Server Pages
> specification and
> > > > > reference <[EMAIL PROTECTED]>
> > > > >To: [EMAIL PROTECTED]
> > > > >Subject: Re: frame problem
> > > > >Date: Fri, 27 Apr 2001 14:48:14 +0100
> > > > >
> > > > >The following link is not exacting to your situation, but
> > >

Re: calling other classes

2001-04-27 Thread Shawn Zhu

In formBean.java try including project_name.Log

> -Original Message-
> From: Limin Zhang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 3:04 PM
> To: [EMAIL PROTECTED]
> Subject: calling other classes
>
>
> hello, everyone:
>
> i'm kind of new to jsp.  here is a entry-level question:  in my
> webapps/projec_name/WEB-INF/classes/project_name/, i have a
> FormBean.class, which belongs to the package "project_name".  FormBean
> need call another class Log.class which is in the same package and the
> same directory, however i got error while compiling: Log class not
> exist.  what's the problem?
>
> thanks for any input!
>
> Limin
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: frame problem

2001-04-27 Thread Shawn Zhu

Hey Shirley,
  So basically you never knew how to program in JSP (and maybe Java),
and your company just suddenly assigned you a JSP/Java project which
requires you to finish in 2 weeks?  I am curious because, lets say if
you knew OOP, then it'll take your 1 week to learn JSP/Java.  Okay, it
may take you a bit longer to get a hang of programming it.  Because it
just seem like you are probably a HTML writer and the questions you
are asking is like asking someone write the JSPs for you.  This is how
it appears to me, please enlighten me otherwise though. =)

Okay to answer your question.  use HttpSession's setAttribute and
getAttribute.


> -Original Message-
> From: Shirley Chen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: frame problem
>
>
> I tried passing the hidden form values and it didn't work. Well, some
> reasons for using frames are: 1. too much information needed to be
> displayed. 2. each screen need have header, menu and main text area.
> Sometimes, the menu item could be quite long, since the frames have
> scrolling bar feature, we can use limited space to display long text.
>
> How do I save variable in session object?
>
> Shirley
>
>
> >From: Justin Owens <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: frame problem
> >Date: Fri, 27 Apr 2001 16:45:45 +0100
> >
> >One way would be to use hidden form values to pass since you
> are using
> >frames.  Another method you can use placing your parameters
> in session
> >objects or even cookies.  I am not sure of the coding for
> this as I am a
> >beginner with JSP development.  Just one question, Why are you using
> >frames.
> >There is more effective ways of laying out sites.  Just
> curious though.
> >
> >
> >Justin
> >
> >-Original Message-
> >From: A mailing list about Java Server Pages specification
> and reference
> >[mailto:[EMAIL PROTECTED]]On Behalf Of Shirley Chen
> >Sent: Friday, April 27, 2001 10:35 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: frame problem
> >
> >
> >Thanks.  At least I can make the doc2Body reload when doc1Body gets
> >refreshed.  The next question is how can I pass parameters
> from doc1Body to
> >doc2Body while I am doing  >onload="parent.doc2Frame.doc2Body.window.location.href =
> "doc2Body.jsp"">?
> >
> >
> >
> > >From: Justin Owens <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: frame problem
> > >Date: Fri, 27 Apr 2001 14:48:14 +0100
> > >
> > >The following link is not exacting to your situation, but
> you should be
> > >able
> > >to adapt it to such.
> > >
> > >Justin
> > >
> > >
> > >http://javascript.internet.com/navigation/frames-load-order.html
> > >
> > >-Original Message-
> > >From: A mailing list about Java Server Pages specification
> and reference
> > >[mailto:[EMAIL PROTECTED]]On Behalf Of Shirley Chen
> > >Sent: Friday, April 27, 2001 8:23 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: frame problem
> > >
> > >
> > >How do I do it? Please explain to me. Thanks
> > >
> > >Shirley
> > >
> > >
> > > >From: Justin Owens <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages
> specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: frame problem
> > > >Date: Fri, 27 Apr 2001 13:50:41 +0100
> > > >
> > > >In order to use onLoad="..." You will have to specify
> the frame number
> >in
> > > >javascript.
> > > >
> > > >Justin
> > > >
> > > >-Original Message-
> > > >From: A mailing list about Java Server Pages specification and
> >reference
> > > >[mailto:[EMAIL PROTECTED]]On Behalf Of Shirley Chen
> > > >Sent: Friday, April 27, 2001 7:26 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: frame problem
> > > >
> > > >
> > > >Thanks. But how can I refer to doc2Body.jsp in onLoad="..."?
> > > >
> > > >
> > > >
> > > > >From: Tarik Makota <[EMAIL PROTECTED]>
> > > > >Reply-To: A mailing list about Java Server Pages
> specification and
> > > > > reference <[EMAIL PROTECTED]>
> > > > >To: [EMAIL PROTECTED]
> > > > >Subject: Re: frame problem
> > > > >Date: Fri, 27 Apr 2001 14:01:29 -0400
> > > > >
> > > > >
> > > > >
> > > > >Tarik
> > > > >
> > > > >
> > > > >- Original Message -
> > > > >From: "Shirley Chen" <[EMAIL PROTECTED]>
> > > > >To: <[EMAIL PROTECTED]>
> > > > >Sent: Friday, April 27, 2001 1:21 PM
> > > > >Subject: frame problem
> > > > >
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I have a nested frameset which looks like this:
> > > > > >
> > > > > >   
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >   
> > > > > >
> > > > > > in the main.jsp, it looks like this:
> > > > > >   
> > > > > > 
> > > > > > 
> > > > 

Re: How to get URL of the original servlet after forwarding to aJ SP page?

2001-04-27 Thread Shawn Zhu

Oh yeah Thanks Albert for backing me up.
I got thrown off my Erik.  Next time I should
read the posts more carefully. hahah...

> -Original Message-
> From: Albert Wong [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get URL of the original servlet after
> forwarding to
> aJ SP page?
>
>
> Isn't this what the original poster asked for?  The URI of the page
> referring to the servlet?
>
> -Original Message-
> From: erik morton [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 1:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get URL of the original servlet after
> forwarding to
> aJSP page?
>
>
> Actually I don't think that this will work. Here is why:
> The client makes an HTTP request to the servlet which then uses the
> RequestDispatcher to Forward the request to the jsp page.
> Because he is
> using the
> request dispatcher and not response.sendRedirect() there is
> no response back
> to the
> client from the servlet. This means that the header that the
> jsp has access
> to is
> the same header that the servlet had access to (only one HTTP
> request means
> only
> one HTTP header). Thus request.getHeader("referer") will
> return the URI of
> the page
> that referred the client to the servlet.
>
> Why don't you want to set an attribute?
>
> Shawn Zhu wrote:
>
> > use request.getHeader()
> >
> > > -Original Message-
> > > From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, April 26, 2001 10:52 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: How to get URL of the original servlet after
> forwarding to a
> > > JSP page?
> > >
> > >
> > >  Hi all,
> > >
> > >  I have forwarded from a servlet to a JSP page using
> > > RequestDispatcher.forward(). In the JSP page, I want to get
> > > the original URL
> > > (the URL of the servlet). And I don't want to use
> > > request.setAttribute() in
> > > the servlet. Is there any way to get the servlet's URL from
> > > JSP page? I have
> > > tried using request.getRequestURI() but it returns the URI of
> > > JSP page.
> > >
> > >  Thanks in advance!
> > >
> > >  Thai
> > >
> > > ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > > "signoff JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > > JSP-INTEREST DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> --
> Erik I Morton
> Software Developer
> --
> CommerceHub
> http://www.commercehub.com
> 518-886-0704
> 21 Corporate Drive
> Clifton Park, NY 12065
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: How to get URL of the original servlet after forwarding to aJ SP page?

2001-04-27 Thread Shawn Zhu

Oh yeah, that's right, I overlooked that fact.  You are
right.  It works when it was a sendredirect, not forward.

In that case, she can either use sendredirect, or stay with
request setAttribute (I wonder why she doesn't want to use this
method).

> -Original Message-
> From: erik morton [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 1:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get URL of the original servlet after
> forwarding to
> aJSP page?
>
>
> Actually I don't think that this will work. Here is why:
> The client makes an HTTP request to the servlet which then uses the
> RequestDispatcher to Forward the request to the jsp page.
> Because he is using the
> request dispatcher and not response.sendRedirect() there is
> no response back to the
> client from the servlet. This means that the header that the
> jsp has access to is
> the same header that the servlet had access to (only one HTTP
> request means only
> one HTTP header). Thus request.getHeader("referer") will
> return the URI of the page
> that referred the client to the servlet.
>
> Why don't you want to set an attribute?
>
> Shawn Zhu wrote:
>
> > use request.getHeader()
> >
> > > -Original Message-
> > > From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, April 26, 2001 10:52 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: How to get URL of the original servlet after
> forwarding to a
> > > JSP page?
> > >
> > >
> > >  Hi all,
> > >
> > >  I have forwarded from a servlet to a JSP page using
> > > RequestDispatcher.forward(). In the JSP page, I want to get
> > > the original URL
> > > (the URL of the servlet). And I don't want to use
> > > request.setAttribute() in
> > > the servlet. Is there any way to get the servlet's URL from
> > > JSP page? I have
> > > tried using request.getRequestURI() but it returns the URI of
> > > JSP page.
> > >
> > >  Thanks in advance!
> > >
> > >  Thai
> > >
> > > ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > > "signoff JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > > JSP-INTEREST DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> --
> Erik I Morton
> Software Developer
> --
> CommerceHub
> http://www.commercehub.com
> 518-886-0704
> 21 Corporate Drive
> Clifton Park, NY 12065
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: How to get URL of the original servlet after forwarding to a JSP page?

2001-04-27 Thread Shawn Zhu

use request.getHeader()

> -Original Message-
> From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 10:52 PM
> To: [EMAIL PROTECTED]
> Subject: How to get URL of the original servlet after forwarding to a
> JSP page?
>
>
>  Hi all,
>
>  I have forwarded from a servlet to a JSP page using
> RequestDispatcher.forward(). In the JSP page, I want to get
> the original URL
> (the URL of the servlet). And I don't want to use
> request.setAttribute() in
> the servlet. Is there any way to get the servlet's URL from
> JSP page? I have
> tried using request.getRequestURI() but it returns the URI of
> JSP page.
>
>  Thanks in advance!
>
>  Thai
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Sessions in Servlets

2001-04-26 Thread Shawn Zhu

Just define the variable first.
HttpSession Session;

then use it.

> -Original Message-
> From: drew w [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: Sessions in Servlets
>
>
> I can access sessions in JSP. But I can't seem to write or
> read them in my
> servlet. Is this possible. Here is the code:
>
> session.setAttribute( "blnIsLoggedIn", true );
>
> Error:
> Undefined variable or class name.
>
> I am importing:
> import java.io.*;
> import java.util.*;
> import javax.servlet.*;
>
> I also tried import javax.servlet.http.HttpServlet; and I get the same
> error. Am I missing an import?
>
> thanks,
> andrew
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Error: Attempt to reference method in interface ...

2001-04-26 Thread Shawn Zhu

Are the following two statements really the same?

if("a".equals(avar))
if(avar!=null && avar.equals("a"))


> -Original Message-
> From: Richard Yee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 2:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Error: Attempt to reference method in interface ...
>
>
> Drew,
> This line:
> if (request.getParameter.equalsIgnoreCase("andrew")){
>
> should be
> if (request.getParameter("username").equalsIgnoreCase("andrew")){
>
> you would be better off using
> if ("andrew".equalsIgnoreCase(request.getParameter("username"))){
> because this code won't throw a NullPointerException if the
> "username" field
> doesn't exist.
>
> -Richard
>
>
> -Original Message-
> From: drew w [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 1:41 PM
> To: [EMAIL PROTECTED]
> Subject: Error: Attempt to reference method in interface ...
>
>
> if (request.getParameter.equalsIgnoreCase("andrew")){
>   pw.print("you are logged in "+
> request.getParameter("username") +"
> "+ request.getParameter("password"));
>}
> else{ pw.print("you are not logged in "+
> request.getParameter("username") +" "+
> request.getParameter("password"));}
>
> Error: Attempt to reference method getParameter in interface
> javax.servlet.ServletRequest as an instnance veriable.
>
> if (request.getParameter.equalsIgnoreCase("andrew")){
>^
>
> Can anyone help?
>
> Thanks,
> andrew
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Who is using it , notification ??

2001-04-25 Thread Shawn Zhu

This can not be done.  Not do-able.

> -Original Message-
> From: sufi malak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 8:32 AM
> To: [EMAIL PROTECTED]
> Subject: Who is using it , notification ??
>
>
> if you are giving a CD that has some multimudia or art works
> or anything,
> the content of the CD can be used with or without the browser
> (for example
> mp3...), How could we know when someone who get the CD, and
> start using it,
> how can we get his/her ip address, or just know how many
> times our CD is
> used.
>
> The user who is using the CD, is supposed connected to the
> internet, we
> don't want a dialog box, or the browser to open up, we want
> this happened
> without the user know.
>
> Thanks for your help.
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Jar doesn't behave correctly

2001-04-24 Thread Shawn Zhu

Hi,
  when I do "jar xvf0 some.jar a.class" to update a.class in some.jar file.
I wanted to keep the jar file uncompressed, however, jar will always
compress
the rest of the jar file but stores a.class only.
  Is it possible with jar to update a jar file and not change it's
compression
method?  That is, the some.jar file was originally stored with no
compression, I
just want to update one of the class files in the jar file and leave the
content
as it was.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: How can I pass the value of a session to an interface

2001-04-24 Thread Shawn Zhu

If String Session is a member variable of the class.
declare your function as
... showStatus() {
if(this.Session!=null) {
...
}
...
}
> -Original Message-
> From: drew w [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 24, 2001 11:35 AM
> To: [EMAIL PROTECTED]
> Subject: How can I pass the value of a session to an interface
>
>
> I have a interface that I want to use to format messages.
>
> For example if there is an error:
> I will assign it to a session, redirect to display. On this
> page, I call the
> formatting function from the interface to show the contents
> of the session
> in RED.
>
> In my interface I write:
>
> import javax.http.servlet.HttpServletRequest;
> public interface CommonFunctions{
>   String Session = (String) session.getAttribute("STATUS");
>
>   public void ShowStatus(String Session){
>if (Session != null){
>out.println(""+Session+"");
>}
>   }
> }
>
> How can I pass the value of the session to the ShowStatus function?
>
>
>
> Thanks,
> Andrew
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: urgent help needed on checkbox property!!!!

2001-04-13 Thread Shawn Zhu

I had to ask, what kinda of service does TCS offer?

> -Original Message-
> From: Agarwal, Shekhar (MED, TCS America)
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: urgent help needed on checkbox property
>
>
> hi all
> i need a javascript function invoking which we can either mark a check
> or a cross on a select box .(X or a check mark)
> can anyone help me
>
> SHEKHAR  AGARWAL
> TATA CONSULTANCY SERVICES
> Email : [EMAIL PROTECTED]
> Tel:  268-548-2592 (work)
> 262-798-1052 (home)
>
>
>
>
> -Original Message-
> From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: OT:java.io.StreamCorruptedException
>
>
> hi.
> I am storing serialized objects in a file on my machine..
> when i read back the objects from file, it perfectly displays
> properties
> of
> object which is read first but when it tries to read second object, it
> gives
> me java.io.StreamCorruptedException.. I don't know what's the
> problem...
> I appreciate if somebody can help...
> I am in desparate need to solve this...
> Here is the snippet of my code:
> 
> ArrayList al = new ArrayList();
> try{
>while((sge = (SerializableGBEntry)ois.readObject()) != null){
>al.add(sge);
>   }
>   ois.close();
>   fis.close();
> }
> catch(Exception deserializingE){
>   deserializingE.printStackTrace();
>   out.println("the deserializingE exception
> is:"+deserializingE.getMessage());
> }
> 
> TIA...
>
> Nishit Trivedi
> Software Engineer
> Planet Access Networks - An InSage Company
> 973-691-4704 X157
>
> ==
> ==
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Caching problem

2001-04-13 Thread Shawn Zhu

The solution is not good because what if the number of records is huge?
The server will choke just attempting to retrieve them.
Lets say it actually can retrieve the records into memory (after probably
a long time), and you put them in the session.  Then suddenly your
sever will break because there are thousands of (or even just hundreds of)
user accessing the page -- think how much memory it consumes with a large
collection of records...

> -Original Message-
> From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 2:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Caching problem
>
>
> I don't get it.
> These are two conflicting statements you are having:
>
> 1."But i dont want to retrive all record at the same time
> sothat it will take a lot of time for the first time."
>
> 2. "also  not want to
> connect to dastabase for each request for next 25 records."
> Question are:
> 1.How can you get another 25 without connecting AGAIN to db..???
> 2.And how you are going to keep track which one was selected at
> first time and which ones are not...??? (unless you want to
> delete records
> from db as soon as they are selected)
>
> But here is what i think :
> You can use session for it...
> Get all result from db at a shot and store it in an array
> (well if you dont
> know exactly how many records are there then first store it
> in vector and
> then convert that vector into array)
> Now store that array in a session..
> Now when user selects let's say 1 to 25
> records,display records 1 to 25 and so on...
>
> hope this may help you..
> Nishit
>
>
> -Original Message-
> From: Debasis Dash [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 5:13 PM
> To: [EMAIL PROTECTED]
> Subject: Caching problem
>
>
> I am requesting aquery which return 5000 results. But i want
> to show only 25
> record per page. But i dont want to retrive all record at the
> same time
> sothat it will take a lot of time for the first time. also
> not want to
> connect to dastabase for each request for next 25 records.
> How to build the
> caching mechanism for this.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP Vs Servlet

2001-04-11 Thread Shawn Zhu

I think the = and != sign here needs more specific explaination.
Functionality wise, JSP!=Servlet.  Technically JSP=Servlet because
it's one form of Servlet -- When you access a JSP, you are infact
accessing the compiled Servlet version.

> -Original Message-
> From: Jess Holle and Wendy Vidlak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP Vs Servlet
>
>
> Unfortunately, JSP != Servlet.
>
> There is no way one can return binary data from a JSP page
> and remain within
> the spec -- at  least that I am aware of!
>
> Specifically, in a servlet you can access the servlet
> response's output
> *stream*.  In JSP, the spec says that such access is not
> allowed and only
> provides you with *writers*, no output streams.
>
> This means that in order to return a dynamically generated
> JPEG, GIF, etc,
> etc, in a portable way, you have to use a servlet -- not a JSP!
>
> This is a shame since I strongly believe that JSP should be a
> *complete*
> late-binding equivalent to servlets.  Why should one suddenly
> have to switch
> when the output is decided to be binary?  [Yes, I know one
> has to be careful
> not to let whitespace slip into the output -- but this is
> also an issue for
> generating XML, etc, etc, from JSP.]
>
> --
> Jess Holle
>
> -Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Shawn Zhu
> Sent: Wednesday, April 11, 2001 6:24 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP Vs Servlet
>
>
> JSP = Servlet
>
> > -Original Message-
> > From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 11, 2001 3:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: JSP Vs Servlet
> >
> >
> > Hi All,
> >
> > I have a basic doubt. I would like to know in what way "Servlet" is
> > advantageous over "JSP".
> >
> > I feel I can do everything in "JSP" that can be done in Servlet.
> >
> > Is there anything which can't be done by JSP and can be done
> > by Servlet?
> >
> >
> > Thank you
> >
> > Ganesh
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP Vs Servlet

2001-04-11 Thread Shawn Zhu

JSP = Servlet

> -Original Message-
> From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 3:54 PM
> To: [EMAIL PROTECTED]
> Subject: JSP Vs Servlet
>
>
> Hi All,
>
> I have a basic doubt. I would like to know in what way "Servlet" is
> advantageous over "JSP".
>
> I feel I can do everything in "JSP" that can be done in Servlet.
>
> Is there anything which can't be done by JSP and can be done
> by Servlet?
>
>
> Thank you
>
> Ganesh
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: session.getValue - Integer

2001-04-10 Thread Shawn Zhu

the value you put in is a String,
just convert it back to Integer when you retrieve it back
like
Integer pGroupDivCode =
Integer.valueOf(session.getValue("GROUP_DIV_CODE"));

> -Original Message-
> From: Stanley Tan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 4:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: session.getValue - Integer
>
>
> I believe you inserted "100" as ""100"", a String.
>
> Try using session.setAttribute("GROUP_DIV_CODE", new
> Integer(100)) instead.
>
> BTW, putValue is deprecated. :)  Use
> setAttribute/getAttribute instead.
>
> Hope this helps.  If you have further questions, post them!
>
> Stanley Tan
>
> At 07:43 PM 4/10/01 +1000, you wrote:
> >Hi all,
> >
> >I have the following in my JSP - It displays
> "java.lang.ClassCastException"
> >error.
> >Why is this so?
> >
> ><%
> >session.putValue("GROUP_DIV_CODE","100");
> >Integer pGroupDivCode =
> (Integer)(session.getValue("GROUP_DIV_CODE"));
> >%>
> >
> >P.S. I can't use a
> int.parseInt(session.getValue("GROUP_DIV_CODE")) to
> >extract the number out of the session.
> >
> >Regards
> >Will
> >
> >=
> ==
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



do you know the difference?

2001-03-26 Thread Shawn Zhu

Hi in a servlet that takes request and response parameters.
  You can use

request.getRequestDispatcher("somefile.jsp").forward(request,response);
  or

getServletConfig().getServletContext().getRequestDispatcher("somefile.jsp").
forward(request,response);

Are they the same thing?  If they are then I'd assume the later is used
if you don't have request object handy in that function.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



difference between sendRedirect and forward

2001-03-19 Thread Shawn Zhu

What's the difference between sendRedirect and requestDispatcher.forward (or
)?

Is it getHeader("referer") will return different values?

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: PRINT UTILITY PROGRAM

2001-03-08 Thread Shawn Zhu

I am trying to understand why don't you like javascript function for
printing the page.  It's a simple online code.  Are you just trying to
do everything in Java only?

> -Original Message-
> From: Agarwal, Shekhar (MED, TCS America)
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 08, 2001 12:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: PRINT UTILITY PROGRAM
>
>
> thankx prasad'
> is there any java program (core java)rather than a javascript function
> for printing the page???...
> regds
> shekhar
>
> SHEKHAR AGARWAL (B.TECH)
> TATA CONSULTANCY SERVICES
> Email : [EMAIL PROTECTED] 
> Tel:  268-548-2592 (work)
>262-798-1052 (home)
>
>
> -Original Message-
> From: Gowda, Prasad [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 08, 2001 1:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: PRINT UTILITY PROGRAM
>
>
> use the javascript method  -- window.print()
>
> > -Original Message-
> > From: Agarwal, Shekhar (MED, TCS America)
> > [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, March 08, 2001 12:25 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  PRINT UTILITY PROGRAM
> >
> > hi
> > i have print button in a jsp,on clicking the button i want
> the page to
> > be printed.its functionality should be same as the print
> button on the
> > browser.
> > i want a program module written in java that can print the current
> page.
> > can anyone help me ???
> > regards
> >
> > SHEKHAR
> > SHEKHAR AGARWAL (B.TECH)
> > Email : [EMAIL PROTECTED]
> 
> >
> >
> ==
> ==
> ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> ==
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Form submission clears request attributes

2001-02-27 Thread Shawn Zhu

I know what you are saying...
so would you know anyway around this other
than use Session?

I have the form need to submit, but also want to
forward some request attributes.  I guess I can
only put them in hidden forms...

> -Original Message-
> From: ??? [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 27, 2001 5:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Form submission clears request attributes
>
>
> I think your request object is page scope,
>
> For you didn't use forward()
>
> request object in out of scope.
>
> so in your servlet exists nowhere...
>
> I hope this could help you!!
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Form submission clears request attributes

2001-02-27 Thread Shawn Zhu

Hi correct me if I am wrong.  This is what I concluded from
experience...

If I have a form.jsp file that has action calling a servlet
(handleform.srv).
whatever request.setAttribute I've done in the form.jsp will not get passed
to handleform.srv.

For example:

Form.jsp:
<%
request.setAttribute("name", "test");
%>

..

Handleform.srv:
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
String name = (String) request.getAttribute("name");
...
}

In Handleform.srv, name will be null.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



suggestion: a way to encourage better questions

2001-02-21 Thread Shawn Zhu

All these fuss about about off-topic questions.
The problem is definitely two sided: one side is
people who are lazy and are lack of investigative
motivation; the other side is people who are being
impatient and sometimes arrogant. =)

The fact is that some off-topic questions can be
helpful/informative, however, an increased amount of
those non-sense or if-you-just-think-about-it-alittle, or
put-in-a-bit-investigation-you'll-know type of question
becomes annoying.

So in order to discourage people posting moronic questions,
if you don't like it, just simply ignore it; from time to time
the people will realize they can't get any answers here and will
definitely look elsewhere.

If you feel the question can be easily answered with a bit reading
and you know where it is, just give a URL without any comment;
Doing this will make the questioner ask more questions and consequently
will not get any more answers from anyone, then he/she will start
looking at the link and try to find his/her solution. (and hopefully,
this will train them to be more self-motivated)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: difference between variable declared using <%! %> and <% %>

2001-02-20 Thread Shawn Zhu

Is it, in other words, <% static int a; %> achieves the same thing as
<%! int a;%> but with safe threading?

> -Original Message-
> From: Robert Nicholson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: difference between variable declared using <%!
> %> and <% %>
>
>
> You shouldn't use <%! to declare variables because they will end up as
> instance variables and not "automatic" variables that exist
> only for the
> life time of the _jsp_service method.
>
> <%! will end up in a Servlet as instance variables.
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification
> and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Dave Deniman
> > Sent: Tuesday, February 20, 2001 5:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: difference between variable declared using <%!
> %> and <% %>
> >
> >
> > Geert,
> >
> > You are listed as a contributor to the book Professional JSP, by
> > Wrox Press.
> > On page 32 of that book, it clearly describes <%! %> as enclosing a
> > declaration block for variables and methods. The only fault I see
> > in Surya's
> > explanation below is not further explaining what is meant
> by "valid in the
> > page scripting language," or explaining the scope of
> declarations in the
> > block and the JSP relationship.
> >
> > Is it possible you are making reference to the concurrency
> problems when
> > using the declaration scripting element in JSP vs. Servlets? Of
> > course, the
> > original inquiry from Kishor did not state whether he was
> using a Servlet.
> > And then too, this becomes an implementation design issue
> as opposed to a
> > simple functionality issue.
> >
> > Perhaps the book is in error. Please clarify what you mean
> by, "<%! %> is
> > NOT meant to declare variables."
> >
> > Thanks,
> > Dave Deniman
> >
> > - Original Message -
> > From: "Da-Ming Duan" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 20, 2001 4:49 PM
> > Subject: Re: difference between variable declared using <%!
> %> and <% %>
> >
> >
> > : Discussion is always welcome!  Geert, can you please explain the
> > difference? I
> > : believe you can.
> > :
> > : DMD
> > :
> > : Geert Van Damme wrote:
> > :
> > : > NO  NO NO
> > : >
> > : > If you don't know what <%! %> exactly does. Don't use it.
> > : > And you apparently don't know it.
> > : >
> > : > <%! %> is NOT meant to declare variables.
> > : >
> > : > Again an example of a really bad post. If you don't
> know it. Please,
> > don't
> > : > answer, or at least specify that it's only a wild guess
> > : >
> > : > Geert Van Damme
> > : >
> > : > > -Original Message-
> > : > > From: A mailing list about Java Server Pages specification and
> > reference
> > : > > [mailto:[EMAIL PROTECTED]]On Behalf Of Surya Prakash
> > : > > Sent: maandag 19 februari 2001 9:59
> > : > > To: [EMAIL PROTECTED]
> > : > > Subject: Re: difference between variable declared using <%!
> > %> and <%
> > %>
> > : > >
> > : > >
> > : > > hi kishor
> > : > > <%! %> it declares variables or methods valid in
> > : > > the page scripting language
> > : > > <%%> contains a codefragment valid in the page scripting
> > : > > language
> > : > > this may help u
> > : > > surya
> > : > > - Original Message -
> > : > > From: "Kishor K" <[EMAIL PROTECTED]>
> > : > > To: <[EMAIL PROTECTED]>
> > : > > Sent: Monday, February 19, 2001 9:34 AM
> > : > > Subject: difference between variable declared using
> <%! %> and <% %>
> > : > >
> > : > >
> > : > > > hi,
> > : > > >
> > : > > > can anyone tell me the difference between variable
> declared using
> > <%! %>
> > : > > and
> > : > > > <% %>
> > : > > >
> > : > > > thanx in advance
> > : > > > kishor
> > : > > >
> > : > > >
> > : > > > _
> > : > > > Do You Yahoo!?
> > : > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > : > > >
> > : > > >
> > : > >
> ==
> > : > > =
> > : > > > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> > : > > JSP-INTEREST".
> > : > > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST
> > : > > DIGEST".
> > : > > > Some relevant FAQs on JSP/Servlets can be found at:
> > : > > >
> > : > > >  http://java.sun.com/products/jsp/faq.html
> > : > > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > : > > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > : > > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > : > >
> > : > >
> ==
> > : > > =
> > : > > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> > : > > JSP-INTEREST".
> > : > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > : > > JSP-INTEREST DIGEST".
> > : > > Some relevant FAQs on JSP/Servlets can be found at:
> > : > >
> 

Re: How to display x rows out of n with back/next buttons.

2001-02-20 Thread Shawn Zhu

Alot people has asked this question over and over again.

And there are a few solutions for this.

If your data sets are small then it's better to store all returned records
in a bean and handle the prev and next with a index.  (Save SQL query
overhead)

However if you anticipate using prev/next then your data sets must intend
to be really big.  People have suggested storing unique key and query the
Database each time pre/next is requested.

It's a memory and performance trade-off.  Does anyone have a good solution
for this?

> -Original Message-
> From: soumya Govardhana [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: How to display x rows out of n with back/next buttons.
>
>
> Hi All,
>   How to display x rows out of n rows retrieved from sql
> query to database with back/next buttons? I need this
> behavior for my diiferent pages/modules where I fire
> different query and may get different (no of) columns from
> data base. Some suggested CacheableRowsets and some suggested
> a hashtable/vector solutions. But I what a proper solution
> which is faster and applicable to all my modules. Example is
> better. I couldn't find similar ADO control for ASP. I tried
> in many sites, but vain.
> Help me out.
> Thanks.
> Soumya.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Using session

2001-02-16 Thread Shawn Zhu

I know why, you should use

instead of


> -Original Message-
> From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 3:18 PM
> To: [EMAIL PROTECTED]
> Subject: Using session
>
>
> Hi All,
>
> I am developing an application that requires secured login
> where the page
> should not be reached without logging.
> I have a common jsp that has the following scriptlet and also
> includes the
> logo and other header information that has to be displayed.
> common.jsp
> <%
> javax.servlet.http.HttpSession sess = request.getSession(false);
> if ( sess.isNew() )
>   {
>System.out.println("Session new");
>response.sendRedirect("/login.jsp");
>return;
>   }
>   else
> System.out.println("Session not new");
>   if ( sess.getValue("user")==null )
>   {
>System.out.println("userid is null");
>response.sendRedirect("/login.jsp");
>return;
>   }
> %>
>
> I include this jsp in all my other JSP's as
> 
> When I try to invoke a page directly by typing the url, I get
> the above
> println statements
> correctly("Session new" and "userid is null"), the included
> common.jsp page
> is not displayed but the rest of the page is displayed. The
> conrol doesn't
> go to the login.jsp. But when I invoke the common.jsp
> directly, the control
> does go to the login.jsp page.
>
> Am I missing something ? Is this possible or I have to
> include a similar
> scriptlet in every jsp that I write.
>
> Thanks in advance
> JS
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Help !! - Forcing an event

2001-02-14 Thread Shawn Zhu

This will change your selection from 1->2->3->1:
By the way if I were asked this in an interview I won't be able to come up
with this, so what does this tell?  I actually had to check the JavaScript
syntax online, but it totalled
about 2 minutes for the solution.




function ChangeVal(a) {
document.aform.hi.selectedIndex=(a+1)%3;
}





1
2
3







> -Original Message-
> From: João Mota [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 14, 2001 12:07 PM
> To: [EMAIL PROTECTED]
> Subject: Help !! - Forcing an event
>
>
> Hi all,
>
>  I have a problem in a SELECT tag
>
>  I have
>   
>  1 
> 2  3 
>
>  and i want to exchange from from one value to the
> others, but when i
> select 3 i want the list box to show 1, but not duplicating
> the values in
> the box.
>
>  Since when i select 3 the box shows 3, i need to force
> an event so the
> box will show the 1 value.
>
> thx,
>
>  J
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: A little Grasshopper + JSP ???

2001-02-13 Thread Shawn Zhu

However, dbg consulting sounds like all about money and lots of howevers.
lol
Joe, don't you be discouraged, the company knows you are still learning and
in school with other stuff...

> -Original Message-
> From: dbg consulting [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: A little Grasshopper + JSP ???
>
>
> Joe, isn't it a little curious to the company that in order
> to deliver an
> example that should have taken a week, it's taken you months?
>
> Additionally, it took you months to get the server and servlet engine
> running.
>
> I'm not sure how that looks to this company, however they may
> be thinking
> twice about hiring you.
>
> This is not the end of the world, however.  If you know they
> have a need,
> you can still deliver the application.  However, I'm sure
> they don't have
> much confidence in you.
>
> I am an independent contractor and have been coding server
> side java using
> j2ee for years and can help you.  However, this sounds like
> something that
> would involve alot of time and that means that you should
> consider using
> professionals and billing for it.
>
>
> >From: Jsp Joe <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: A little Grasshopper + JSP ???
> >Date: Mon, 12 Feb 2001 23:40:04 +0530
> >
> >Hi,
> >
> >Everybody's heard of the story of the grasshopper who sang all
> >summer...well time to meet one.
> >
> >Whats this to do with JSP, I hear you ask.its a long story.
> >
> >It all starts off with project that I have to do as my final year
> >engineering project. Me and my group contact this
> company who agree to
> >give us a project. Before that they ask us to learn JSP and
> do a small
> >program and submit within a week. That was 8 mths ago.
> >
> >After that starts  a saga of downloading Apache web server,
> Tomcat, Java
> >engines...and actually tryin to set them up on my Celeron
> 466Well 2
> >mths
> >and a lot of mails, JUGS, Boards later.I finally get
> JSWDK-1.0.1  up
> >and
> >runnin...then the exam dates are announced.so its
> bye bye project
> >..down to the books...
> >
> >I study for my exams and decide that as soon as the exams
> are over i am
> >gonna dive right into making this small example for the
> company guyz  so
> >that we can at least start the project...but a few days
> before the exams
> >..NEWS: Exams postponed..
> >
> >Well the exams finally got over a month ago. and i get
> working on  a
> >small JSP prog using beans..A month later..here I
> amfrustruated,
> >depressed...looking for one last hope...
> >
> >If you are wondering where exactly are the other members of my group
> >through
> >all this.beats methe poor ppls proggramming
> knowledge is limited to
> >a very basic C so even if they wanted to they wouldn't be of
> very much
> >help.
> >
> >Now I really need to do this project well..because after I
> finish this I
> >want to work in the same company  Its like my dream place to work
> >in.small place..but so much potential for growth
> >
> >So, I need a messiah..
> >
> >Someone to help me get done in a couple of months what was
> supposed to have
> >been done over a period of 6 mths...
> >
> >If there is someone out there who is willing to help this
> poor grasshopper
> >in need...I'll be indebted to them all my life...I'll
> clean your floors
> >.do the dishes..anything.JUST HELP ME!!
> >
> >=
> ==
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTERE

Re: A little Grasshopper + JSP ???

2001-02-12 Thread Shawn Zhu

talking about Forte for J, it seems abit better than Jbuilder IMHO.

Daryani, did you ever use Forte's compile all function?  It seems that
it will stop compiling the rest of the .java files in the project if
it encounter some errors compiling the first few.  Is there a way to
have it continue to compile the rest of the files in the project?

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: A little Grasshopper + JSP ???
>
>
> Joe,
> We can surely help you out. The softwares you need will be
> An JSP/Servlet Container
> A Web Server
> JDK
> IDE - an interface for writing java programs , jsps and servlets.
>
> You can get the latest JDK from the sun site at java.sun.com
> , also download the
> documentation
>
> For a web server if you are using microsoft as your platform
> you can Personal
> Web Server or IIS.
> If you want to go with free ware you can get Apache Web server.
>
> Finally getting a JSP/Servlet container.
> There are a lot of containers available for free , most of
> them also have a
> specific forum that addresses
> their installation , troubleshooting and configuration issues.
>
> This is a decision you have to make. Some of the popular and
> easy to configure
> engines are Tomcat and JRun
> You can get JRun from allaire web site. JRun as a JSP
> container can use IIS ,
> Personal Web Server , Apache or
> you can use JRun without any web server and use JRun itself
> as a web server.
>
> Tomcat is also pretty good.
>
> For writing JSPs you can get any free development tool like
> Forte , Kawa ,
> Homesite . If you don't like to use an IDE
> directly use Textpad , notepad or any other text editor .
>
> There are a lot of sites that have JSP tutorials , visit some
> useful JSP sites
> JSPInsider.com , JGuru.com , java.sun.com.products/jsp ,
> coreservlets.com.
>
>
>
>
> hope that helps
> Santosh
>
>
>
>
>
>
>
>
> Jsp Joe <[EMAIL PROTECTED]> on 02/12/2001 01:10:04 PM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  A little Grasshopper + JSP ???
>
>
>
> Hi,
>
> Everybody's heard of the story of the grasshopper who sang all
> summer...well time to meet one.
>
> Whats this to do with JSP, I hear you ask.its a long story.
>
> It all starts off with project that I have to do as my final year
> engineering project. Me and my group contact this company
> who agree to
> give us a project. Before that they ask us to learn JSP and do a small
> program and submit within a week. That was 8 mths ago.
>
> After that starts  a saga of downloading Apache web server,
> Tomcat, Java
> engines...and actually tryin to set them up on my Celeron
> 466Well 2 mths
> and a lot of mails, JUGS, Boards later.I finally get
> JSWDK-1.0.1  up and
> runnin...then the exam dates are announced.so its bye
> bye project
> ..down to the books...
>
> I study for my exams and decide that as soon as the exams are
> over i am
> gonna dive right into making this small example for the
> company guyz  so
> that we can at least start the project...but a few days
> before the exams
> ..NEWS: Exams postponed..
>
> Well the exams finally got over a month ago. and i get
> working on  a
> small JSP prog using beans..A month later..here I
> amfrustruated,
> depressed...looking for one last hope...
>
> If you are wondering where exactly are the other members of
> my group through
> all this.beats methe poor ppls proggramming knowledge
> is limited to
> a very basic C so even if they wanted to they wouldn't be of
> very much help.
>
> Now I really need to do this project well..because after I
> finish this I
> want to work in the same company  Its like my dream place to work
> in.small place..but so much potential for growth
>
> So, I need a messiah..
>
> Someone to help me get done in a couple of months what was
> supposed to have
> been done over a period of 6 mths...
>
> If there is someone out there who is willing to help this
> poor grasshopper
> in need...I'll be indebted to them all my life...I'll
> clean your floors
> .do the dishes..anything.JUST HELP ME!!
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe

Re: Java Date Class problem

2001-02-12 Thread Shawn Zhu

hahah...dang, wonder how much his company pays him.
This just need some basic debugging and code reviewing.

Well I guess if you are frustrated you can just over look
certain intricate things.  Forgivable. heh

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 12:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Java Date Class problem
>
>
> check your for loop , it says i=1 , i < 27 ofcourse it will
> print 25 values ,
> change your for loop terminating condition
>
> Santosh
>
>
>
>
>
>
>
>
> Senaka Suriyaarachchi <[EMAIL PROTECTED]> on
> 12/22/2000 03:15:37 AM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  Java Date Class problem
>
>
>
> Hi All
> I tried to show drop down list with next 30 dates. but it
> doesn't work. It
> correctly add up to 25 days after that it show previous days.
> Please advice
> me.
>
> BR
> Senaka
>
>
> 
> <%@ page language="java" import="java.sql.*, java.util.Date"%>
> 
> 
> 
> Untitled
> 
>
> 
> <%
> Date nd = new Date();
> long lnd = nd.getTime();
> Date todate = new Date(lnd);
> String today = todate.toString();
> java.sql.Date dbday = new  java.sql.Date(lnd);
> long lndnew = lnd;
> %>
> 
> 
> 
> Reservation Date
> 
> <% for(int i=1; i<27; i++){%>
> <%= (new
> java.sql.Date(lndnew + i*24*60*60*1000))%>
> <% }%>
> 
> 
>  value="Reserv">
> 
> 
> 
>
> 
> 
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: A little Grasshopper + JSP ???

2001-02-12 Thread Shawn Zhu

empty promises...And the fact you alienate your group mates
shows that you are not a team player.  Plus, you have very
little confidence in your teammates which is a reflection
of lack of self-confidence. =)

Anyway, OO programming is about divide and conquer.  Hey I
just want to critisize, everyone does!  haha.

> -Original Message-
> From: Jsp Joe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: A little Grasshopper + JSP ???
>
>
> Hi,
>
> Everybody's heard of the story of the grasshopper who sang all
> summer...well time to meet one.
>
> Whats this to do with JSP, I hear you ask.its a long story.
>
> It all starts off with project that I have to do as my final year
> engineering project. Me and my group contact this company
> who agree to
> give us a project. Before that they ask us to learn JSP and do a small
> program and submit within a week. That was 8 mths ago.
>
> After that starts  a saga of downloading Apache web server,
> Tomcat, Java
> engines...and actually tryin to set them up on my Celeron
> 466Well 2 mths
> and a lot of mails, JUGS, Boards later.I finally get
> JSWDK-1.0.1  up and
> runnin...then the exam dates are announced.so its bye
> bye project
> ..down to the books...
>
> I study for my exams and decide that as soon as the exams are
> over i am
> gonna dive right into making this small example for the
> company guyz  so
> that we can at least start the project...but a few days
> before the exams
> ..NEWS: Exams postponed..
>
> Well the exams finally got over a month ago. and i get
> working on  a
> small JSP prog using beans..A month later..here I
> amfrustruated,
> depressed...looking for one last hope...
>
> If you are wondering where exactly are the other members of
> my group through
> all this.beats methe poor ppls proggramming knowledge
> is limited to
> a very basic C so even if they wanted to they wouldn't be of
> very much help.
>
> Now I really need to do this project well..because after I
> finish this I
> want to work in the same company  Its like my dream place to work
> in.small place..but so much potential for growth
>
> So, I need a messiah..
>
> Someone to help me get done in a couple of months what was
> supposed to have
> been done over a period of 6 mths...
>
> If there is someone out there who is willing to help this
> poor grasshopper
> in need...I'll be indebted to them all my life...I'll
> clean your floors
> .do the dishes..anything.JUST HELP ME!!
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: doubt on jsp:usebean

2001-02-09 Thread Shawn Zhu

put our brains for/on/in what??? =)
And your question or rather statement sounds more like a statement rather
than a doubt. lol.

anyway, I believe that class will be instantiated for each client.

> -Original Message-
> From: Raghu Movva [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 09, 2001 3:52 AM
> To: [EMAIL PROTECTED]
> Subject: doubt on jsp:usebean
>
>
> Hi jsp gurus,
> I have one doubt.  If I call a java bean using
> , will
> that class be created only once or will it be created of each
> and every
> client.  Jsp gurus please put ur brains.
> Regards
> Raghu
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem in using out.println in method

2001-02-06 Thread Shawn Zhu

No need to do that, Wayne. =)

Just redefine your public method to include the (JspWriter out)
<%! void aF(JspWriter out){
out.println("testing");
}
%>
...
<% aF(out); %>

> -Original Message-
> From: Ravi Prashanth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 06, 2001 8:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: problem in using out.println in method
>
>
> Cut'n'paste and email me your code and I will have a look at it.
>
> Its mostly a syntax problem.
>
> Ravi
> 
> Are you an XPERT in what you do ?
> Write articles for us in return for some
> free Publicity. Click the link below :-
> http://CyberConneXions.com/Articles
> 
>
>
> At 04:59 AM 2/6/01 +, you wrote:
> >Hi,
> > I had declared a public method in a JSP page and that
> method only
> >do "out.println("Testing");", but when i call that method, i
> got the error
> >message saying that out is undefined or not declared...
> > Can anyone please help me? Thanks.
> >
> >regards,
> >Wayne
> >
> >-
> >Everyone should have http://www.freedom2surf.net/
> >
> >=
> ==
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Can anyone tell me how to unsubscribe?

2001-02-06 Thread Shawn Zhu

lol, Ross, go to archives.java.sun.com, and search for
"how to unsubscribe jsp-interest group"

Actually better yet, just do a search on this email and
find all occurrances of "unsubscribe", you'll find your
answer. =D

> -Original Message-
> From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 06, 2001 8:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Can anyone tell me how to unsubscribe?
>
>
> Ross,
>
> I will suggest u a way.
>
> Go to http://archives.java.sun.com/archives/jsp-interest.html
>
> You can find a link to "Join or Leave the List".
>
> This is the only way u can "Unsubscribe" i think.
>
> Ganesh
>
>
> -Original Message-
> From: Ross L [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 06, 2001 10:03 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Can anyone tell me how to unsubscribe?
>
>
> I forget to mention that the method in the bottom
> of the e-mail is not working.
> Let me refraze it - how do I contact SA. ?
>
>
> >From: Arun Thomas <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: RE: Can  anyone tell me how to unsubscribe?
> >Date: Mon, 5 Feb 2001 17:31:30 -0800
> >
> >Yes
> >
> >See your email:
> >
> >-AMT
> >
> >-Original Message-
> >From: Ross L [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, February 05, 2001 5:02 PM
> >To: [EMAIL PROTECTED]
> >Subject: Can anyone tell me how to unsubscribe?
> >
> >
> > >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > >JSP-INTEREST".
> >
> >
> >
> >=
> >Warning:  All e-mail messages sent to or from this address
> are recorded by
> >the iPIN corporate e-mail system and may be subject to
> archival and review.
> >Furthermore, information in this e-mail may contain privileged or
> >confidential information and is intended only for the
> recipient.  If you
> >receive this message in error, notify iPIN immediately by
> replying to this
> >message and then deleting it from your computer.  Any
> information in this
> >e-mail doesn't necessarily reflect the views or opinions of iPIN.
> >.
> >
> >
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Why use Java beans ?

2001-01-18 Thread Shawn Zhu

This question seem to come up over and over in this
list...JavaBeans are classes!

> -Original Message-
> From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 18, 2001 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: Why use Java beans ?
>
>
> Hi,
>
> Could someone please explain the following to me:
>
> What is the advantage of using JavaBeans with servlets and
> JSPs when the
> same
> result could be obtained by common classes ?
>
> This might be a basic question, but any elaboration would be greatly
> appreciated.
>
> Thanks
> JS
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Re : how to show timezone specific time

2001-01-16 Thread Shawn Zhu

What do you mean a nightmare to work with?  It seems simple enough from
the code snippet.  I think it'd be better to get the system timezone rather
than hardcoding "CST".

> -Original Message-
> From: Bhushan Bhangale [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re : how to show timezone specific time
>
>
> Hi All
>
> I did this after a good amount of R&D or you can say hit and
> trial, here is the code snippet
>
> Calendar c =
> Calendar.getInstance(TimeZone.getTimeZone("CST"), new
> Locale("en", "US");
> c.setTime(new java.util.Date());
> Calendar c1 = Calendar.getInstance();
> c1.set(c.get(c.YEAR), c.get(c.MONTH), c.get(c.DAY_OF_MONTH),
> c.get(c.HOUR_OF_DAY), c.get(c.MINUTE), c.get(c.SECOND));
> System.out.println(c1.getTime());
>
> It works fine. The java date classes are really a nightmare
> to work with.
>
>
> Thanks & Regards
> Bhushan Bhangale
> Consultant
> http://www.netacross.com
> Chequemail.com - a free web based e-mail service that also pays!!!
> http://www.chequemail.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: << Passing JSP Variables to Java Script !!>>

2001-01-12 Thread Shawn Zhu

window.open(<%=forwardURL%>);
or
define a javascript variable:

var strForwardURL;
window.open(strForwardURL);

And assign it later in the code.
strForwardURL = <%=forwardURL%>;

> -Original Message-
> From: Kevin Citron [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 3:13 PM
> To: [EMAIL PROTECTED]
> Subject: << Passing JSP Variables to Java Script !!>>
>
>
> Does anyone know how to pass variable defined in JSP to a JavaScript
> function.
>
> Specifically. what I'm trying to do is something like this.
>
> //: In JSP
> forwardURL = aRequest.getParameter("forwardURL");
>
> //: In JavaScript
> window.open(forwardURL0;
>
>
> Thanks in advance.
>
> -Original Message-
> From: Frank Carlos [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 08, 2001 5:27 PM
> To: [EMAIL PROTECTED]
> Subject: Building servlets with session tracking and JSP
>
>
> Here's a new tutorial that teaches techniques for building Internet
> applications using servlet and JSP technology. A key point is
> to enable
> session handling, so the servlet knows which user is doing what. The
> tutorial shows a URL bookmarking system in which multiple
> users access a
> system to add, remove, and update an HTML listing of
> bookmarks. The servlet
> uses JSP technology to handle the user interaction... Servlet
> JSP Tutorial:
> http://www-105.ibm.com/developerworks/education.nsf/java-onlin
ecourse-bytitl
e/80CC54124F0ABE25862569B300554AFB?Open&l=95,t=gr,p=Servlet-JSP-Tracking

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: How to set resultSet size

2001-01-02 Thread Shawn Zhu

Change your query to "Select top 100 * from ..." returns the first 100
records.

> -Original Message-
> From: List Resident [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 02, 2001 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to set resultSet size
>
>
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
>
> "S. Chen" wrote:
>  >
>  > String query = "select * from table1 order by trans_date desc";
>  > [...]
>  > while (rs.next()&& count <100) {
>  > [...]
>  >
>  > The problem is soon enough there will be over 10,000
>  > transactions in the database.  If I do it this way, it will be
>  > not efficient.  so I want to use the method setFetchSize(100).
>
> This isn't inefficient on most databases. You've paid the price
> of the ORDER BY clause, and for most real DBMSes the code you
> have is fine.
>
> Also, setFetchSize has very little to do with this. The fetch
> size is just an internal performance hint to the JDBC driver, and
> should not be set based on application requirements. The prefetch
> row count should be based on row size, packet size, network
> congestion, etc.
>
> More relevant, perhaps, is setMaxRows, if your driver supports
> it, or SQL equivalents. You should be warned, though, that
> limiting the number of rows returned from a query with an ORDER
> BY clause may not work. In Oracle, for example, the limiting is
> done *before* the sorting. You can check your DBMS documentation
> to see if it supports any performance enhancements for limiting
> result set size that behave properly with ORDER BY, or
> investigate other database-specific tuning, if really necessary.
> Like most performance enhancements, it probably isn't.
>
> John L
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: arrays

2000-12-20 Thread Shawn Zhu

You shouldn't need any additional arrays for this...
Just use your original vector.

Go throught the vector and display any matching entries.
Keep a count of the matching entries found.
If count equals to the number of records the user wants
to see (e.g. 5, 15, or 30) then stop.

> -Original Message-
> From: Shirley Chen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 20, 2000 1:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: arrays
>
>
> Thanks for replying.  But my boss insists that I use array
> because vector
> costs more memory and time.
>
>
>
> >From: Shawn Zhu <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: arrays
> >Date: Wed, 20 Dec 2000 13:06:06 -0800
> >
> >Why don't you just use Vector?
> >
> >Vector v_queryResult = New Vector();
> >...
> >if(tmpString.indexOf('C')!=-1)
> >{
> > v_queryResult.addElement((Object)tmpString);
> >}
> >
> >Then there's no need for Array2.
> >
> >
> > > -Original Message-
> > > From: Shirley Chen [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, December 20, 2000 11:39 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: arrays
> > >
> > >
> > > Hi,
> > >
> > > I have a question, somebody please help me:
> > >
> > > I have a vector which will keep all the names the user typed
> > > in.  Then the
> > > user supposes can do a query like "give me all the name which
> > > starts with
> > > 'C'".  In order to do that, I do something like this:
> > >
> > > ...
> > > String[] array1 = new String[myVector.size()];
> > > String tempString = "";
> > > int j=0;
> > >
> > > for (int i=0; i > > {
> > >tmpString = (String)myVector.get(i);
> > >if (tmpString.indexOf('C') != -1)
> > >   {
> > > array1[j] = tmpString;
> > > j++;
> > >   }
> > > }
> > >
> > > //since array1 may not be filled up with data, I transfer it
> > > to another
> > > String array so I know how many element in the array
> > >
> > > String array2 = new String[j];
> > > for (int i=0; i > > {
> > >array2[i] = array1[i];
> > > }
> > >
> > > // then I will do display. Supposedly, say, array2.length is
> > > 20, if the user
> > > wants to display first 5, I will display only the first 5
> > > records, if the
> > > user wants to display 30, and I will display 20 instead.
> > > ...
> > >
> > > I can display all the situations ok except when myVector
> > > contains the names
> > > that all start with "C" (which means array2.length should be
> > > myVector.size()). then the program will crash.  I think it
> > > might be array
> > > out of bound problem, but I don't know how to fix it.
> Please help me.
> > > _
> > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > >
> > > ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > > "signoff JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> > > JSP-INTEREST DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >=
> ==
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> _

Re: passing data between pages

2000-12-20 Thread Shawn Zhu

post method.

> -Original Message-
> From: matt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 20, 2000 1:22 AM
> To: [EMAIL PROTECTED]
> Subject: passing data between pages
>
>
> whats the best way to send a username and password between jsp pages?
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: arrays

2000-12-20 Thread Shawn Zhu

Why don't you just use Vector?

Vector v_queryResult = New Vector();
...
if(tmpString.indexOf('C')!=-1)
{
v_queryResult.addElement((Object)tmpString);
}

Then there's no need for Array2.


> -Original Message-
> From: Shirley Chen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 20, 2000 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: arrays
>
>
> Hi,
>
> I have a question, somebody please help me:
>
> I have a vector which will keep all the names the user typed
> in.  Then the
> user supposes can do a query like "give me all the name which
> starts with
> 'C'".  In order to do that, I do something like this:
>
> ...
> String[] array1 = new String[myVector.size()];
> String tempString = "";
> int j=0;
>
> for (int i=0; i {
>tmpString = (String)myVector.get(i);
>if (tmpString.indexOf('C') != -1)
>   {
> array1[j] = tmpString;
> j++;
>   }
> }
>
> //since array1 may not be filled up with data, I transfer it
> to another
> String array so I know how many element in the array
>
> String array2 = new String[j];
> for (int i=0; i {
>array2[i] = array1[i];
> }
>
> // then I will do display. Supposedly, say, array2.length is
> 20, if the user
> wants to display first 5, I will display only the first 5
> records, if the
> user wants to display 30, and I will display 20 instead.
> ...
>
> I can display all the situations ok except when myVector
> contains the names
> that all start with "C" (which means array2.length should be
> myVector.size()). then the program will crash.  I think it
> might be array
> out of bound problem, but I don't know how to fix it. Please help me.
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: a little jsp help please

2000-12-19 Thread Shawn Zhu

man, are you new in HTML as well?  I wonder what kinda
company you are working for?

> -Original Message-
> From: Matthew Hafner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 19, 2000 5:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: a little jsp help please
>
>
> selected worked, what if i want to have multiple values selected?
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Steve
> Sent: Tuesday, December 19, 2000 11:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: a little jsp help please
>
>
> Not sure what you mean.
>
> If you want the values in the drop down box to be bold, you
> have to set
> up your jsp to print out  when it populates the  tag.
>
> Now, if you want a particular value *selected* in the  tag you
> can either use jsp to printout the keyword "SELECTEd" in the
> appropiate
> OT or used javascript to select the appropiate value
>
> Steve
>
>
>
> --- Matthew Hafner <[EMAIL PROTECTED]> wrote:
> > im reading values out of a database and populating a form.
> > everything works
> > fine, but, i cant get the values from the database to highlight its
> > corresponding value in a drop down box.  is this possible? or does
> > the user
> > have to reselect this field everytime they view their user profiles?
> >
> > Matthew Hafner
> > Web Applications Engineer
> > Ohana Foundation
> > [EMAIL PROTECTED]
> > (808) 524-0770
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> =
> Steve
> http://www.geocities.com/beforewisdom/
>
> __
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Good JSP Engines

2000-12-18 Thread Shawn Zhu

What's wrong with my Mail?

> -Original Message-
> From: Dylan Rosario [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 2:13 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Good JSP Engines
>
>
> Fix your mail.
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: a jsp file

2000-11-28 Thread Shawn Zhu

Yeah, some server require *flush="true"* and some you
can get away with it.

> -Original Message-
> From: Hernandez, Rey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 28, 2000 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re:  a jsp file
>
>
> No, it should be
> " flush="true" />
>
> The flush="true" was missing making it invalid.
>
> I got burned on this one.
>
> -Original Message-
> From: Antonio W. Lagnada [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 28, 2000 12:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re:  a jsp file
>
>
> It was on a previous posting to use single quotes:
>
> 
>
>
> --
> Antonio W. Lagnada
> Ecommerce Consultant
> [EMAIL PROTECTED]
>
> This email address is specifically
> for JSP-Interest email list.
> Remove _NOSPAM for the actual email.
>
>
>
>  John Bell <[EMAIL PROTECTED]> wrote:
> > I have a jsp page that retrieves rows from a database and shows them
> > on the
> > page.
> > One of the columns is a reference to an image
> >
> > "  >
> >
> > and this image is displayed.
> >
> > Another of the columns is a reference to a file
> "../articles/article.jsp".
> > I want to include this in the page dynamically at runtime as
> >
> > 
> >
> > eg.  "  />  - which
> > of
> > course is illegal
> >
> > - is there any way I can accomplish this please?
> >
> > John
> >
> >
> >
> >
> >
> >
> ==
> =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ___
> To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
> all in one place - sign up today at http://www.zdnetonebox.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: finally, something interesting!

2000-11-27 Thread Shawn Zhu

You are the men Joerg!  So using Method class actually required Reflect.
When I tried this, I forgot to include java.lang.Relfect.

Now is there any C++ experts on this list that can confirm if C++ can
achieve the same?

> -Original Message-
> From: Joerg Meister [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 23, 2000 10:56 PM
> To: [EMAIL PROTECTED]
> Subject: AW: finally, something interesting!
>
>
> Hi,
>
> if you can't use inheritance or a interface, you have to use method
> invokation.
>
> public class Untitled1 {
>
> public static void main(String[] args)
> {
> Untitled1 test1 = new Untitled1();
> }
>
> public Untitled1() {
>
> Object o = new A();
> invokeDoShow(o);
>
> o = new B();
> invokeDoShow(o);
>
> o = new C();
> invokeDoShow(o);
> }
>
> private void invokeDoShow(Object o)
> {
> try {
> // search for the method with no params
> java.lang.reflect.Method m =
> o.getClass().getMethod("doShow",
> new Class[] {});
>
> if (m != null)
> try {
> // invokes the method with no params from
> the given
> object
>   m.invoke(o, new Object[] {});
> } catch (Exception e)
> {
> /* IllegalAccessException - if the
> underlying method is
> inaccessible.
>IllegalArgumentException - if the
> number of actual
> and formal parameters differ, or if an unwrapping conversion fails.
>InvocationTargetException - if the
> underlying method
> throws an exception.
>NullPointerException - if the
> specified object is
> null and the method is an instance method.
>ExceptionInInitializerError - if the
> initialization
> provoked by this method fails. */
> e.printStackTrace();
> }
> } catch (NoSuchMethodException e) {
> e.printStackTrace();
> } catch (SecurityException e) {
> e.printStackTrace();
> }
> }
> }
>
> public class A{
> public void doShow() {
> System.out.println("A.doShow()");
> }
> }
>
> public class B{
> public void doShow() {
> System.out.println("B.doShow()");
> }
> }
>
> public class C{
> public void doShow() {
> System.out.println("C.doShow()");
> }
> }
> }
>
> Hope this helps
>
> Joerg Meister
>
> > -Ursprüngliche Nachricht-
> > Von: A mailing list about Java Server Pages specification
> and reference
> > [mailto:[EMAIL PROTECTED]]Im Auftrag von Shawn Zhu
> > Gesendet: Donnerstag, 23. November 2000 00:17
> > An: [EMAIL PROTECTED]
> > Betreff: Re: finally, something interesting!
> >
> >
> > Yep Namratha, you got 2 of the 3 ways I know.
> > in summary,
> > I can sort of achieve what I asked in the following:
> > 1. interface
> > 2. class inheritance
> > 3. use of "InstanceOf"
> >
> > I've also thought about using Class and Method classes
> > Like Venkatesh had mentioned, however, that does not
> > work out.  Because we'll be looking for a method doShow()
> > when we passed in Object which does not have such an method.
> > It fails at compile time as well.
> >
> > After the above said, now lets say if you were only give
> > Class A, B, And C, i.e. those class all have been created, like
> > those prepackaged classes, you can't change their implementations.
> > Now is it still possible to have a ShowAll method?
> >
> > > -Original Message-
> > > From: Namratha Reddy [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, November 22, 2000 1:54 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: finally, something interesting!
> > >
> > >
> > > You could accomplish this in one of many ways:
> > > 1. Create an interface with the signature of the 'doShow'
> > > method and make the
> > > classes A, B, and C implement this interface.
> > >
> > > 2. Use inheritance: Create a class X and have classes A, B,
> > > and C extend that
> > > class.
> > > and the doShow methods are defined as follows:
> > >   in A:
> > >   doShow()
> > >   {
> > > System.out.println("Doshow method 

Re: finally, something interesting!

2000-11-22 Thread Shawn Zhu

Yep Namratha, you got 2 of the 3 ways I know.
in summary,
I can sort of achieve what I asked in the following:
1. interface
2. class inheritance
3. use of "InstanceOf"

I've also thought about using Class and Method classes
Like Venkatesh had mentioned, however, that does not
work out.  Because we'll be looking for a method doShow()
when we passed in Object which does not have such an method.
It fails at compile time as well.

After the above said, now lets say if you were only give
Class A, B, And C, i.e. those class all have been created, like
those prepackaged classes, you can't change their implementations.
Now is it still possible to have a ShowAll method?

> -Original Message-
> From: Namratha Reddy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 22, 2000 1:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: finally, something interesting!
>
>
> You could accomplish this in one of many ways:
> 1. Create an interface with the signature of the 'doShow'
> method and make the
> classes A, B, and C implement this interface.
>
> 2. Use inheritance: Create a class X and have classes A, B,
> and C extend that
> class.
> and the doShow methods are defined as follows:
>   in A:
>   doShow()
>   {
> System.out.println("Doshow method in Class A");
>   }
>
>   in B:
>   doShow()
>   {
> System.out.println("Doshow method in Class B");
>   }
>
>   in C:
>   doShow()
>   {
> System.out.println("Doshow method in Class C");
>   }
>
> Then in the show method:
>   public void show(X var)
>   {
> var.doShow();
>   }
>
> and in the calling method if you have the following:
>   A var1 = new A();
>   B var2 = new B();
>   C var3 = new C();
>
>   show(var1);
>   show(var2);
>   show(var3);
>
> The output will be as follows:
>   Doshow method in Class A
>   Doshow method in Class B
>   Doshow method in Class C
>
> Hope this helps.
> > Scope: Java
> > Q:
> > if you have three class A, B, and C all have the same
> method doShow();
> > We only know that all inherit from Class Object (like all
> other classes do).
> >
> > Is it possible to have a public function that takes in an
> Class Object that
> > may belong
> > to A, B, or C, and call doShow()?
> >
> > Something conception like:
> >
> > public void show(Object o) {
> > o.doShow();
> > }
> >
> > Of course the above code won't compile.  One way to hack it
> is to use
> > "InstanceOf" (one of the answer) but it's a unclean hack.
> >
> > Anyone has any better ideas?  I thought about going from
> Object.getClass(),
> > but it does
> > not seem to be the way.
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-
> INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> Namratha Reddy
> Staff Consultant
> High Gear Inc.
>
> Phone: (262)814-1660 ext.522
> E-Mail: [EMAIL PROTECTED]
> www.high-gear.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



finally, something interesting!

2000-11-22 Thread Shawn Zhu

Scope: Java
Q:
if you have three class A, B, and C all have the same method doShow();
We only know that all inherit from Class Object (like all other classes do).

Is it possible to have a public function that takes in an Class Object that
may belong
to A, B, or C, and call doShow()?

Something conception like:

public void show(Object o) {
o.doShow();
}

Of course the above code won't compile.  One way to hack it is to use
"InstanceOf" (one of the answer) but it's a unclean hack.

Anyone has any better ideas?  I thought about going from Object.getClass(),
but it does
not seem to be the way.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Session Size ?

2000-11-22 Thread Shawn Zhu

It depends on the JSP server you are using.  From what I heard/read,
some JSP servers will use either of the 3 methods depending on which
is available.  The 3 methods are: 1) cookie 2) hidden form 3) URL rewriting.

> -Original Message-
> From: Sunil Roy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 04, 2000 11:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Session Size ?
>
>
> Dear Craig McClanahan
>
> Will the session object work as usual if the cookies are
> diabled in the
> client's browser.
> I am asking this because the session ID is stored at the
> client;s end using
> a cookie.
> Thanks in advance.
>
> Sunil Roy
>
> - Original Message -
> From: "Venu Gopal" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 14, 2000 12:41 AM
> Subject: Re: Session Size ?
>
>
> > Thanks..
> >
> > Venu
> >
> > --- "Craig R. McClanahan"
> > <[EMAIL PROTECTED]> wrote:
> > > Venu Gopal wrote:
> > >
> > > > Hi,
> > > >
> > > > Is there any restriction on the size of the
> > > session?
> > > > Like cookie have restriction that only 20 can be
> > > added
> > > > per domain and only 4K can be the size. So is
> > > there
> > > > any thing for session too? Or we can just keep
> > > adding?
> > > >
> > > > Sorry for the ignorance.
> > > >
> > >
> > > A session's attributes are stored in the JVM's
> > > memory space, in a Hashtable or
> > > something equivalent.  Therefore, the only
> > > restriction is how much memory space you
> > > make available in your server's JVM for all of the
> > > concurrently active sessions.
> > >
> > > No matter how many such variables you have stored,
> > > the session identifier requires
> > > only a single cookie.
> > >
> > > > Venu
> > > >
> > >
> > > Craig McClanahan
> > >
> > >
> >
> ==
> =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > > body: "signoff JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Calendar - Get organized for the holidays!
> > http://calendar.yahoo.com/
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



  1   2   >