Re: Urgent !!!!!!!! Please help me

2001-12-18 Thread ShriKant Vashishtha

Hi All,

1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }

2. Node cld = null;
for (int i = 0; i < count; i++) {
cld = list.item(i).getFirstChild();
}

Which one is more efficient between the two and why.

Thanks,
-ShriKant



"Gare, Trefor" wrote:

> Not quite sure what you're after but the second will allow the JVM to use a
> single String object for multiple references (if there are any other strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> > ==
> > =
> > 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

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



Single sign on for different type of web server

2001-12-18 Thread Henry Lin
Title: Message



Dear 
all,
 
Is it possible to 
use a single servlet/JSP page to logon several different vendor's web 
server??
 
Best 
Rgds,
Henry


Re: Urgent !!!!!!!! Please help me

2001-12-18 Thread Komaravolu Vasudha

hello srikanth,
second one is more efficient as in the first case the node cld will
be creating each and every time. So if the count value is larger then that
many times this object will be created.


-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me


Hi All,

1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }

2. Node cld = null;
for (int i = 0; i < count; i++) {
cld = list.item(i).getFirstChild();
}

Which one is more efficient between the two and why.

Thanks,
-ShriKant



"Gare, Trefor" wrote:

> Not quite sure what you're after but the second will allow the JVM to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > 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

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



TagLib

2001-12-18 Thread Atul

Hi everybody,

can anyone help me in writing the taglib - custom tags for the tomcat.
i have tried a lot but unable to get it. every time i got error as
"HTTP Status 503 - Servlet jsp is currently unavailable
The requested service (Servlet jsp is currently unavailable) is not
currently available.
"
can anybody help me in this case ?

atul


_
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://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



Re: Iplanet 6 Problem

2001-12-18 Thread piyush jain

Thanks Mike,

Could u send me exact url of the location of the patch.

thanks and regards,
Piyush.

On Mon, 17 Dec 2001 Mike Akerman wrote :
> > Hello,
> >
> > I am facing problem with iplanet web server 6.0. The 
> server stops
> > working after some time having the message in the 
> error log as "Error
> > receiving connection (No process is on the other end 
> of the pipe.)".
> >
> > I am not able to trace the reason of the problem. 
> Could anyone help me
> > on that. I also could not find any documentation wrt 
> same.
> >
> > regards,
> > Piyush.
> 
> There is a free patch for this problem located at:
> 
> http://jakarta.apache.org/tomcat/index.html
> 
> Unfortunately, this will be one of many bugs you will 
> find using iPlanet
> WS for Java.  As an example the latest "Service Pack" 
> is the first to
> include support for J2SE 1.3, now several years old.
> 
> Michael 
> Akerman
> 
> -
> ===
> 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



Re: Off Topic: Unicode

2001-12-18 Thread Anthony Tagunov

Hello Mike and everybody!

>> MA> "System.out.println("\u2261");"
>>
>> Hmmm.. Looks the System.out writer is set up to smth like ISO-8859-1,
>> so will this work?

MA> "System.out" is a PrintStream so it depends on the default encoding.
MA> ...
MA> If your platform default encoding is ISO-8859-1, than indeed
MA> "System.out.println("\u2261");" isn't going to output, as its not in the
MA> Unicode to ISO mappings -- 
http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-1.TXT
Thanks for clearing this out!

>>> Maybe doing ࣕ would be better in a general setting?
Well, i was speaking about doing out.write("ࣕ") in a _servlet_.
I beleive that if we do it, we'll get the ࣕ sequence output
directly to the html page and the browser may recognize this as
a HTML encoding of a unicode character. This is a reasonable
option even if we have ISO-8859-1 as our page encoding.

MA> If you do this through a "System.out.write(ࣕ)", it might be
MA> interpretted as a byte instead of a character...
Well, i beleive that if we really do 'System.out.write("ࣕ");'
we'll get "ࣕ" on our system console, but this quite useless,
isn't it? Sure it won't "be interpreted as a byte".

Best regards, Anton

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



AW: Tomcat App setup

2001-12-18 Thread "Rogagé, Regine, myview"

Hi,

you got the directory listing, because you set the docBase to the
"webapps"-Directory:
>I have included  in the server.xml file.
You have to give your directory "test" as docBase.
Other settings seem to me to be correct.
Try with this web.xml:
--8<8<8<8<8<8<8<8<--
--8<--


http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>





debug
true






  
  Test
  
  
  Test
  







Test


/








--8<8<8<8<8<8<8<8<--
--8<--

By,
Regine

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



Re: Urgent !!!!!!!! Please help me

2001-12-18 Thread ShriKant Vashishtha


Hi,
I am little puzzled. Let me clear my understanding.
When I say
Node cld = list.item(i).getFirstChild();
am I calling any constructor of the object, if yes which one?
Do we have any kind of copy constructor like C++. If we do then what
is the syntex of that constructor and how does it internally invoked.
Thanks,
-ShriKant
Komaravolu Vasudha wrote:
hello srikanth,
    second one is more efficient
as in the first case the node cld will
be creating each and every time. So if the count value is larger then
that
many times this object will be created.
-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me
Hi All,
1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }
2. Node cld = null;
    for (int i = 0; i < count; i++) {
    cld = list.item(i).getFirstChild();
    }
