Re: Output of one JSP into another JSP ?

2001-12-19 Thread Luis Javier Beltran

Use:

In jsp2.jsp



Luis Javier

- Original Message -
From: "R.C.Nougain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 19, 2001 7:50 AM
Subject: Output of one JSP into another JSP ?


> Is there a way in JSP to send the output of one JSP to another to get the
> final display content. What I want is following
>
> JSP1 --> JSP2 --> HTML for Browser
>
> Here JSP1 returns HTML data as usual and I need to put a template stuff
like
> image at top and bottom and little other things using the JSP2 to finally
> get the HTML output. There are many JSP1 files I have and all I want to
have
> is one JSP2 file that will serve the purpose to show the content in a
> uniform way. Also this way it will be hugely easy for me to change the
> Look-n-Feel at any stage simply Changing the JSP2. How to do 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



external variable

2001-12-19 Thread Luis Javier Beltran



Hi all,
 
Is there a way I can define an external variable 
that can be accessed from any other method I define in a JSP?
 
I want to create a method that prints something, 
but I don't want to pass the 'out' variable as a parameter. I want to copy it to 
a 'global' variable, so I can call it from within the other method.
 
Thanks for your help!
 
Luis Javier


GET and POST at the same time

2001-05-11 Thread Luis Javier Beltran

Hi all,

I'm trying to upload a file as well as some other parameters. I read some
post before that said that I have to set enctype="multipart/form-data" in
the form tag, but that won't let my jsp (I'm handling the upload with a jsp)
to get the other parameters. Does anybody know some other way to upload a
file and some parameters at the same time??

Thanks a lot!

Luis Javier

===
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



file uploads

2001-04-18 Thread Luis Javier Beltran

Hi all,

I want to do something like the hotmail and yahoo mail file attachment
(browsing the file, then sending it to the server, repeating those steps and
then hitting OK), and I wanted some suggestions.

1) How do I store the files that the client sends? I was thinking of storing
them as temporary files in the hard disk, that leads us to my next
question...

2) How do I store the names of the files I've just created for that
particular user for future processing? Can this be done passing an array or
Vector through the session?? How is this done?

or

Should I create a temporal session-scoped bean to store the names and other
information, and then destroy it after the process is finished??

Thanks a lot in advance!!!

Luis Javier

===
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



JSP tags

2001-02-26 Thread Luis Javier Beltran

Where can I get a complete list of all JSP tags?

thanks,

Luis Javier

===
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 with jdk1.3

2001-02-21 Thread Luis Javier Beltran

I don't think it's necessary to include all jar files that come with JDK.
What you do have to include is the directory where your classes are located.


Luis Javier

> This is a classpath problem.  Edit your autoexec.bat
> file to have the following line
>
> SET CLASSPATH=.;
> THEN find all the jar files that come with jdk. in a
> notepad file write down all the full paths to these
> jar files including the jar file itself
> for example
> c:\jdk\src.jar
> c:\jdk\rt.jar etc.
> and include directories that have a bunch of class
> files in them (that are relevant to the jdk).
> then
> SET
> CLASSPATH=%CLASSPATH%;C:\JDK\SRC.JAR;C:\JDK\RT.JAR;
> Dont forget to include . in the classpath.
>
> -Jay Parikh
> --- meiyi leong <[EMAIL PROTECTED]> wrote:
> > I've downloaded jdk1.3, hoping it to run well , a
> > prerequisite for
> > TOMCAT.
> > The tomcat server can run very well, but not jdk1.3.
> > When i run 'java HelloWorld', the error appears...
> >
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError: HelloWorld
> >
> > HOw do i handle it?
> > Helppp
> >
> >
>
===
> > 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 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: problem with jdk1.3

2001-02-21 Thread Luis Javier Beltran

> The thing is. all the classes are in *.jar files
> and there isn't any class files except for the examples.

But error java.lang.NoClassDefFoundError: HelloWorld
tells that class HelloWorld was not found. It's a user class, so if you're
compiling your class for instance, in directory c:\myclasses, then you have
to include c:\myclasses in the classpath.

I understand for what you say, that you are including ALL .jar files that
come with JDK. Well I don't think it's necessary, for example, you certainly
don't need to include src.jar (!!).

As you see the problem wasn't at compile time, it was when meiyi tried to
run it.

Luis Javier

===
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: downloading of file