Which one is more efficient between the two and why.
Thanks,
-ShriKant
"Gare, Trefor" wrote:
> Not quite sure what you're after but the second will allow the JVM
to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object. 
In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:    (03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please
help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating
and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > 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
===
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



Re: Urgent !!!!!!!! Please help me

2001-12-18 Thread ShriKant Vashishtha

Hi,

I am little puzzled. Let me clear my understanding.
When I say
Node cld = list.item(i).getFirstChild();
am I calling any constructor of the object, if yes which one?
Do we have any kind of copy constructor like C++. If we do then what is the syntex
of that constructor and how does it internally
invoked.

Thanks,
-ShriKant

Komaravolu Vasudha wrote:

> hello srikanth,
> second one is more efficient as in the first case the node cld will
> be creating each and every time. So if the count value is larger then that
> many times this object will be created.
>
> -Original Message-
> From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Urgent  Please help me
>
> Hi All,
>
> 1.  for (int i = 0; i < count; i++) {
>Node cld = list.item(i).getFirstChild();
>  }
>
> 2. Node cld = null;
> for (int i = 0; i < count; i++) {
> cld = list.item(i).getFirstChild();
> }
>
> Which one is more efficient between the two and why.
>
> Thanks,
> -ShriKant
>
> "Gare, Trefor" wrote:
>
> > Not quite sure what you're after but the second will allow the JVM to use
> a
> > single String object for multiple references (if there are any other
> strings
> > "Tendulkar").  The first will always create a new String object.  In that
> > way the second is a more economical way of creating/referencing the
> object.
> > Is that a help?
> >
> > Tref Gare
> > Web Developer MCSD
> > eCommerce Group
> > Phone:  (03) 9221 4106
> > Mobile: 0409 556 478
> > Fax:(03) 9941 4295
> >
> > > -Original Message-
> > > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday,18 December 2001 5:24
> > > To:   [EMAIL PROTECTED]
> > > Subject:  Re: Urgent  Please help me
> > >
> > > Hi All,
> > >
> > > String string_Name = new String("Tendulkar");
> > >
> > > String string_Name = "Tendulkar";
> > >
> > > In Above two statements which is compatible(Speed,Instantiating and
> other
> > > parameters.) for java compiler.
> > >
> > > thanks
> > >
> > > Varna.
> > >
> > >
> ==
> > > =
> > > 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
>
> ===
> 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

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



off topic

2001-12-18 Thread Sasi Bhushan



Hi all,
may be this question is offtopic question but i 
want to know.can anybody tell me why there is tag called icon in application.xml 
for j2ee application.
regards 
Sasi.
 


Re: browswer check *some pitfalls*

2001-12-18 Thread G.Nagarajan

hi,

Don't rely entirely upon the user agent string. It will work only when
the client computer connects directly with your server. If it comes
through a proxy any of the following can happen

- the client machine gets a cached copy in the proxy cache. so it might get
the right version intended for it

- the proxy might send its own user agent like "mozilla (border manager/3.0)
when
a IE 5.0 browser might have made the actual request. In this case, the user
agent
detection logic will tell that the request is coming from a netscape
browser!

There are different variations of what these proxies can do!

Regards,
Nagarajan.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Rajinder Sandhu
Sent: Tuesday, December 18, 2001 8:05 AM
To: [EMAIL PROTECTED]
Subject: Re: browswer check


<%@ import="java.io.*,java.util.*,java.lang.Object,java.text.Format" %>

<%
// using Java, determine if the browser is Netscape or MSIE
boolean isNetscape = false;

String userAgent = request.getHeader("User-Agent");
if ( userAgent.toLowerCase().indexOf("msie") ==-1   &&
userAgent.toLowerCase().indexOf("spoofer")==-1 )
{
   isNetscape = true; // browser is Netscape
}
else
{
   isNetscape = false; // browser is NOT Netscape
}
%>

Hope this helps.

Cheers!!
Raj



-Original Message-
From: Sami Saul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 12:28 PM
To: [EMAIL PROTECTED]
Subject: Re: browswer check


Try request.getHeader("User-Agent")

Regards,

Sami

Can anybody direct me to some code that will check browser version and type
via jsp or tag?  I don't particularly want to use javascript.

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



Parsing Question

2001-12-18 Thread Eric Fleming

I am building a website where there is a backend to the site in which people
can enter what will be displayed on a certain page.  They fill out a form on
the admin side of the site that allows them to enter a title for the page,
the body of the page, and also put up to three images on the page.  The form
writes to a databse and then the front end queries the databse and outputs
the page.  I would like them to be able to put in html into the body of the
page(ex.  tags) and I have it so they can put  tags in there now, but
I had to parse out the string because it is written into the page as
 so I Tokenize the body of the page and look for that sequence
and in place of it, I put the .  I know there has to be a better way to
do this, can anybody give me some suggestions.

Eric Fleming | GravityFree
1960 Stickney Point Road | Second Floor
Sarasota | FL | 34231 | (941) 927-7674
[EMAIL PROTECTED]
http://www.gravityfree.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



Re: Off Topic: Unicode


> >>> Maybe doing ࣕ would be better in a general setting?

> Well, i was speaking about doing out.write("ࣕ") in a _servlet_.
> I beleive that if we do it, we'll get the ࣕ sequence output
> directly to the html page and the browser may recognize this as
> a HTML encoding of a unicode character. This is a reasonable
> option even if we have ISO-8859-1 as our page encoding.
>
> MA> If you do this through a "System.out.write(ࣕ)", it might be
> MA> interpretted as a byte instead of a character...
>
> Well, i beleive that if we really do 'System.out.write("ࣕ");'
> we'll get "ࣕ" on our system console, but this quite useless,
> isn't it? Sure it won't "be interpreted as a byte".
>
> Best regards, Anton

Well I had temporarily confused ࣕ with legal java hex, 0x2261.  I
meant to say "System.out.write(0x2261)"

Bringing up the "�" representation is a good idea, but html character
entities should be decimal numbers and "\u2261"  converted from hex to
decimal is 8801.

Originally, I highly doubted that something as high as 8801 was doable as
an HTML character entity.  According to "Webmaster in a Nutshell", these
HTML character entities must be ISO-8859-1 characters, and not even the
full 256 ISO-8859-1 character set is supported.

However I checked anyway and "≡" works great --just to show how
accurate a book from June 99 is.  I ran:

for(int i=0x2200; i<=0x22ff; i++)
{
if ( i % 16 == 0 ) out.println("");
out.print("&#"+i+";");
}

To print the entire "Unicode Mathematical Operators" set.  About 1/4
displayed in Internet Explorer 6.0, and the full set displayed in Netscape
6.1 and Opera 6.0.

So it looks like 'System.out.println("&8801;");' is the solution as you
said.

Michael Akerman

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



Re: Tomcat App installation


I think you have to call your servlet like this :
From: "Ramanujan, Madhusudhan" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Tomcat App installation
>Date: Mon, 17 Dec 2001 13:51:43 -0800
>
>I have tomcat 4.0.1 on my windows 2000 machine . I am trying to run a test
>servlet called test.java It is nothing but a helloworld program.
>Now I have created a directory called test like
>webapps\test.
>
>I have these directories ie
>webapps\test.
>webapps\test\WEB-INF (the place where i have a dummy web.xml
>file)
>webapps\testWEB-INF\classes (where test.java and test.class
>are located)
>webapps\test\WEB-INF\lib
>I have included reloadable="true"
>/> in the server.xml file.
>tell me what is wrong here as I am not getting the output.
>when I type: . I am getting the directory lists
>like: and when I click test, I get a blank page.
>Directory Listing For /
>FilenameSizeLast Modified
>ROOT/ Sun, 14 Oct 2001
>19:13:54 GMT
>examples/ Sun, 14 Oct
>2001 19:13:52 GMT
>manager/   Sun, 14 Oct 2001
>19:13:54 GMT
>tech/ Mon, 17 Dec 2001
>19:51:08 GMT
>test/ Mon, 17 Dec 2001
>20:37:12 GMT
>tomcat-docs/   Sun, 14 Oct
>2001 19:13:52 GMT
>webdav/ Sun, 14 Oct 2001
>19:13:54 GMT
>
>and when I click the url link "tech" I get a page that says  :"Apache
>Tomcat/4.0.1"
>
>can anybody tell me whats is wrong here.
>
>Madu Ramanujan
>Business Analyst
>Pacificorp
>email: [EMAIL PROTECTED]
>Phone: (503) 813- 6039
>
>
>
>
>This email is confidential and may be legally privileged.
>
>It is intended solely for the addressee. Access to this email by anyone
>else, unless expressly approved by the sender or an authorized addressee,
>is unauthorized.
>
>If you are not the intended recipient, any disclosure, copying,
>distribution or any action omitted or taken in reliance on it, is
>prohibited and may be unlawful. If you believe that you have received this
>email in error, please contact the sender, delete this e-mail and destroy
>all copies.
>
>
>==




_
Join the world’s largest e-mail service with MSN Hotmail.
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://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



JSP, J2EE


Im pretty new to JSP, and im wondering what the big difference between JSP,
and J2EE are?

How different is JRun from JSP/J2EE?  If i write code using JRun will it
work on a JSP or J2EE server?

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://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



Mail Encryption




Hello all,
 
Does anybody know how I can encrypt a mail that I 
send using Java. Does JavaMail have a method for this?.
 
Please help me,
 
Thanks in advance.
 
Lorena Carlo


Re: JSP, J2EE


18/12/2001 15:21:44, Chad Gray <[EMAIL PROTECTED]> wrote:

>Im pretty new to JSP, and im wondering what the big difference between JSP,
>and J2EE are?

  There is no difference. JSP is part of the whole J2EE platform.

>How different is JRun from JSP/J2EE?  If i write code using JRun will it
>work on a JSP or J2EE server?

  JRun is nothign but an application server which means you can use JRun in order to 
run JSP/Servelts and EJBs. In a few words you use JRun to run J2EE applications.

  And yes, if you write code using any JRun editor that might be available your code 
will run on other J2EE application servers, as long as you do not use any proprietary 
JRun methods or taglibs...

>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://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
>
__
"It can only be attributed to human error"
2001 A Space Odyssey

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



Re: tomcat4.0, how to ad new context ??


I think the docBase should be :
 

hopefully this is it.

Jf




   "Ramanujan, Madhusudhan"
 cc:
   Sent by: A mailing list about Java  Subject: Re: tomcat4.0, how 
to ad new context
   Server Pages specification and   ??
   reference <[EMAIL PROTECTED]>
   12/17/01 04:45 PMPlease respond to A
   mailing list about Java Server Pages
   specification and reference







 Hi,
I have installed the TOMCAT 4.01.and set up an application called test on
my windows 2000 machine . I am trying to run a test servlet called
test.java It is nothing but a helloworld program.


Now I have created a directory called test like
webapps\test.
I have these directories ie
webapps\test.
webapps\test\WEB-INF   (the place where i
have a dummy web.xml file)
webapps\testWEB-INF\classes(where test.java and
test.class are located)
webapps\test\WEB-INF\lib

I have included  in the server.xml file.
tell me what is wrong here as I am not getting the output.
when I type: http://localhost:8080/test. I am getting the directory lists
like below:


--
Directory Listing For /
Filename Size Last Modified
   ROOT/   Sun, 14 Oct 2001 19:13:54 GMT
   examples/   Sun, 14 Oct 2001 19:13:52 GMT
   manager/   Sun, 14 Oct 2001 19:13:54 GMT
   tech/   Mon, 17 Dec 2001 19:51:08 GMT
   test/   Mon, 17 Dec 2001 20:37:12 GMT
   tomcat-docs/   Sun, 14 Oct 2001 19:13:52 GMT
   webdav/   Sun, 14 Oct 2001 19:13:54 GMT








and when I click test, I get just this.


-
Apache Tomcat/4.0.1
-
can anybody help me here please.





Madu Ramanujan
Business Analyst
Pacificorp





-Original Message-
From: Ketharinath Kamalanathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 9:56 AM
To: [EMAIL PROTECTED]
Subject: Re: tomcat4.0, how to ad new context ??





does your Server Startup now?


/KK
- Original Message -
From: "sufi malak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2001 11:48 AM
Subject: Re: tomcat4.0, how to ad new context ??





> It still does not work when I add a context in server.xml like :
>   reloadable="true">
>
>
> >From: Ketharinath Kamalanathan <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> >reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: tomcat4.0, how to ad new context ??
> >Date: Thu, 29 Nov 2001 11:32:11 -0600
> >
> >Malak:
> >
> >I just went thru the process and got the TomCat Srever up.
> >
> >First lets try to start the server.
> >
> >Assuming that your tomcat is installed in c:\tomcat, from the dos
prompt,
> >say set CATALINA_HOME="c:\tomcat". Also check that you have the
JAVA_HOME
> >set properly to the folder where jdk is installed.
> >
> >Then from the bin folder of tomcat, say startup. It should work.
> >
> >Ofcourse, I am mentioning about the Windows Env. I know little on Unix
env.
> >
> >Shout if you still have any problems. Then we shall oproceed to deploy
the
> >app.
> >
> >Thanks
> >
> >/KK
> >
> >- Original Message -
> >From: "sufi malak" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, November 29, 2001 10:50 AM
> >Subject: tomcat4.0, how to ad new context ??
> >
> >
> > > Hi, It's my first time using Tomcat4, so I created an application
called
> > > activeuser and put it in webapps and then I added in server.xml this
:
> > >  > >  reloadable="true">
> > >
> > > When I try to start tomcat4 server it does not, but whenever I take
it
> >of
> > > tomcat4 start by showing  catalina.e.
> > > thanks
> > >
> > >
> > > _
> > > Get your FREE download of MSN Explorer at
> >http://explorer.msn.com/intl.asp
> > >
> > >
>
>
===

> > > 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/j

How Hide Url


I´m using Tomcat 3.2.3, so I want to know how can I hide the url that
appears in the browser.
Example:
http://www.test.com/myContext/test/util/foo.htm

and I want that appear only:
http://www.test.com/myContext/

and the same when I use servlets.
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://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



Re: JSP, J2EE


Hi Chad,
I am new to this stuff too, but I think you are very lost beacause of the following reasons:
1 JSP is not an application server.
2    JSP is part of the whole J2EE.
3    If you write pure JSP without using any building object from JRUN you should be able to run it any where else.
4   J2EE is an architecture which compsose of many sub sections, which JSP is one part of it.
I hope this would help you
Good luck,
Duc

>From: Chad Gray <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: JSP, J2EE
>Date: Tue, 18 Dec 2001 10:21:44 -0500
>
>Im pretty new to JSP, and im wondering what the big difference
>between JSP,
>and J2EE are?
>
>How different is JRun from JSP/J2EE? If i write code using JRun
>will it
>work on a JSP or J2EE server?
>
>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://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
Join the world’s largest e-mail service with MSN Hotmail. Click Here

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


Re: Mail Encryption




The 
most common form of encryption of email is a public key encryption 
system.
 
You 
can do it yourself with a package like Cryptix (www.cryptix.org) or you can use a program like 
enigma (enigma.intouch.ca).  Both work well.  Enigma has enough 
overhead to it that it won't work well in high volume situations since it is 
single threaded. It can handle 5000 to 1 a day however.  It 
functions as a mail server that automatically encrypts and decrypts as needed 
(you set javamail to point at it).  It is a pure java solution.  

 
Cryptix is an encryption package compatible with PGP and it will allow 
you to encrypt your own messages and then send them using JavaMail. If you 
have a high volume requirement this would be the better choice for 
you.
 
You 
will find that the recipients of the messages will be your biggest 
difficulty.  They will forget pass phrases, destroy keyrings, regenerate 
keypairs, move to a different machine and generally gunk things up when 
dealing with encrypted messages.  The software and encryption works fine 
but we find that people just do not deal well with encryption and the small 
amount of discipline that is needed to make it work correctly.  Make sure 
you are prepared to recreate messages if the recipient does something that 
results in the unrecoverable loss of the keys needed to decrypt the 
message.  We have that happen on a regular basis.  Our recipients are 
not employees of our company and we have no control over them so better training 
is not an issue for us.  
 
You 
could also use a XOR based simple encryption system if the data to be encrypted 
is not critical.  Unless designed by a professional encryption expert this 
type of system is relatively easy to break because of one to one character 
mapping and, in most cases I have seen, poor distribution of bit patterns 
generated by the keys.  A professional can make this type of system VERY 
secure but it is relatively difficult to do.  
 
I hope 
that helps you.  
 
 

  -Original Message-From: A mailing list about Java 
  Server Pages specification and reference 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Lorena 
  CarloSent: Tuesday, December 18, 2001 8:24 AMTo: 
  [EMAIL PROTECTED]Subject: [JSP-INTEREST] Mail 
  Encryption
  Hello all,
   
  Does anybody know how I can encrypt a mail that I 
  send using Java. Does JavaMail have a method for this?.
   
  Please help me,
   
  Thanks in advance.
   
  Lorena 
Carlo


Re: Urgent !!!!!!!! Please help me


I did not run your code, but if my memory serves me correctly, you will get
an error on 1 when you re-enter the loop, as the object cld will already
exists.

These questions look very much like those asked on a Java final exam.  Are
you getting help from the board for your take home final?

Celeste

-Original Message-
From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 2:12 AM
To: [EMAIL PROTECTED]
Subject: Re: Urgent  Please help me


Hi All,

1.  for (int i = 0; i < count; i++) {
   Node cld = list.item(i).getFirstChild();
 }

2. Node cld = null;
for (int i = 0; i < count; i++) {
cld = list.item(i).getFirstChild();
}

Which one is more efficient between the two and why.

Thanks,
-ShriKant



"Gare, Trefor" wrote:

> Not quite sure what you're after but the second will allow the JVM to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:(03) 9941 4295
>
> > -Original Message-
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Urgent  Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==
> > =
> > 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

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



Re: JSP, J2EE


Lets see if I can shed some light on this for you.

J2EE - Java 2 Enterprise Edition.  The "package" from Sun the you can
download, which contains all the additional libraries bundled together for
you, such as the extended JDBC libraries, RMI libraries, etc.  Differs from
J2SE in that the standard edition does NOT include the additional libraries,
but they can be downloaded and installed separately.

JSP - Java Server Pages.  A Rapid Application Development (RAD) means of
creating servlets.  Servers implementing a particular Servlet standard, as
defined by Sun, are required to compile the JSP to a servlet, and display
the resulting HTML in a browser window.

JRUN - One of many third party JSP/Servlet servers that can be used to
develop JSP and servlets.  JRUN also includes an EJB server if you purchase
the top tier package. Other JSP/servlet servers include: Orion, BEAWeblogic,
IBM Websphere, etc.

Go to the Sun web site and so a search on JSP, servlet, and EJB.  You will
discover that their are standards for each of these, and when you go to
purchase a JSP server, you definitely want to determine which version of the
standard the server is implementing, so that you can set up your development
environment with the correct J2EE version.

Hope that this helps!

Celeste

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 9:22 AM
To: [EMAIL PROTECTED]
Subject: JSP, J2EE


Im pretty new to JSP, and im wondering what the big difference between JSP,
and J2EE are?

How different is JRun from JSP/J2EE?  If i write code using JRun will it
work on a JSP or J2EE server?

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://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



Modifying tag attribute values on page reloading


Anything within a JSP custom tag is interpreted only the first time a page
is loaded. So, if I have a run-time expression value defining an attribute
value in the tag, when the page loads, it reads in the current value, then
on subsequent reloads any changes in that value are ignored.  What if I
actually want this value to be updated on a page reload, because the value
is changing?  With standard JSP syntax, I can set the scope on a bean -- is
there an easy way to do the same when using a custom tag instead?  The goal
here is to not have to resort to the useBean syntax for non-savvy developers
who are using the tags.

Steve

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



Re: JSP, J2EE


18/12/2001 16:27:32, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote:

>Lets see if I can shed some light on this for you.
>
>J2EE - Java 2 Enterprise Edition.  The "package" from Sun the you can
>download, which contains all the additional libraries bundled together for
>you, such as the extended JDBC libraries, RMI libraries, etc.  Differs from
>J2SE in that the standard edition does NOT include the additional libraries,
>but they can be downloaded and installed separately.
>
>JSP - Java Server Pages.  A Rapid Application Development (RAD) means of
>creating servlets.  Servers implementing a particular Servlet standard, as
>defined by Sun, are required to compile the JSP to a servlet, and display
>the resulting HTML in a browser window.

  I would not say that JSP pages are a "cheap" way of creating Servlets. I would say 
it is better to look at JSP pages as the "view" of the whole system. Servlets are 
something more sophisticated than JSP pages. Arguably, the business logic
that cannot (or need not) reside in a Java Bean should reside within Servlets rather 
than within JSP pages.

>JRUN - One of many third party JSP/Servlet servers that can be used to
>develop JSP and servlets.  JRUN also includes an EJB server if you purchase
>the top tier package. Other JSP/servlet servers include: Orion, BEAWeblogic,
>IBM Websphere, etc.
>
>Go to the Sun web site and so a search on JSP, servlet, and EJB.  You will
>discover that their are standards for each of these, and when you go to
>purchase a JSP server, you definitely want to determine which version of the
>standard the server is implementing, so that you can set up your development
>environment with the correct J2EE version.
>
>Hope that this helps!
>
>Celeste
>
>-Original Message-
>From: Chad Gray [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 18, 2001 9:22 AM
>To: [EMAIL PROTECTED]
>Subject: JSP, J2EE
>
>
>Im pretty new to JSP, and im wondering what the big difference between JSP,
>and J2EE are?
>
>How different is JRun from JSP/J2EE?  If i write code using JRun will it
>work on a JSP or J2EE server?
>
>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://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
>
__
"It can only be attributed to human error"
2001 A Space Odyssey

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



Re: JSP, J2EE


Thanks everyone for the help!  One last question.

What is your favorite program to develop in?  Forte?  JRun Studio?  Forte
looks really nice so far!

Probably should respond directly to me instead of the list.

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



Re: JSP, J2EE


  Yes Forte is great. I would go for Forte.

18/12/2001 17:15:29, Chad Gray <[EMAIL PROTECTED]> wrote:

>Thanks everyone for the help!  One last question.
>
>What is your favorite program to develop in?  Forte?  JRun Studio?  Forte
>looks really nice so far!
>
>Probably should respond directly to me instead of the list.
>
>===
>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
>
__
"It can only be attributed to human error"
2001 A Space Odyssey

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



Re: JSP, J2EE


Panagiotis,

If you follow the MVC architecture to a "T", you are correct in that JSP
should only contain the "view" and not the logic.  But lets not forget what
JSP's really are, and what they were initially "marketed" as: a shorthand,
RAD way of creating servlets.  Now you can do a lot more "logic" work in a
pure servlet, but coding in pure servlets requires more experience than
writing a JSP.  And if you have a team of developers who are relatively new
to Java, JSP and serlvets, and you have a very short development time frame,
what are you going to go with?  Pure servlets, or mostly JSP's with a few
critical important servlets for the controller and heavy logic segments of
the product?  I would go for the latter, especially if I have a tag library
that helps me encapsulate a large portion of my business logic in the
underlying tag library servlets, and allows my more junior developers to
create JSP's quickly and accurately.  Remember, part of the job of being an
architect/senior developer is balancing the theoretical with what is
realistic in your given development time frame, and your development teams
skill level.

Just my 2 cents worth!

Celeste





-Original Message-
From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP, J2EE


18/12/2001 16:27:32, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote:

>Lets see if I can shed some light on this for you.
>
>J2EE - Java 2 Enterprise Edition.  The "package" from Sun the you can
>download, which contains all the additional libraries bundled together for
>you, such as the extended JDBC libraries, RMI libraries, etc.  Differs from
>J2SE in that the standard edition does NOT include the additional
libraries,
>but they can be downloaded and installed separately.
>
>JSP - Java Server Pages.  A Rapid Application Development (RAD) means of
>creating servlets.  Servers implementing a particular Servlet standard, as
>defined by Sun, are required to compile the JSP to a servlet, and display
>the resulting HTML in a browser window.

  I would not say that JSP pages are a "cheap" way of creating Servlets. I
would say it is better to look at JSP pages as the "view" of the whole
system. Servlets are something more sophisticated than JSP pages. Arguably,
the business logic
that cannot (or need not) reside in a Java Bean should reside within
Servlets rather than within JSP pages.

>JRUN - One of many third party JSP/Servlet servers that can be used to
>develop JSP and servlets.  JRUN also includes an EJB server if you purchase
>the top tier package. Other JSP/servlet servers include: Orion,
BEAWeblogic,
>IBM Websphere, etc.
>
>Go to the Sun web site and so a search on JSP, servlet, and EJB.  You will
>discover that their are standards for each of these, and when you go to
>purchase a JSP server, you definitely want to determine which version of
the
>standard the server is implementing, so that you can set up your
development
>environment with the correct J2EE version.
>
>Hope that this helps!
>
>Celeste
>
>-Original Message-
>From: Chad Gray [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 18, 2001 9:22 AM
>To: [EMAIL PROTECTED]
>Subject: JSP, J2EE
>
>
>Im pretty new to JSP, and im wondering what the big difference between JSP,
>and J2EE are?
>
>How different is JRun from JSP/J2EE?  If i write code using JRun will it
>work on a JSP or J2EE server?
>
>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://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
>
__
"It can only be attributed to human error"
2001 A Space Odyssey

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

SSL, help




Anybody can tell me how to enable ssl 
in tomcat.
When a https communication comes from apache a 
MalFormedUrlException is thorwed by tomcat when try to invocate 
servlet.
thanks.
 


Re: JSP, J2EE


Chad,

I've used both.  Forte tends to be a memory hog, which is an important
consideration if you are running your JSP/serlvet server on your local
machine during development vs using a group development server.  But overall
it is nice for developing both Servlets and Java class objects.  If your
development environment is short on memory, you can look at JRUN Studio, but
I only use it for Servlet and JSP development, not Java class development.
Keep in mind that JRUN studio is geared towards working with JRUN server and
JRUN's tag libraries, so any additional tag libraries you import will not
appear within the IDE.

Celeste

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP, J2EE


Thanks everyone for the help!  One last question.

What is your favorite program to develop in?  Forte?  JRun Studio?  Forte
looks really nice so far!

Probably should respond directly to me instead of the list.

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



Re: JSP, J2EE


  I would say it depends.

  It depends on what you really want to do. If, as you said, follow the MVC model 
strictly then you are right, JSP pages can be used mainly for the "view" part. You 
see, most of the large-scale enterprise systems use the MVC architecture
therefore loads of people use JSP pages just for the "view" of the whole system. Their 
logic resides mainly on Java Beans, EJBs and Servelts.

  On the other hand, if you implement a small-scale system, you could easily put any 
logic within JSP pages. As you said, writing Servlets require more experience than 
writing JSP. Add on top of this any time constraints, possible lack of team
skills and then you realise that JSP pages can do the trick.

18/12/2001 17:22:55, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote:

>Panagiotis,
>
>If you follow the MVC architecture to a "T", you are correct in that JSP
>should only contain the "view" and not the logic.  But lets not forget what
>JSP's really are, and what they were initially "marketed" as: a shorthand,
>RAD way of creating servlets.  Now you can do a lot more "logic" work in a
>pure servlet, but coding in pure servlets requires more experience than
>writing a JSP.  And if you have a team of developers who are relatively new
>to Java, JSP and serlvets, and you have a very short development time frame,
>what are you going to go with?  Pure servlets, or mostly JSP's with a few
>critical important servlets for the controller and heavy logic segments of
>the product?  I would go for the latter, especially if I have a tag library
>that helps me encapsulate a large portion of my business logic in the
>underlying tag library servlets, and allows my more junior developers to
>create JSP's quickly and accurately.  Remember, part of the job of being an
>architect/senior developer is balancing the theoretical with what is
>realistic in your given development time frame, and your development teams
>skill level.
>
>Just my 2 cents worth!
>
>Celeste
>
>
>
>
>
>-Original Message-
>From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, December 18, 2001 11:10 AM
>To: [EMAIL PROTECTED]
>Subject: Re: JSP, J2EE
>
>
>18/12/2001 16:27:32, "Haseltine, Celeste" <[EMAIL PROTECTED]> wrote:
>
>>Lets see if I can shed some light on this for you.
>>
>>J2EE - Java 2 Enterprise Edition.  The "package" from Sun the you can
>>download, which contains all the additional libraries bundled together for
>>you, such as the extended JDBC libraries, RMI libraries, etc.  Differs from
>>J2SE in that the standard edition does NOT include the additional
>libraries,
>>but they can be downloaded and installed separately.
>>
>>JSP - Java Server Pages.  A Rapid Application Development (RAD) means of
>>creating servlets.  Servers implementing a particular Servlet standard, as
>>defined by Sun, are required to compile the JSP to a servlet, and display
>>the resulting HTML in a browser window.
>
>  I would not say that JSP pages are a "cheap" way of creating Servlets. I
>would say it is better to look at JSP pages as the "view" of the whole
>system. Servlets are something more sophisticated than JSP pages. Arguably,
>the business logic
>that cannot (or need not) reside in a Java Bean should reside within
>Servlets rather than within JSP pages.
>
>>JRUN - One of many third party JSP/Servlet servers that can be used to
>>develop JSP and servlets.  JRUN also includes an EJB server if you purchase
>>the top tier package. Other JSP/servlet servers include: Orion,
>BEAWeblogic,
>>IBM Websphere, etc.
>>
>>Go to the Sun web site and so a search on JSP, servlet, and EJB.  You will
>>discover that their are standards for each of these, and when you go to
>>purchase a JSP server, you definitely want to determine which version of
>the
>>standard the server is implementing, so that you can set up your
>development
>>environment with the correct J2EE version.
>>
>>Hope that this helps!
>>
>>Celeste
>>
>>-Original Message-
>>From: Chad Gray [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, December 18, 2001 9:22 AM
>>To: [EMAIL PROTECTED]
>>Subject: JSP, J2EE
>>
>>
>>Im pretty new to JSP, and im wondering what the big difference between JSP,
>>and J2EE are?
>>
>>How different is JRun from JSP/J2EE?  If i write code using JRun will it
>>work on a JSP or J2EE server?
>>
>>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://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

Re: Modifying tag attribute values on page reloading


Steve Bang wrote:
>
> Anything within a JSP custom tag is interpreted only the first time a page
> is loaded.

Maybe I'm missing something here, but a custom tag is executed for every
request.

> So, if I have a run-time expression value defining an attribute
> value in the tag, when the page loads, it reads in the current value, then
> on subsequent reloads any changes in that value are ignored.

A request time attribute value, for a standard tag as well as a custom tag,
is evaluated for every request.

> What if I
> actually want this value to be updated on a page reload, because the value
> is changing?  With standard JSP syntax, I can set the scope on a bean -- is
> there an easy way to do the same when using a custom tag instead?  The goal
> here is to not have to resort to the useBean syntax for non-savvy developers
> who are using the tags.

Unless I miss something, you shouldn't have to worry about this at all; just
define that the custom tag attribute accepts a request time attribute value
in the TLD, and set the value with a JSP expression in the JSP page.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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



Re: Error in JSP on tomcat accessing MySQL - NumberFormatException


What version of Tomcat are you using? From the error, it looks like you're
using an older version of Tomcat 4.0. Try it with the latest version.

Justy

- Original Message -
From: "Darnell Whitaker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 12:35 PM
Subject: Error in JSP on tomcat accessing MySQL - NumberFormatException


> I get the following error when I run my jsp test against mysql.
> ...
>
> A Servlet Exception Has Occurred
> Exception Report:
> org.apache.jasper.JasperException: Unable to compile class for JSP
> at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unkno
> wn Source)
> at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
> Source)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
> at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
> ...
>
> Root Cause:
> java.lang.NumberFormatException: mysql
> at java.lang.Integer.parseInt(Integer.java:414)
> at java.lang.Integer.parseInt(Integer.java:463)
> at org.apache.jasper.compiler.Compiler.getJspLineErrors(Unknown
Source)
> at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> ...
> Here is the sample source code snippet
>
>
> 
> try {
> Class.forName("org.gjt.mm.mysql.Driver").newInstance();
> connection = DriverManager.getConnection(connectionURL,
> "", "");
> }
> 
>
> I blows as soon as I try to get the connection - this works fine as
servlet!
> Thanks in advance!
>
> _ Darnell Whitaker ICQ#:142079231
> SMS: (Send an SMS message to my ICQ): +2783142142079231 More ways to
contact
> me: http://wwp.icq.com/142079231 _
>
>
===
> 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



Re: Modifying tag attribute values on page reloading


Ahh, you're right -- I guess it's our implementation that prevents the tag
from behaving as expected -- we're setting it to a session scope, I think.
If I remember correctly, we're trying to have tags emulate the behavior of
the Java applets that they're replacing.  Once a Java applet is loaded, the
only way you can change the parameters is programmatically or by killing the
browser and re-opening it.  So, as a side effect of having tags emulate the
applet behavior, we make standard tag functionality not work as expected.
Hmmm...

Steve

> -Original Message-
> From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Modifying tag attribute values on page reloading
>
>
> Steve Bang wrote:
> >
> > Anything within a JSP custom tag is interpreted only the
> first time a page
> > is loaded.
>
> Maybe I'm missing something here, but a custom tag is
> executed for every
> request.
>
> > So, if I have a run-time expression value defining an attribute
> > value in the tag, when the page loads, it reads in the
> current value, then
> > on subsequent reloads any changes in that value are ignored.
>
> A request time attribute value, for a standard tag as well as
> a custom tag,
> is evaluated for every request.
>
> > What if I
> > actually want this value to be updated on a page reload,
> because the value
> > is changing?  With standard JSP syntax, I can set the scope
> on a bean -- is
> > there an easy way to do the same when using a custom tag
> instead?  The goal
> > here is to not have to resort to the useBean syntax for
> non-savvy developers
> > who are using the tags.
>
> Unless I miss something, you shouldn't have to worry about
> this at all; just
> define that the custom tag attribute accepts a request time
> attribute value
> in the TLD, and set the value with a JSP expression in the JSP page.
>
> Hans
> --
> Hans Bergsten   [EMAIL PROTECTED]
> Gefion Software http://www.gefionsoftware.com
> Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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
>
>

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



Re: TagLib


Take a look at the Tomcat log files for error messages that might explain
what happened. You should see some sort of an exception or stack trace at
the time the error occurred.

Justy

- Original Message -
From: "Atul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 12:50 AM
Subject: TagLib


> Hi everybody,
>
> can anyone help me in writing the taglib - custom tags for the tomcat.
> i have tried a lot but unable to get it. every time i got error as
> "HTTP Status 503 - Servlet jsp is currently unavailable
> The requested service (Servlet jsp is currently unavailable) is not
> currently available.
> "
> can anybody help me in this case ?
>
> atul
>
>
> _
> 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://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



Re: SSL, help


Here's a great JavaWorld article on how to use https in your client code:

http://www.javaworld.com/javaworld/javatips/jw-javatip96.html

You need to have JSSE (Java Secure Sockets Extension) to construct a URL
object with HTTPS as the protocol.

Justy

- Original Message -
From: "chepa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 9:17 AM
Subject: SSL, help


Anybody can tell me how to enable ssl in tomcat.
When a https communication comes from apache a MalFormedUrlException is
thorwed by tomcat when try to invocate servlet.
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://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



Re: Modifying tag attribute values on page reloading


If you're using JRun 3.1 (and perhaps other application servers), it's also
a good idea to include a release() method in your tag, which will reset any
instance variables to their initial state.

>From the JRun 3.1 Release Notes:

Caching for JSP custom tag handlers
JRun 3.1 improves JSP custom tag performance by caching tag handler objects.
Tag handler developers should note the following:

Tag handlers are cached per instance per page. For example, if a JSP calls
the same custom tag twice, JRun caches two instances.
If your tag handler performs any kind of state management, you will have to
implement the Tag.release method to perform clean up before JRun caches the
tag instance.


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Steve Bang
Sent: Tuesday, December 18, 2001 2:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Modifying tag attribute values on page reloading


Ahh, you're right -- I guess it's our implementation that prevents the tag
from behaving as expected -- we're setting it to a session scope, I think.
If I remember correctly, we're trying to have tags emulate the behavior of
the Java applets that they're replacing.  Once a Java applet is loaded, the
only way you can change the parameters is programmatically or by killing the
browser and re-opening it.  So, as a side effect of having tags emulate the
applet behavior, we make standard tag functionality not work as expected.
Hmmm...

Steve

> -Original Message-
> From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Modifying tag attribute values on page reloading
>
>
> Steve Bang wrote:
> >
> > Anything within a JSP custom tag is interpreted only the
> first time a page
> > is loaded.
>
> Maybe I'm missing something here, but a custom tag is
> executed for every
> request.
>
> > So, if I have a run-time expression value defining an attribute
> > value in the tag, when the page loads, it reads in the
> current value, then
> > on subsequent reloads any changes in that value are ignored.
>
> A request time attribute value, for a standard tag as well as
> a custom tag,
> is evaluated for every request.
>
> > What if I
> > actually want this value to be updated on a page reload,
> because the value
> > is changing?  With standard JSP syntax, I can set the scope
> on a bean -- is
> > there an easy way to do the same when using a custom tag
> instead?  The goal
> > here is to not have to resort to the useBean syntax for
> non-savvy developers
> > who are using the tags.
>
> Unless I miss something, you shouldn't have to worry about
> this at all; just
> define that the custom tag attribute accepts a request time
> attribute value
> in the TLD, and set the value with a JSP expression in the JSP page.
>
> Hans
> --
> Hans Bergsten   [EMAIL PROTECTED]
> Gefion Software http://www.gefionsoftware.com
> Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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
>
>

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



Re: Off Topic: Unicode


Hello Mike and everybody!

>> >>> Maybe doing ࣕ would be better in a general setting?

>> Well, i was speaking about doing out.write("ࣕ") in a _servlet_.
> Bringing up the "�" representation is a good idea, but html character
> entities should be decimal numbers and "\u2261"  converted from hex to
> decimal is 8801.
Thanks! And we also could do "≡" to avoid conversion to
decimal. This way we enlarge our html page by 1 byte, of course.

MA> Originally, I highly doubted that something as high as 8801 was doable as
MA> an HTML character entity.  According to "Webmaster in a Nutshell", these
MA> HTML character entities must be ISO-8859-1 characters, and not even the
MA> full 256 ISO-8859-1 character set is supported.
This is an abstract from the HTML 4.0 spec, http://www.w3.org/TR/REC-html40

'3.2.3 Character references

Character references are numeric or symbolic names for characters that
may be included in an HTML document. They are useful for referring to
rarely used characters, or those that authoring tools make it difficult
or impossible to enter. You will see character references throughout
this document; they begin with a "&" sign and end with a semi-colon (;).
Some common examples include:

 "<" represents the < sign.
 ">" represents the > sign.
 """ represents the " mark.
 "å" (in decimal) represents the letter "a" with a small circle above it.
 "И" (in decimal) represents the Cyrillic capital letter "I".
 "水" (in hexadecimal) represents the Chinese character for water.'

So these look pretty much like Unicode character codes.
This way we embed, say cyrillics into ISO-8859-1 coded pages, but it
is quite wastefull as instead of two bytes per char as we would need
with utf-8 or 1 byte per char as with windows-1251 we need at least 7.

But if this are just some chars in the doc it is quite affordable!

MA> However I checked anyway and "≡" works great --just to show how
MA> accurate a book from June 99 is.  I ran:
MA> for(int i=0x2200; i<=0x22ff; i++)
MA> {
MA> if ( i % 16 == 0 ) out.println("");
MA> out.print("&#"+i+";");
MA> }
MA> To print the entire "Unicode Mathematical Operators" set.  About 1/4
MA> displayed in Internet Explorer 6.0, and the full set displayed in Netscape
MA> 6.1 and Opera 6.0.
Thanks for investigating this, it's an interesting result!

MA> So it looks like 'System.out.println("&8801;");' is the solution as you
MA> said.

Why System.out ;-) ?
Sure it is just 'out' if we're in a jsp or whatever you have named it
if it is your own servlet!
So, 'out.write("≡");' is the solution!
(Please excuse me for being over-pedantic!)
Best regards,
 Antonmailto:[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://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



Re: SSL, help


thanks for your help
- Original Message -
From: "horwat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 4:29 PM
Subject: Re: SSL, help


> Here's a great JavaWorld article on how to use https in your client code:
>
> http://www.javaworld.com/javaworld/javatips/jw-javatip96.html
>
> You need to have JSSE (Java Secure Sockets Extension) to construct a URL
> object with HTTPS as the protocol.
>
> Justy
>
> - Original Message -
> From: "chepa" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 18, 2001 9:17 AM
> Subject: SSL, help
>
>
> Anybody can tell me how to enable ssl in tomcat.
> When a https communication comes from apache a MalFormedUrlException is
> thorwed by tomcat when try to invocate servlet.
> 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://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



Communication between JSP and servlets


I am not able to get session or application scope tracking to work for some
reason.  Currently the code is trying to use
application tracking, but I know I should be using session tracking for
items that are for the user session.

In my userLoggidIn.jsp page I have:
   Error Message = < <%= application.getAttribute("errorMessage") %> >

In my servlet I have:
   application.setAttribute("errorMessage", "NO error message");
   response.sendRedirect( response.encodeRedirectURL("/userLoggedIn.jsp");

The output is *always*: "Error Message = < null >".  What the heck am I
doing wrong?

Thanks in advance,

-- Jim

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



Re: Communication between JSP and servlets


Jim Lindsay wrote:
>
> I am not able to get session or application scope tracking to work for some
> reason.  Currently the code is trying to use
> application tracking, but I know I should be using session tracking for
> items that are for the user session.
>
> In my userLoggidIn.jsp page I have:
>Error Message = < <%= application.getAttribute("errorMessage") %> >
>
> In my servlet I have:
>application.setAttribute("errorMessage", "NO error message");
>response.sendRedirect( response.encodeRedirectURL("/userLoggedIn.jsp");
>
> The output is *always*: "Error Message = < null >".  What the heck am I
> doing wrong?

Note that the sendRedirect() method takes a "server-relative" path as
opposed to a "context-relative" path (as most other methods require).
In your example, you redirect to http://yourserver/userLoggedIn.jsp. If
your servlet is not part of the default context, you're redirecting to a
different application; hence, the application scope attribute is not
available. Try this instead:

  String jspPath = request.getContextPath() + "/userLoggedIn.jsp";
  response.sendRedirect( response.encodeRedirectURL(jspPath);

This way your redirect works as expected no matter which context path
you use for the application.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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



Re: Off Topic: Unicode


> This is an abstract from the HTML 4.0 spec, http://www.w3.org/TR/REC-html40

Thanks, I had been using an Orielly book for my research and there was
much omitted.  The HTML spec is definitely a better source of info.

> MA> So it looks like 'System.out.println("&8801;");' is the solution as you
> MA> said.
>
> Why System.out ;-) ?

Because, if you follow the thread back to the beginning that was what the
original question was about.  This was also why I was thrown for a loop
when you used "ࣕ" as I wasn't expecting HTML/JSP output.  He was
wanting to "System.out" and redirect it to a file if I recall.

Michael Akerman

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



Re: Communication between JSP and servlets


Hans, that worked.  Thank you *very* much!

For everyone else, the root problem was that I had my JSP files in the
%CATALINA_HOME%/webapps/ROOT directory, instead of in my webapp
directory.  Since they weren't in the same application, Tomcat did not let
them share information.

BTW, Hans is the author of JavaServer Pages (O'Reilly),
http://TheJSPBook.com.

(The supposed String literal problem had nothing to do with anything.  Guys
-- a string literal is automatically converted to a String, and a String
*is* an Object.  But thanks for trying to help, I really do appreciate that.)

-- Jim

At 02:50 PM 12/18/2001, you wrote:
>Jim,
>
> > Thanks very much for responding, Hans.  I tried your suggestion in my
> servlet,
> > but now Tomcat can't even find the JSP page!  I had this problem with using
> > RequestDispatcher.forward() -- I just couldn't figure out where the heck it
> > was expecting the JSP to be.
> >
> > -- I am using Tomcat 4.0.
> > -- My index.jsp (set to be the welcome page), resides in
> > %CATALINA_HOME%/webapps/ROOT -- this is the Tomcat default welcome page
> > location.
> > -- My app is called "spads", and the specific servlet is in the package
> > spads.user.  So it is %CATALINA_HOME%/webapps/
> > spads/WEB-INF/classes/spads/user/UserLoginServlet.class.
>
>Your JSP pages and your servlets must be in the same web application,
>so move all your JSP pages to the webapps/spads directory. Or, move your
>servlets to the ROOT (default) application.
>
> > -- When I tried to use RequestDispatcher.forward(), it seemed like no
> matter
> > where I put it the new JSP page, it could not be located.
>
>Probably because you can only forward to resources (servlets, JSP pages)
>within the same web application, and the path you give in
>getRequestDispatcher()
>must be a context-relative path (starting with a slash, interpreted relative
>to the context path, i.e. "/spads" in your case).
>
> > -- Furthermore, UserLoginServlet couldn't even locate the old index.jsp
> that I
> > was going back to on login errors.
> > -- So I tried sendRedirect(), and that worked, as long as the new
> > userLoggedIn.jps was also in %CATALINA_HOME%/webapps/ROOT.
> > -- Everything seemed to be working.  That is, until I tried using
> > session/application tracking...
>
>See the above. If you make the servlets and the JSP pages part of the same
>application, things will work as expected.
>
>Hans
>--
>Hans Bergsten   [EMAIL PROTECTED]
>Gefion Software http://www.gefionsoftware.com
>Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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



Forwarding a request to a cgi script on a different machine


Hi,

I am making a web application using Iplanet Application Server.
I am using Oracle 6i to genrate reports. The reports are generated by
invoking a cgi script of Oracle Reports 6i. If I use response.sendRedirect,
it works.

res.sendRedirect
("http://157.227.15.228/cgi-bin/script?server=REP60_WisperSu
n&report=Audits_CoverSheet.RDF&destype=cache¶mform=no&userid=eaton/eaton

@wisper&pagestreaming=no&p_auditid=1372&p_format=HTML&desformat=HTML");


But, the problem is, that I don't want to show all these variables in the
URL. Basically, I don't not want to use a query string. I want to use the
POST method.
But, I also do not want to use hidden fields in a form as teh user can view
its source.
I want to submit a form using 'Post' to a servlet and then forward the
request to a JSP, which will add more parameters to the request and in turn
forward it to the cgi script.

The Report server, which has the cgi script and my application are on
different machines.

I tried forwarding the request from the servlet to the cgi script.
RequestDispatcher dispatcher =
this.getServletContext().getRequestDispatcher
("http://157.227.15.228/cgi-bin
/script");
dispatcher.forward(req,res);

But this doesn't work.

1. Is it possible to forward a request to a cgi script?
2. How do I give teh absolute path, as they are on different machines?

Regards,
Vibha

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



Donna Stiehl/FALK is out of the office.


I will be out of the office starting  12/18/2001 and will not return until
01/02/2002.

HAPPY HOLIDAYS!!  I'll be out of the office until Tuesday, Jan. 02,  If you
have an emergency, call me at 336 580 3227.  I will be picking up voice
mails daily!

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



Is there any file size limit to include??


Hi all,
is there any limit in file size to include in jsp?

My situation is like this..

I want to include one html file of 80KB in a JSP. But when i tried it is
giving error. But if i split the html into three files and include it is
working fine. Pls tell is there any limit to the file size in JSP include?

Thnx in advance

Thanks,
Sabari Arasu

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



Re: Forwarding a request to a cgi script on a different machine


I have a small tricky to do it

-   your 1.jsp save that parameter in session, ex: name it with
(String)param
-   redirect to 2.jsp
-   2.jsp read param session
-   2.jsp contain html and form inside
  ..

-   combine with javascript when the body onLoad document.form.submit

it is more secure than redirect an show parameter on its address

-dwi, unocal76


> -Original Message-
> From: Vibha Jindal [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 1:22 PM
> To:   [EMAIL PROTECTED]
> Subject:  Forwarding a request to a cgi script on a different machine
>
> Hi,
>
> I am making a web application using Iplanet Application Server.
> I am using Oracle 6i to genrate reports. The reports are generated by
> invoking a cgi script of Oracle Reports 6i. If I use
> response.sendRedirect,
> it works.
>
> res.sendRedirect
> ("http://157.227.15.228/cgi-bin/script?server=REP60_WisperSu
> n&report=Audits_CoverSheet.RDF&destype=cache¶mform=no&userid=eaton/eat
> on
>
> @wisper&pagestreaming=no&p_auditid=1372&p_format=HTML&desformat=HTML");
>
>
> But, the problem is, that I don't want to show all these variables in the
> URL. Basically, I don't not want to use a query string. I want to use the
> POST method.
> But, I also do not want to use hidden fields in a form as teh user can
> view
> its source.
> I want to submit a form using 'Post' to a servlet and then forward the
> request to a JSP, which will add more parameters to the request and in
> turn
> forward it to the cgi script.
>
> The Report server, which has the cgi script and my application are on
> different machines.
>
> I tried forwarding the request from the servlet to the cgi script.
> RequestDispatcher dispatcher =
> this.getServletContext().getRequestDispatcher
> ("http://157.227.15.228/cgi-bin
> /script");
> dispatcher.forward(req,res);
>
> But this doesn't work.
>
> 1. Is it possible to forward a request to a cgi script?
> 2. How do I give teh absolute path, as they are on different machines?
>
> Regards,
> Vibha
>
> ==
> =
> 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