2001-02-16 Thread Luis Javier Beltran

What you can do to display a page first, is to send the page and include a
refresh header to the download page. I mean, first display predownload.jsp
where you will display that "the file you requested is being downloaded..."
thing, when it's finished loading it will do a refresh to the real
download.jsp.

Hope that helps,

Luis Javier


- Original Message -
From: "Hardeep Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2001 6:07 AM
Subject: Re: downloading of file


> use a servlet instead of jsp since jsp already has content type set before
> coming to ur code. what u say that the client sees the message first is
not
> possible.
>
> Hardeep
>
> - Original Message -
> From: "Shailendra" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 16, 2001 6:56 AM
> Subject: downloading of file
>
>
> > hi
> > can any body will help me in down loadin of file
> > my problem is
> > i am writing folowing code in my jsp
> > it download the Download.jsp file to the client side but server give the
> > error saying
> >
> > java.lang.IllegalStateException: OutputStream is already being used for
> this
> > request
> >
> > code is like that
> > <%
> > response.setContentType("text/plain");
> >
response.setHeader("Content-Disposition","attachment;filename=file.txt;");
> > InputStream is = null;
> >
> > File f= new File("Download.jsp");
> > FileInputStream fos=new FileInputStream(f);
> > BufferedInputStream o=new BufferedInputStream(fos); file://8k
> > is=o;
> > //... Read InputStream from Database
> > OutputStream os = response.getOutputStream();
> > if (os != null)
> > {
> >int c;
> >while ( (c = is.read()) != -1)
> >{
> >   os.write(c);
> >}
> >os.flush();
> >os.close();
> > }
> > is.close();
> >
> > %>
> >
> > extra to that(downloading of file)
> > i also want that the client shoud have some html page ,when it get
> download
> > dilogbox(first client see the html page saying download will start
> > autometicaly then download start)
> >
> > shailendra
> >
> >
>
===
> > 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: I am a beginner

2001-02-08 Thread Luis Javier Beltran

Just a comment Joseph, this message should be posted on a java programming
forum, as this is for JSP.

I'll help you understand the error:

>  > clicker.java:15: cannot resolve symbol

^
This means the problem is in line 15 of clicker.java


>  > clicker.java:15: cannot resolve symbol

^

In this case this means there's a method not found for a given class...


>  > symbol : method addActionListner (clicker)


 method addActionListener(clicker)...


>  > location: class java.awt.Button
>  > butto1.addActionListner(this)


 for class java.awt.Button, butto1 in your code

Solution: the method isn't addActionListner, it's addActionListener, you
missed the 'e'

Hope this helps,

Luis Javier

===
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 tomcat needs apache ????

2001-02-08 Thread Luis Javier Beltran

>  > Hi, I installed tomcat, and it's working fine, but I am confusing, why we
>  > need apache for tomcat ?


Tomcat can serve pages, so you can use it standalone, but Apache does it
better and faster ( I'm talking about static pages, images and other files
too). But Tomcat offers other types of authentication and control over
pages, so you may want Apache serve common, static pages, and Tomcat take
care of your JSP and other special pages or content.


>  > Another question, if in tomcat I have an application called myApp in
>  > tomcat\webapps\myApp
>  > tomcat\webapps\myApp\index.jsp
>  > How can I invoque index.jsp from apache.


You can:

1) Set your DocumentRoot to ...\tomcat\webapps\myApp, so when you invoque
http:///, tomcat\webapps\myApp\index.jsp will be called

or

2) Just invoke http:///myApp/, but you have to register your
application first


Luis Javier

===
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



shutting down the server

2001-02-02 Thread Luis Javier Beltran

Is it possible to shut down the server from a servlet or something?

thanks,

Luis Javier

===
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



detecting stop button in browser has been pressed (on the server side)

2001-01-15 Thread Luis Javier Beltran

Is there anyway to detect if the user has aborted the operation, to abort
the process on the server too??

thanks,

Luis Javier

===
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



logs de Sendmail

2001-01-10 Thread Luis Javier Beltran

Me preguntaba si el sendmail guarda un log sobre las sesiones que se inician
con el, o sea la conversacion SMTP akguien sabe si lo hace, o como
activar esa funcion?

Gracias!!

Luis Javier

===
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: Newbie problem.

2001-01-09 Thread Luis Javier Beltran

> - from where do i download the linux version of tomcat?

you can download Tomcat 3.2.1 from:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-t
omcat-3.2.1.tar

===
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: Tomcat question ?

2001-01-05 Thread Luis Javier Beltran

> Is that mean when I access JSP page tomcat compile JSP page using JDK ?
> Please, let me know what happen when I access JSP page if you know.

Well, not only Tomcat but other application servers need JDK to compile
JSPs. I'm not sure if JDK1.1.8, but JDK1.2.x or later provides a jar file
named tools.jar, which contains a java compiler. That is used to turn your
JSP into a Servlet. The first time you access to a JSP the server parses it.
You get a .java file with the Java code from your JSP (and some other that
the server adds) and the HTML code is turned into out.println()
sentences (or some other output method). It's then compiled, and executed.
So the next time you access that page, it just executes the Servlet.

I work with WebSphere, and I've tried Tomcat and Orion, and that's what I've
seen they do...

I hope that helps

Luis Javier

===
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: Tomcat question ?

2001-01-04 Thread Luis Javier Beltran

I think you need JDK1.3. Tomcat uses tools.jar (I think) which is not
provided with JRE, to compile your JSP.

Luis Javier


- Original Message -
From: "Hyun-Chul KIM" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 7:27 AM
Subject: Tomcat question ?


Hi All,

Is TOMCAT 3.2.1 working with only Java Runtime Environment Standard =
Edition v1.3 ?

I installed Tomcat 3.2.1 and JRE 1.3 but Tomcat is not working =
correctly.
I can't run JSP example in Tomcat default home page.
I use Windows 2000 server on Intel machine.
My environment variables for Java are following.

CLASSPATH=3Dc:\tomcat\classes;c:\tomcat\lib\ant.jar;c:\tomcat\lib\jasper.=
jar;c:\tomcat\lib\jaxp.jar;c:\tomcat\lib\parser.jar;c:\tomcat\lib\servlet=
.jar;c:\tomcat\lib\webserver.jar
JAVA_HOME=3DC:\Program Files\JavaSoft\JRE\1.3
OS=3DWindows_NT
Path=3DC:\Program Files\JavaSoft\JRE\1.3\bin;C:\Program =
Files\JavaSoft\JRE\1.3\lib;C:\Oracle\Ora81\bin;C:\Program =
Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\W=
bem;
PROCESSOR_ARCHITECTURE=3Dx86
PROCESSOR_IDENTIFIER=3Dx86 Family 6 Model 8 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=3D6
PROCESSOR_REVISION=3D0806
TOMCAT_HOME=3Dc:\tomcat

Please, let me know what is wrong.

Thanks and Best Regards
HyunChul


_
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: No constructor matching Ticker() found in class Ticker.

2000-12-09 Thread Luis Javier Beltran

you have to define Ticket() as public:

public Ticket()
{

}

- Original Message -
From: "fau k" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 09, 2000 1:48 PM
Subject: No constructor matching Ticker() found in class Ticker.


Hi,

Can any one help me,, I am getting this error for past two days.. but till
now I am unable to solve this problem.

Here I am giving the application.. Please look into this and reply at
[EMAIL PROTECTED]


Please help me in this regard.. This is simple.. I am unable to import a
file.. this is problem with my computer or program..

Please reply to this mail, I will thankfull to u.

Thanks,
Malla Reddy Choodi
[EMAIL PROTECTED]
=
I am getting this error..
com.sun.jsp.JspException: Compilation
failed:work\%3A8080%2Fexamples\ticker_jsp_
1.java:89: No constructor matching Ticker() found in class Ticker.
Ticker tic = new Ticker();
 ^
1 error

at com.sun.jsp.compiler.Main.compile(Main.java:347)
at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:135)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspS
ervlet.java:77)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.j
ava:87)
at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:218)
at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:294)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155
)
at com.sun.web.core.Context.handleRequest(Context.java:414)
at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)
HANDLER THREAD PROBLEM: java.io.IOException: Socket Closed
java.io.IOException: Socket Closed
at java.net.PlainSocketImpl.getInputStream(Unknown Source)
at java.net.Socket$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.Socket.getInputStream(Unknown Source)
at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:161)


=

Here is my source code..

This is my class file..


import java.io.Serializable;
import java.lang.*;
import java.sql.*;
import java.util.Vector;

public class Ticker extends java.lang.Object
   implements Serializable
{

   public String  aTickerid  = "";
   public String  aType  = "";
   public String  aCol1  = "";
   public String  aCol2  = "";
   public String  aCol3  = "";
   public String  aCol4  = "";

   Ticker()
   {

   }


  Ticker(ResultSet rs) throws SQLException
  {
 aTickerid= rs.getString ("TICKER_ID") .trim();
 aType= rs.getString ("TYPE")  .trim();
 aCol1= rs.getString ("COL1")  .trim();
 aCol2= rs.getString ("COL2")  .trim();
 aCol3= rs.getString ("COL3")  .trim();
 aCol4= rs.getString ("COL4")  .trim();
   }
  public String PrintName(){
  System.out.println("Malla Reddy");
  String asd = "Malla Reddy";
  return asd;
  }
}

=

my jsp file..



<%= (new java.util.Date()).toLocaleString() %>


<%@page language="java" import="java.sql.*, java.lang.*,
java.util.Vector,"%>
<%@page import="Ticker"%>









<% String asd = "Malla Reddy"; %>



<%
Vector V = new Vector();
Ticker tic = new Ticker();
==Here I am getting error..===
%>




Untitled Document




Name is <%= tic.PrintName() %>





  
 
 
 
 
 
 
  






_
Get more from the Web.  FREE MSN Explorer download : 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?n

Re: (Off Topic) Please Bare with ME!!!

2000-11-20 Thread Luis Javier Beltran

then you can use something like :

String filecontent = "";

BufferedReader br = new BufferedReader(new FileReader(fileName));

while (br.ready())
{
filecontent += br.readLine(); // you can add a "\n" to indicate a line
break -> filecontent += (br.readLine()+"\n")
}


- Original Message -
From: "Ganesh Mohan Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 20, 2000 1:52 PM
Subject: (Off Topic) Please Bare with ME!!!


Dear All,

Please bare with me for this Off Topic Question.

I would like to know whether there is a possiblity of reading the contents
of a files at one stretch.

Now I am using FileReader and Buffer Reader in which I am using Readline()
method which reads line by line.

My PL wants to read the Content as a whole in one operation.

Is that possible?

Please help me out ASAP.

I have to report to my PL.

Once Again Please bare with me for this Off Topic Question.

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: (Off Topic) Please Bare with ME!!!

2000-11-20 Thread Luis Javier Beltran

Do you want all in a String???

- Original Message -
From: "Ganesh Mohan Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 20, 2000 1:52 PM
Subject: (Off Topic) Please Bare with ME!!!


Dear All,

Please bare with me for this Off Topic Question.

I would like to know whether there is a possiblity of reading the contents
of a files at one stretch.

Now I am using FileReader and Buffer Reader in which I am using Readline()
method which reads line by line.

My PL wants to read the Content as a whole in one operation.

Is that possible?

Please help me out ASAP.

I have to report to my PL.

Once Again Please bare with me for this Off Topic Question.

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: Business logic should be coded in beans or JSP pages itself?

2000-11-20 Thread Luis Javier Beltran

>Hello everybody,
>
>I've recently shifted from ASP to JSP.

Good choice!

>Many people suggest us to use beans to encapsulate business logic. But I've
>come to know that we have to restart the web server when we upgrade the
>bean.

It depends on which App server you're using.

> This thing is not very practical when our JSP site is hosted on a busy
>server. But if we put all business logic in JSP pages then our proprietary
>algorithms/trade offs are available to site owner (in case we develop JSP
>pages and hand it over to customer, who hosts them on his own web server).

I don't think it's a good idea to modify your application, or host an
application which is being developed in the final server. Use a development
server.

>So please help me to decide whether we should put business logic in beans
or
>JSP pages itself.

The purpose of JavaBeans is to provide reusable components, and in this case
to separate the  page design and generation from business logic. You should
consider working this way, you'll get cleaner and easier to mantain and
understand code.

>Thanx for help in advance.

>Raman.

===
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: include

2000-11-15 Thread Luis Javier Beltran

Which is the correct way to use that directive??

How and where do I set flush="true"???

thanks!

- Original Message -
From: "Hernandez, Rey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 3:51 PM
Subject: Re: include


Thank you oh so much.  I thought I had tried it with and without
flush="true" and sure enough, that was the key.  I always say, it is a good
thing to have another pair of eyes looking at something when you get
stumped.  Thank you again.

-Original Message-
From: robert young [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: include


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Hernandez, Rey
Sent: Tuesday, November 14, 2000 03:00 PM
To: [EMAIL PROTECTED]
Subject: jsp:include


Before I go insane trying to figure out if I am doing something wrong, let
me ask you guys about jsp:include.

I am running Tomcat 3.1 on NT4 with the apache web server, jdk1.3, and
whenever I try to use jsp:include I get the error "Invalid jsp:include tag",
so what am I doing wrong.

Here is the tag I am using:

   ^
   flush="true"
robert young

===
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".
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".
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 ( Runtime access of filenames of images in JSP )

2000-11-10 Thread Luis Javier Beltran

that JSP tag inside the HTML tag is totally valid


- Original Message -
From: "Sunil Roy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 02, 2000 2:10 PM
Subject: JSP ( Runtime access of filenames of images in JSP )


Dear JSP gurus,

Pl. solve my following problem:

Pl. see the following code for displaying images "1.jpg" , "2.jpg" , "3.jpg"
, etc. in

subsequent  in the same row:

 <%@ page import = "ImageServlet" %>

 
 

 <%! int imgNo[];
 int col;
 %>

 

 <% imgNo = ImageServlet.staticImgNo ; %>

 
 <%
for ( col = 0 ; col < imgNo.length ; col++ )
{
 %>

  

 

>

  

 <%
}
 %>

 
 
 

Thanks in anticipation
Eagerly waiting for a reply.
Sunil K. Roy

===
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".
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



threads

2000-11-08 Thread Luis Javier Beltran

Hi, I'm trying to implement a timer, so I call this Runnable class Timer,
from a servlet. I want to cancel the operation the servlet was doing and
send a message to the user when there's a timeout. How can the Timer thread
tell the servlet there has been a time out??

thanks!

Luis Javier

===
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



Re: About remote database access

2000-11-08 Thread Luis Javier Beltran

if you want to use ODBC, then you have to install the ODBC driver for the DB
you're using, and then create a DSN that references the remote DB. Then you
can use the odbc url -> jdbc:odbc:


- Original Message -
From: "Zheng, Jennifer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 4:01 PM
Subject: Re: About remote database access


I haven't tried odbc, but for oracle jdbc connection, the url would be

url = "jdbc:oracle:thin:@hpcad145:1521:fe_d";

so for the odbc, it could be protocol followed by subprotocol followed by
@machinename:port:dbname as well.


-Original Message-
From: Brad Webb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 3:02 PM
To: [EMAIL PROTECTED]
Subject: Re: About remote database access


Hello,
I am doing something similar and I wrote a dataserver that runs as a java
application on the machine that contains the database. I also wrote a client
that
connects via sockets to this dataserver. I subclass the client
and describe my request and the client sends the request to the dataserver
which
submits the appropriate query locally to my Oracle database. Then the
results are
sent back to the client.
Hope this helps.
Brad Webb

Celal Ceken wrote:

> Hi everybody,
> I want to use a remote database(For example my Database is in another
server
> ). How can I connect this database. (Database that I use is an access
file.
> I use ODBC ).
> String url="jdbc:odbc:Veri"; When the database is in my server there is no
> problem. If the database is in "http://lab19:8080" , What can I do??
> String url="jdbc:odbc:?";
> Thanks for your help,
> with regards,
>
>
===
> 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".
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".
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".
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



JDK1.2.2 on RH7

2000-11-08 Thread Luis Javier Beltran

Has anybody had any problem using the JDK1.2.2 with RedHat Linux 7.0??? I
get a 'Segmentation fault (core dumped)' error. Is that a compatibility
problem?? Should I have any problem with JDK1.3??

thanks!

Luis Javier

===
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



Re: Performance problem with ODBC

2000-10-27 Thread Luis Javier Beltran

You can use JDBC, there's a JDBC driver for almost all databases


- Original Message -
From: "Celal Ceken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 27, 2000 12:59 PM
Subject: Performance problem with ODBC


> Hi everybody,
> My problem is slow database Access with ODBC. I have an Access Database
and
> I wonder if there is a way to connect Database without ODBC. Thanks for
your
> help.
>
> with regards
>
>
===
> 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".
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: WebSphere - Connection Pooling

2000-10-24 Thread Luis Javier Beltran

Are you getting a "Connection does not exist" message?
Well, if you browse Websphere classes documentation, you'll fin some methods
that let you know the status of pool, such as getConnectCount, getFreeCount,
getIdleCount, getOpenCount, etc... (all from class
com.ibm.servlet.connmgr.IBMConnMgr)

You may find this documentation under (this for websphere for nt)
/websphere/appserver/web/doc/apidocs/

The only thing I don't like about this documentation is that it's not very
explaining.

Something I discovered is that connections are still valid even after
releasing them, I mean, you can create statements (I haven't tried executing
a SQL sentence).
I was getting that "Connection does not exist" message, and it was very
annoying, so I made sure to close connections, and removing them from the
pool instead of releasing them. (maybe it will work fine just closing the
connection, but I wanted to make sure that the problem will disappear, I was
getting into trouble because users couldn't work because of this message)

I'm still investigating this, so if you find a better solution, please let
me know.


Luis Javier

- Original Message -
From: "Sushil Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 23, 2000 5:46 PM
Subject: WebSphere - Connection Pooling


> Hi,
> Can anybody help me, how to check how many connections are there in
> pool, how many are in use, held etc.  I am using WebSphere Application
> Server 3.0 (Advance Edition) on AIX with DB2. After sometime my
> servlets/jsp are unable to get connection even though i am relasing the
> connection.
>
> Thanks in advance.
>
> Sushil
>
>
===
> 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".
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: Limit on the length of a variable passed in the URL

2000-10-24 Thread Luis Javier Beltran

It's an HTTP limitation, not just a browser limitation
- Original Message -
From: "Michael Donnelly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 4:11 PM
Subject: Re: Limit on the length of a variable passed in the URL


> The real limitations on the size of a URL are in browsers, not JSP or the
> server.  Different browsers will swallow URL's of different sizes.  For
> something that hefty, I'd suggest POSTing it to avoid annoying edge
> conditions with browsers and proxies.  It's just as easy to handle with
JSP.
>
>Mike
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Yamijala, Kalyan
> Sent: Tuesday, October 24, 2000 1:39 PM
> To: [EMAIL PROTECTED]
> Subject: [JSP-INTEREST] Limit on the length of a variable passed in the
> URL
>
>
> Hello All,
>
> Does anyone know if there is a limit on the length of a variable I can
pass
> to a JSP page in a URL. I have a feedback system and I am passing about 40
> line text as a variable in the URL. Does it work?
>
> Thank you
> Kalyan
>
>
===
> 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".
> 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".
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: Bean: Unable to do setProperty

2000-10-20 Thread Luis Javier Beltran

To set all parameters you can use 


- Original Message -
From: "Sushil Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 5:38 PM
Subject: Bean: Unable to do setProperty


> Hi,
>
> I am unable to setProperty for a bean, its giving error:
> com.sun.jsp.JspException: "setProperty(shiptoBean): Cant Find the method
> for setting {1}"
>
> Following is the code snippet:
> 
>
>  value="17338459"/>
>
> Bean code is something like this:
> private String dbUser = "";
> private String shopper_refno = "";
> public void   setDbUser(String user) { dbUser = user; }
> public String getDbUser(){ return dbUser; }
> public void   setShopperRefNo(String shrfno) { shopper_refno = shrfno; }
>
> public String getShopperRefNo()  { return shopper_refno; }
>
> Also I would like to know how to specify setProperty so that all the set
> methods of beans should be automatically filled by form parameter or if
> url is called with paramters.
>
> Thanks,
>
> Sushil
>
>
===
> 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".
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: Dynamic Array Storage

2000-10-20 Thread Luis Javier Beltran

Well, not a must, but I thought you had to... Personally, I'd use a bean, I
don't like leaving the programming and logic to the JSP, I only use it to
generate an HTML page, but I almost associate a JSP to a bean where I can
define variables and methods to process that data.

LJ

- Original Message -
From: "Antonio W. Lagnada" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 3:49 PM
Subject: Re: Dynamic Array Storage


> Is it a must that u use a bean?  Why can't u just pass it as a session
> object and then retrieve that object on another page.
>
> --
> Antonio W. Lagnada
> Ecommerce Consultant
> [EMAIL PROTECTED]
>
> This email address is specifically
> for JSP-Interest email list.
> Remove _NOSPAM for the actual email.
>
>
>
>  Luis Javier Beltran <[EMAIL PROTECTED]> wrote:
> > You can create a couple of get/set methods in your bean so that you
> > can
> > exchange data between the JSP, and the Servlet. Something like:
> >
> >  array[] ;
> >
> > public [] getArray()
> > {
> > return array;
> > }
> >
> > public void setArray( array[])
> > {
> > this.array = array;
> > }
> >
> >
> >  = the class type you're using (String, Integer, etc...)
> > - Original Message -
> > From: "Dennis Leary" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 20, 2000 1:04 PM
> > Subject: Dynamic Array Storage
> >
> >
> > > Here is what I'm doing.
> > >
> > > Have a form that has up to 10 records of input all of type text.
> > >
> > > I have written JSP that processes the form and checks a particular
> > field.
> > > if the record is good then it stores it into a dynamic array.
> > >
> > > Now that I have this array I need to store it in a bean somehow but
> > I'm
> > not sure how to go about it and then get the array back out later on.
> > >
> > > Any ideas or sample code to work with would be great.
> > >
> > > Thanks
> > >
> > >
> >
===
> > > 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".
> > 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".
> 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".
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: Servlet/JSP Development

2000-10-20 Thread Luis Javier Beltran

You can configure that when you define your application, there's a directive
that specifies if Tomcat should check for changes in your classes.
Sorry for not being more specific, but I have that info at home. It's all in
the documentation. :)
I hope that helps you

- Original Message -
From: "Antonio W. Lagnada" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 12:43 PM
Subject: Servlet/JSP Development


> Hello,
>
> When I am developing JSP/Servlets, I find that I don't get the changes
> that I've made to a particular class unless I restart Tomcat.  I find
> this to be real annoying because I could be depending on the state of
> session variables--and when I restart the server I lose the session.
>
> Does anyone have an idea or good programming habits out there for my
> situation?  How can I force the browser or Tomcat to NOT CACHE the
classes?
>
>
> Thank you,
> --
> Antonio W. Lagnada
> [EMAIL PROTECTED]
>
> This email address is specifically
> for JSP-Interest email list.
> Remove _NOSPAM for the actual email.
>
>
> ___
> 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".
> 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".
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: WebSphere

2000-10-20 Thread Luis Javier Beltran

Assuming that you're not refering to EJB, you can place them under
\websphere\appserver\servlets.
You can create a sub folder, to make it cleaner, but don't forget to include
it in the classpath variable.


- Original Message -
From: "Modassir Sattar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 12:44 PM
Subject: Re: WebSphere


> Hi,
>
> Does anybody know how to deploy beans on IBM's WebSphere Server.
> Can you please let me know where should I place my .class and .jar files.
>
> Your help is reaply appreciated.
>
> Thanks,
>
> Modassir
>
>
===
> 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".
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: Dynamic Array Storage

2000-10-20 Thread Luis Javier Beltran

You can create a couple of get/set methods in your bean so that you can
exchange data between the JSP, and the Servlet. Something like:

 array[] ;

public [] getArray()
{
return array;
}

public void setArray( array[])
{
this.array = array;
}


 = the class type you're using (String, Integer, etc...)
- Original Message -
From: "Dennis Leary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 1:04 PM
Subject: Dynamic Array Storage


> Here is what I'm doing.
>
> Have a form that has up to 10 records of input all of type text.
>
> I have written JSP that processes the form and checks a particular field.
> if the record is good then it stores it into a dynamic array.
>
> Now that I have this array I need to store it in a bean somehow but I'm
not sure how to go about it and then get the array back out later on.
>
> Any ideas or sample code to work with would be great.
>
> Thanks
>
>
===
> 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".
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



Uploads

2000-10-13 Thread Luis Javier Beltran

Does anybody know how to receive an uploaded file in a JSP or servlet, and
how to store it??

===
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



Re: WAS versus IIS

2000-10-13 Thread Luis Javier Beltran

Maybe you should uninstall WAS and install it again over IIS.
During the installation, there's a step that lets you choose which web
server you want to use.

- Original Message -
From: "Martin Jelinek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 8:02 AM
Subject: Re: WAS versus IIS


> Thanks for information, but the problem is more serious than I expected.
>
> My installation of WAS 3 has no IIS plugin - only the IBM HTTP Server,
> because this was is a part of whole Websphere installation.
>
> An I cannot turn the iis off, because I need it more other things.
> I discovered JRun and it helped. A little. Because it is not able to work
> with my national charset.
>
> Thanks for your help.
>
>
===
> 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".
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