Re: jsp Requested Page

2001-08-31 Thread Atilio Ranzuglia

Try reading the value of the 'Referer' request header,
this should tell you were the request come from. I
mean the original page not the client machine.
You can use: request.getHeader(Referer);

Good luck
Atilio



--- SriHari [EMAIL PROTECTED] wrote:
 I forgot to tell u
 I have to use this method for my entire Project so
 It would be much better
 that this function is dynamic


 SriHari

 -Original Message-
 From: Rajinder Sandhu
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 9:57 AM
 To: [EMAIL PROTECTED]
 Subject: Re: jsp Requested Page


 one way is define a hidden variable in Page A and
 assign the name of the
 Jsp.
 Retrieve it in Page B.



 -Original Message-
 From: SriHari [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 9:45 AM
 To: [EMAIL PROTECTED]
 Subject: jsp Requested Page


 Hi There


 I want to know from which page the request has come
 in a jsp page
 is there any method for that

 ex:
  page A calls Page B then in page B i should know or
 identify that the
 request is from page A



 cheers
 Sri Hari


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

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


http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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


http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

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

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



Problem with request object on second include

2001-08-13 Thread Atilio Ranzuglia

Hi everybody:

I am including two files on one jsp file like this:
jsp:include page=page1.jsp flush=true /
jsp:include page=page2.jsp flush=true /

In both, page1.jsp and page2.jsp I am using 'request'
object.
When I try to access the getParameter() method of
'request' in the second page I always get a null
value.

If I try to includes the pages reversed it is the
same.

Obviously my problem if with the 'flush' parameter,
why request is no longer available after the first
inclusion? The buffer should by emptyed nor the
request object. What can be happening or this is
normal and there is another sollution?

PD: I cannot use the %@ include % directive, I need
it on execution time

Thanks

__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

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

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



Re: No Cache on JSP Page

2001-08-06 Thread Atilio Ranzuglia

David:

You are saying that meta-tags are unreliable, but also
you are saying that Pragma and Cache-control works
fine. Well, what you should know is that Pragma and
Cache-control are meta-tags!!! :O

Atilio
Good luck

--- David M. Karr [EMAIL PROTECTED] wrote:
  Josh == Josh Pepper Pepper writes:

 Josh Hey, all.
 JoshTrying to prevent a login page from
 caching, and the usual meta-tags
 Josh don't seem to be working. Anyone have any
 thoughts on this?

 Other people may have different information, but
 from what I've read (I haven't
 personally tested this), using meta tags to prevent
 caching is unreliable.
 You're better off using headers to specify this.
 You can set these directly in
 the JSP page.

 In particular (I think these are correct), specify
 Pragma: no-cache for HTTP
 1.0 support, and Cache-Control: max-age=0 for HTTP
 1.1 support.

 --

===
 David M. Karr  ; Best Consulting
 [EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ;
 BrainBench CJ12P (#12004)


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Conditionally including jsp:include

2001-07-30 Thread Atilio Ranzuglia

Raj:

you cannot include a servlet in this way. And you are
using '/' and you don't provide '.class' at the end.

you should try including it at translation time (%@
include %).

Otherwise you can make instantiate one and call some
method on it.

Atilio
Good luck



--- Rajehswar V. Rao [EMAIL PROTECTED]
wrote:
 Hi,
 Here i am pasting the snippet...
 Can i use jsp:include like this
 Please tell whether i am missing something.
 Here my requirement is...I want to include
 GetFullNamesServlet if fullnames
 is null
  %
Vector

fullnames=(Vector)application.getAttribute(fullnames);
if(fullnames==null){
 %
 jsp:include page=/servlet/GetFullNamesServlet
 flush=true/
 %
  }
 %

 raj



=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



OFF-TOPIC: ResultSet.getDate()

2001-07-30 Thread Atilio Ranzuglia

Sorry everyone: can anyone help me here?

The following line:

java.sql.Date date = rs.getDate(...);

gives me the following:

date = '2000-08-20'

The hour and minutes are missing.

The same happends with PreparedStatement.setDate(),
the hour and minutes appear to be taking a nap.

Thanks a lot

Atilio

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Adding cookies before output ?

2001-07-26 Thread Atilio Ranzuglia

Andy:

you should try:
%@ include file= %
instead of:
jsp:include page= /

The main difference between them is that the first one
includes the files on translation time (JSP -
Servlet) and the second one includes the page on
running time, wich means that the response object is
not the same on the two pages.

Atilio
Good luck



--- Andy C [EMAIL PROTECTED] wrote:
 - Original Message -
 From: Christopher K. St. John 
 
   The Servlet spec[1] (referenced by the JSP spec)
 says
  it explicitly, but if you think about it, that's
 the
  only way it could possibly work. The headers have

 Which is what I thought should happen.  However
 consider this code
 on a resin server:
 Jsp page 1: test1.jsp
 %
 response.setHeader(Test1,1);
 %
 jsp:include page=/test2.jsp flush=true/
 pHello/p

 Included Jsp page : test2.jsp
 %
 response.setHeader(Test2,2);
 System.out.println(test2);
 %

 If I do a Get /test1.jsp http:1.1  the output I get
 is

 HTTP/1.0 200 OK
 Server: Resin/2.0.0
 Test1: 1
 Set-Cookie: JSESSIONID=aaa6LMorX2NmzB; Path=/
 Content-Type: text/html
 Date: Wed, 25 Jul 2001 15:24:47 GMT

 pHello/p

 Now what happened to the second setHeader output in
 the included file?
 Should it be included or has it gone AWOL ?

 Ta
 Andy C


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Adding cookies before output ?

2001-07-26 Thread Atilio Ranzuglia

Andy:

as specified on JSP 1.1 (Servlet 2.1) the output
(JspWriter derived from PrintWriter) is buffered so
you can set response headers and stuff anytime you
want. But anyway you should try to make it the more
readable possible.

Atilio
Good luck



--- Andy C [EMAIL PROTECTED] wrote:
 Just a quick question.  If I want to add cookies or
 indeed
 set a response header in a jsp page do I need to
 make
 sure it is done before any output is sent.

 Do the jsp specs say anything about this ?

 many thanks
 Andy C


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: question about jsp

2001-07-26 Thread Atilio Ranzuglia

Miguel:

not everybody knows what global.asa does. I don't know
but i heard sometime that it is like a container for
information for everybody.

if this is the behavior you should try the
'application' implicit object.

Atilio
Good luck



--- Miguel Lopez [EMAIL PROTECTED] wrote:
 Hello everyone.

 can be used in jsp or servlets something similar to
 global.asa which is used in asp?

 some example?

 Regards.
 Miguel Lopez



=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Response Send Redirect problem

2001-07-26 Thread Atilio Ranzuglia

WRONG !!!
This is a server message, so can you really say that
it is a browser problem???

Atilio
Good luck



--- Chitra Muthukrishnan [EMAIL PROTECTED] wrote:
 could be a browser problem. Check in some other
 browser.

 -M.Chitra
 www.3rdagenda.com

 At 04:16 AM 7/26/01 +, you wrote:
 Hi all,
   In my applications, when I try to give
  response.sendRedirect(fileName, it gives me an
 error that Response is
  already commited. Infact, in this page, I am
 including some of the jsps,
  wrote earlier. This is case with @pageforward 
 tag too. What is the
  reason and remidy for this?
 
 Thanks in advance
 Smita
 

_
 For Rs. 2,000,000 worth of Aptech scholarships
 click below
 http://events.rediff.com/aptechsch/scholarship.htm
 

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Response Send Redirect problem

2001-07-26 Thread Atilio Ranzuglia

WRONG !!!
It has nothing to do with the browser.

You should try removing any flush methods inside any
included files.

Atilio
Good luck



--- bipin_jsp [EMAIL PROTECTED] wrote:
 Add this lines for cache removing
 out.println(meta http-equiv=\pragma\
 content=\no-cache\);
 out.println(meta
 http-equiv=\cache-control\
 content=\no-cache\);

 response.sendRedirect(filename);
 and use also
 return; statement.




 - Original Message -
 From: Smita [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 26, 2001 9:46 AM
 Subject: Response Send Redirect problem


  Hi all,
   In my applications, when I try to give
 response.sendRedirect(fileName, it gives me an
 error that Response is
 already commited. Infact, in this page, I am
 including some of the jsps,
 wrote earlier. This is case with @pageforward  tag
 too. What is the reason
 and remidy for this?
 
  Thanks in advance
  Smita
 
 

_
  For Rs. 2,000,000 worth of Aptech scholarships
 click below
  http://events.rediff.com/aptechsch/scholarship.htm
 
 

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: having a bean as an attribute of a tag

2001-07-26 Thread Atilio Ranzuglia

Johnny:

I think that you can't pass an object to a custom tag,
instead you pass string enclosed on quotes.

Atilio
Good luck



--- Johnny Blaze [EMAIL PROTECTED] wrote:
 Hi All,

 I'm trying to a pass a bean to my custom tag.  Is
 this possible?  as you can
 see from my code below, I've enclosed %=mybean% in
 quotes.  The browser
 then complains that I cannot convert the string to
 an IteratorBean. If I
 removed the quotes the brower complains that I need
 the quotes.

 Then first part of the code sample is code from my
 JSP page.  The second
 part is my part of my tag definition which assigns
 IteratorBean to the bean
 passed through the tag.

    START OF CODE **
 !-- in my .jsp page --
 jsp:useBean id=myBean class=IteratorBean /
 test:repeat bean=%=mybean%/test:repeat

 // in my tag definition
 IteratorBean bean = null;

 public void setBean(IteratorBean bean){
  this.bean = bean;
 }


    END OF CODE 


 thanks in advance,

 Johnny


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Fw: How can i get all table's name from JDBC driver?

2001-07-26 Thread Atilio Ranzuglia

Joao:

The JDBC driver cannot do that by it self. You should
query the dictionary data of the DB you are using.

Atilio
Good luck



--- João_Folha [EMAIL PROTECTED] wrote:

 - Original Message -
 From: João  mailto:[EMAIL PROTECTED]
 Folha
 To: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 24, 2001 3:48 AM
 Subject: How can i get all table's name from JDBC
 driver?

 Hi there,

 I need to get all table's name from JDBC driver and
 all column's name
 from any table.

 Can you help me?

 cheers
 João Folha



=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Sessions and response.sendRedirect

2001-07-24 Thread Atilio Ranzuglia

Juan:

You can use HttpServletResponse.sendRedirect(String)
any time you want. What you heard is not true. But,
you have to be aware that when you call sendRedirect()
the page processing doesn't stop. It will continue
until the end of the page. It adds a response header
so the browser ask for it.

In some cases it will be good to use jsp:forward
page=... /
It is faster but it is different. With it you don't
have to get back to the browser but this one doesn't
know wich pages has visited.

You can create sessions, but you have one created
automatically, you could use it.
To store information (objects) on the session object
(HttpSession) you can use setAttribute(String,
Object), getAttribute(String) and
removeAttribute(String). On Servlets API 2.1 you have
to use: putValue, getValue, removeValue().

Atilio
Good luck



--- Orozco, Juan Carlos [EMAIL PROTECTED] wrote:
 Hi guys,

 Someone tell me, if i'm using sessions, i can't use
 redirect,..is that
 true??
 You can send me an example of how to create
 sessions..store and retrieve
 information..

 thanks in advance.

 Juan.


 -Original Message-
 From: Rodrigo Gevaerd [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 24, 2001 9:33 AM
 To: [EMAIL PROTECTED]
 Subject: RES: jaxp in JSP


I was using JDeveloper and when JSP is run it
 automatically put some
 classes from its lib. I removed the jaxp classes
 from there and it worked,
 although now appears a warning message when I open
 the JDeveloper saying
 there are classes missing.

Thanks,

 Rodrigo.

  -Mensagem original-
  De: Jayson Falkner [mailto:[EMAIL PROTECTED]]
  Enviada em: Sábado, 21 de Julho de 2001 00:09
  Para: [EMAIL PROTECTED]
  Assunto: Re: jaxp in JSP
 
 
  Hi Rodrigo,
 
  There is a classpath conflict between a older
 sealed JAR and
  one with the
  newer resources. Go through and make sure you
 don't have
  duplicate JAR files
  in your JSP environment.
 
  If you are using and older Tomcat be sure that its
 XML
  parsing resources are
  not the culprit.
 
  Jayson Falkner
  [EMAIL PROTECTED]
 


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

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


http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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



Re: Urgent

2001-07-19 Thread Atilio Ranzuglia

Srinivas:

I haven't used SQL Server, but this is not the list to
post this message, and I don't think that we can help
you in a good way. You should do some research about
SQL Server (it's everywhere on the Internet) and learn
what you need. I'm sure that you will find hundreds of
tutorial, examples, manuals.

Atilio



--- srinivas tadikonda [EMAIL PROTECTED] wrote:

HR
htmldiv style='background-color:'DIVHi,/DIV
DIVnbsp;/DIV
DIVnbsp;nbsp;nbsp; I want to store large amount
of data into sql server6.5 database.nbsp; For this I
am using text datatype.nbsp; But Its takeing 255 to
270 characters only.nbsp; Is there any other
datatypes for storeing large amount of data.nbsp;
Please tell me.nbsp; /DIV
DIVnbsp;/DIV
DIVThanking U/DIV
DIVRegards/DIV
DIVSrinivas/DIV
DIVnbsp;/DIV/divbr clear=allhrGet your FREE
download of MSN Explorer at a
href='http://go.msn.com/bql/hmtag_itl_EN.asp'http://explorer.msn.com/abr/html

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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: THREAD ERROR

2001-07-19 Thread Atilio Ranzuglia

Kapil: in java everything is running on a thread.

All exceptions will stop the current thread in which
is running.

I think that your problem is on your methods where you
are using JDBC library. You should be sure that the
Oracle libraries you need are on the appropiate place.
If it is a .jar file and if you use Tomcat you should
put it into /WEB-INF/lib.

Try it.

Good luck
Atilio



--- Kapil Keshwani [EMAIL PROTECTED] wrote:
 hi all,
 actually i am using a thread in jsp for running mail
 in backend .
 the problem is that the jsp working fine in windows
 operating system but not
 working on unix
 operating system.the jsp page showing internal
 server error
 and in log file it is giving thread error.
 and the error is as follows:
 Thread-9 (TID:0x800333e8,
 sys_thread_t:0x304af710, state:MW, native
 ID:0x60e) prio=5
 at
 oracle.jdbc.ttc7.TTIoer.init(TTIoer.java:100)
 at
 oracle.jdbc.ttc7.Oopen.init(Oopen.java:72)
 at

oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:463)
 at

oracle.jdbc.driver.OracleStatement.init(OracleStatement.java:413)
 at

oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConnection.
 java:470)
 at

oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.java:37
 9)
 at

oracle.jdbc.dbaccess.DBAccess.setNlsParamsClient(DBAccess.java:1034)
 at

oracle.jdbc.ttc7.TTC7Protocol.initNls(TTC7Protocol.java:1152)
 at

oracle.jdbc.driver.OracleConnection.init(OracleConnection.java(Compiled
 Code))
 at

oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java(Comp
 iled Code))
 at

oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java(Compiled
 Code))
 at

java.sql.DriverManager.getConnection(DriverManager.java(Compiled
 Code))
 at

java.sql.DriverManager.getConnection(DriverManager.java(Compiled
 Code))
 at

OpisConnectionPool.Connect11(OpisConnectionPool.java(Compiled
 Code))
 at

OpisConnectionPool.init(OpisConnectionPool.java:22)
 at

_opis._CorrectiveAction__Add._jspService(_CorrectiveAction__Add.java:125)
 at
 oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
 at

oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
 at
 oracle.jsp.JspServlet.doDispatch(JspServlet.java)
 at

oracle.jsp.JspServlet.internalService(JspServlet.java)
 at
 oracle.jsp.JspServlet.service(JspServlet.java)
 at javax.servlet.http.HttpServlet.se





 and also

 Thread-16726 (TID:0x806ff4b8,
 sys_thread_t:0x3189d030, state:R, native
 ID:0x75a) prio=5
 at
 oracle.jdbc.ttc7.Oclose.init(Oclose.java(Compiled
 Code))
 at

oracle.jdbc.ttc7.TTC7Protocol.closeQuery(TTC7Protocol.java(Compiled
 Code))
 at

oracle.jdbc.driver.OracleResultSetImpl.internal_close(OracleResultSetImpl.ja
 va(Compiled Code))
 at

oracle.jdbc.driver.OracleResultSetImpl.close(OracleResultSetImpl.java(Compil
 ed Code))
 at

correctiveActionReminder.run(correctiveActionReminder.java(Compiled
 Code))
 Can anybody help me in this matter
 regards
 kapil


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Accessing a remote database

2001-07-18 Thread Atilio Ranzuglia

How can you say that! Don't you see that the driver is
a bridge between JDBC and ODBC, so you can virtually
connect any database via ODBC.

Hamid: try the following code I found on the Internet

// Register JDBC/ODBC Driver
// On some platforms with some java VMs, newInstance()
is necessary...
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver).newInstance();

// Test with MS Access database
String url = jdbc:odbc:demo;
java.sql.Connection c =
DriverManager.getConnection(url, user, pass);
java.sql.Statement st = c.createStatement();
java.sql.ResultSet rs = st.executeQuery(select * from
table);

You have to define the ODBC driver in control panel,
in the previous example the ODBC source was named
'demo'.

Good luck
Atilio




--- Le van Thu [EMAIL PROTECTED] wrote:
 Hi,

 Access (Desktop Database) can't do that, you need an
 EnterPrise Database as
 : DB2, Oracle.
 Hope this help,

 ThuLV,

 - Original Message -
 From: Hamid Mukhtar [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 18, 2001 12:09 AM
 Subject: Accessing a remote database


  Hi,
  I want to upload information from a
 database registered with
 client to my
  server.In Wrox's Professional JSP, author has used
 the path ,say,
  jdbc:mysql://234.56.12.22/mydb
   to connect to a  database located on a machine
 with IP 234.56.12.22. I
  haven't try that because I dont use mysql. I use
 MS-Access and tried in
  analogy to that,
  jdbc:odbc://localhost/mydb,
   however it doesn't work. Does anybody know how to
 make an access to
  remotely located database?
  Thanks,
  Hamid Mukhtar
 
 

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Back Buttons, Refresh and JSP populated drop downs

2001-07-17 Thread Atilio Ranzuglia

Glenn:

you need to send the files to see what's on it

Atilio



--- Glenn Wearen [EMAIL PROTECTED] wrote:
 Hi,
 I have a JSP page which contains a select
 drop-down/combo-box, the JSP
 retrieves the text and value of the option
 elements from a Vector member
 of my session bean , when I load the page the first
 time the data is
 populated to the drop-down. My problem is this,
 every time I reload the page
 the data is not populated into the select field.

 I have System.outs in the bean to show the Vectors
 contents each time the
 JSP calls it, and I can see that the Vector is
 called every time the page is
 loaded and the data is definitely in it.

 Has anybody any suggestions why my JSP page seems to
 'loose' the data for
 the drop down. I have added the no-cache stuff in
 the JSP and when I refresh
 the page I can still see the bean Vector data on
 Tomcat console.

 Thanks for your suggestions in advance

 Glenn Wearen


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Rogue url

2001-07-10 Thread Atilio Ranzuglia

The problem you are facing is because you are using
JDBC 1.0 drivers. This matter has a solution on JDBC
2.0.

Suppose this ResultSet:
data1-row1 data2-row1
data1-row2 data2-row2
data1-row3 data2-row3

On JDBC 1.0 you can ask for data2-row1 but then you
cannot ask for the previous one (data1-row1). And you
cannot do first(), last(), previous(),

On JDBC 2.0 if you declare the ResultSet navigable you
can call all the methods just named, and also you can
get the data on one row in any order.

Good luck
Atilio



--- Jann VanOver [EMAIL PROTECTED] wrote:
 Yeah, Bryan, I found this one out the hard way, too.
  Many (most?) db
 drivers require you to get each field just once and
 TO GET THEM IN THE SAME
 ORDER as they appeared in the SELECT statement.  It
 is often advisable to
 loop through the result set once and save the data
 into your own class or
 other data structure.

 Also, we found out the hard way, that accessing a
 column BY NAME had SERIOUS
 performance implications (we were using Weblogics db
 drivers at the time).
 We had to get columns by position (getString(1)
 instead of
 getString(fldName)) to reach our performance
 goals.

 -Original Message-
 From: Bryan LaPlante
 [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, July 07, 2001 7:55 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Rogue url


 Call me confused. I have resolved the problem by
 moving to the top of my
 ResultSet loop and declaring local variables to hold
 the value of each
 column during the loop. The problem seems to be if I
 use the syntax
 %=showdb.getString(anyColumn)% more than once in
 the same iteration of
 the loop it will throw a Java.sql.SQLException. Am I
 to assume that after a
 reference to the column value has been made that the
 ResultSet no longer has
 that value?

 What is it that I don't understand here, Anybody?

 Bryan

 - Original Message -
 From: Bryan LaPlante [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 07, 2001 9:16 AM
 Subject: Rogue url


 | Hi,
 |
 | I need a second pair of eyes on this line of code.
 I am trying to create
 an
 | anchor tag with the following url.
 |
 | NewApp.cfm?name=%= showdb.getString(Name);
 %description=%=
 | showdb.getString(Description) %appID=%=
 | showdb.getString(ApplicationID) %
 |
 | When this line is commented out the loop around it
 runs fine displaying
 all
 | of the ResultSet. When I run this line of code I
 get a
 | java.sql.SQLException. Can anybody see what I am
 doing wrong?
 |
 | NT4 sp6
 | JRun3.0
 | IIS4
 |
 | Bryan LaPlante
 | 816-347-8220
 | [EMAIL PROTECTED]
 | http://www.netwebapps.com
 | Web Development
 |
 |

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 |


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

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


http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Bean fart

2001-07-04 Thread Atilio Ranzuglia

Bryan:
you have to remove the '.class' from the class
attribute

I never used the type attribute, also try removiing
it.

Good luck
Atilio




--- Bryan LaPlante [EMAIL PROTECTED] wrote:
 Help!

 I created a simple class with an access constructor
 and one method to
 setDisplayType and got no errors when it compiled.
 When I put the useBean
 tag in my jsp page like so:

 jsp:useBean id=tabStatus scope=page
 type=String
 class=DisplayStyle.class/

 I get the following error:
 java:65:92:65:96: Syntax: Identifier expected
 instead of this token

 If I take the useBean tag out again the jsp page
 runs with no errors. I know
 that I am missing something, the bean and my runtime
 info are below. Any
 help is appreciated.

 NT4 sp6
 JRun 3.0

 DisplayStyle.class
 -
 import java.io.*;
 import java.util.*;

 public class DisplayStyle {

  public DisplayStyle(){
  }

  public String setDisplayType(String displayType,
 String currentDisplay){
   if (displayType.equals(currentDisplay))
return block;
   else
return none;
  }
 }


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Synchronising state information between 2 machines

2001-07-03 Thread Atilio Ranzuglia

Clayton:

What you are trying to do is a server specific area.
It depends on it and we as developers can't do
anything about it. What you should do is try servers
that support load balancing, I know that Oracle
Application Server does.

So, I think that you should continue your research
through the different servers.

Good luck
Atilio



--- Clayton Nash [EMAIL PROTECTED] wrote:
 Hi,

 We have an application that keeps state information
 about a user session =
 in an data structure on a JSP server. This is used
 to validate user =
 sessions etc. One issue I have is how would I
 replicate this information =
 to another machine in real time to support load
 balancing?

 For example, the user login request may appear on
 machine 1, but the =
 next request would be via machine 2 -- machine 2
 would need to have =
 access to the data structures on machine 1 to see
 what this session ID =
 value is etc.

 I'm running this under Jrun at the moment, but
 wouldn't like to rely too =
 much on Jrun specific stuff to do this.

 Any pointers etc appreciated.

 Clayton


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: open frame set

2001-07-03 Thread Atilio Ranzuglia

Chandralal:

You can do some tricky stuff with a form, obviously
changing the target to 'top' wich is the main frame of
the window.

Good luck
Atilio



--- Bryan LaPlante [EMAIL PROTECTED] wrote:
 I believe you will want to reload your page and send
 the command to the
 client side with JavaScript's
 parent.location.href=url.jsp?args=here or
 top.location.href I think they are both synonymous.

 Bryan LaPlante
 816-347-8220
 [EMAIL PROTECTED]
 http://www.netwebapps.com
 Web Development

 - Original Message -
 From: Chandralal Aruketty Velayudhan
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, July 03, 2001 6:39 AM
 Subject: open frame set


 | hi there,
 |  hope u have a solution for this.
 |
 | i have a login page with 3 frmesets,from frame 2 i
 am submitting form to
 | submit.jsp,
 | there i am checking whether id  password are
 correct or not.
 | If password is incorrect i am forwarding using
 jsp:forward to frame2
 with
 | a message.
 | But if Id  Password are correct i want to load a
 new set of frames to
 user.
 | But what is happening is this new set of frames
 opening in frame2.
 | how can i load this new set of frames to entire
 window
 |
 | code of submit.jsp is
 | **
 | %
 | if(validated) {
 | %
 | jsp:forward
 page=newFrameset.jsp /
 | %
 | }
 | else {
 | %
 | jsp:forward page=frame2.jsp 
 | jsp:param name=message
 value=invalid loginId
 or
 | Password /
 | /jsp:forward
 | %
 | }
 | %
 | *
 |
 | thankx in advance
 |
 |

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 |


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Set property=* with an array of fields

2001-06-28 Thread Atilio Ranzuglia

Stephen:

The following code works just perfect:

JSP page:
...
 form
  input type=... name=same_name value=valueA
  input type=... name=same_name value=valueB
  input type=... name=same_name value=valueC
 /form
/...
ON POST:
jsp:setProperty name=id property=...
param=same_name /

What this code does is take all the parameters named
'same_name', make an array of them and send it to the
method on the bean. Then you can get the array from
the bean and loop through it.

The bean:
private String property[] = new String[] {};
public String[] get...() { return this.property; }
public void set...(String b[]) { this.property = b; }


If you don't want to use beans you can do the
following:

JSP page:
...
 form
  input type=... name=same_name value=valueA
  input type=... name=same_name value=valueB
  input type=... name=same_name value=valueC
 /form
/...
ON POST:
%
 Enumeration e =
request.getParameterValues(same_name);
 while (e.hasMoreElements()) {
  ...
 }
%

You have to check if the last method and names are
correct because I don't remember totally.

Hope this help
Atilio



--- Stephen T. Dziuban [EMAIL PROTECTED] wrote:
 Suppose: an html form has an array of similar
 fields, and on posting we
 want to send their parameter values to a bean using
 jsp:setProperty
 name=fieldArrayBean property=* / (with little
 or no code added).

 Case 1: Let's say the form fields are named
 field0, field1, ... Then
 public void setField0(String input), public void
 setField1(String
 input), ... could be used even if not the most
 elegant.

 Case 2: Let's say the form fields are named
 field[0], field[1], ...
 What would the declaration be for the set-parameter
 method in the bean?
 public void setField(int field, String input) is
 the closest I could
 guess, but it doesn't seem to work.

 Anybody solved this one?

 Steve Dz.


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Autosetting properties of beans within JSP

2001-06-28 Thread Atilio Ranzuglia

Robin:

As long as you write to [EMAIL PROTECTED]
all your mails will arrive. You will recieve the one
you wrote and some mailing failures.

As you can see Mattias answer you, this is a good one.

You have to be really 'cautioned' with your case.
Follow the directions offered by Mattias.

And more thing to keep in mind, if the JSP container
encounter one jsp:setProperty tag, it looks at the
bean and tries to find the corresponding setXxx method
for every property you said, if they are founded there
is no problem but if some one isn't found nothing
happens, no exception are thrown. This way you don't
know if something went wrong.

You can do the following test to see wich property is
giving you the problem:
jsp:setProperty name=Class property=prop1 /
jsp:setProperty name=Class property=prop2 /
jsp:setProperty name=Class property=prop3 /

Hope this help
Atilio


--- Robin Porter
[EMAIL PROTECTED] wrote:
 Hello Atilo,
 I have just recently joined this list but for some
 reason my posts keep
 getting returned to me.  Would you please let me
 know if you could assist me
 with my problem below and even post it to the list.

 Thank you,

 Robin Porter

 I have been trying to autoset the properties of a
 bean within a JSP but have
 not been having any luck.

 The line I was trying to use is:

 jsp:setProperty name=Book property=*/

 Since this hasn't worked I have had to explicitly
 set the parameters
 individually with lines like:

 Book.setUsername(request.getParameter(Username));

 Could you please make any suggestions as to what I
 may be doing wrong with
 the autosetting of these properties.  My
 understanding is that if I pass in
 the parameters as part of the request object and
 then use the property=*,
 this should cause any properties of the Book bean
 that match a request
 parameter to be set as long as there was a set
 method for this property in
 the bean (which there was).
 These properties were not getting set with:

 jsp:setProperty name=Book property=*/

 They were always NULL, so this is why I had to
 revert to setting each one
 individually.  Please tell me why this autoset is
 not working for me.

 Thank you.


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: placing data in Application level from servlets

2001-06-28 Thread Atilio Ranzuglia

Anyway, application is an implicit object, so you can
use without declaration.

In this case, you can do the following:
application.getAttribute(objectName) or
application.getValue(objectName)
It depends on the servlet API version you are using.
The first one is for servlet's version 2.2 and the
second one is servlet's version 2.1.

Hope this help
Atilio


--- Mattias Jiderhamn [EMAIL PROTECTED] wrote:
  wondering if anyone has any ideas on how to access
 the application
 level
  objects ( i.e similar to ASP application object)
 using a servlet?

 Try pageContext.getAttribute(objectName,
 PageContext.SESSION_SCOPE );
 See javax.servlet.jsp.PageContext for documentation

   Mattias Jiderhamn
   Expert Systems
   [EMAIL PROTECTED]


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Recompile class not picked up in TOMCAT

2001-06-28 Thread Atilio Ranzuglia

At least to the current release builds of tomcat you
have to reboot the server, it's the only way, only if
you want to replace a class.

This is not the same to the jsp pages, you can replace
them, the server detects that change and compile them
again.

Hope this help
Atilio


--- JP [EMAIL PROTECTED] wrote:
 Does anyone know how to make TOMCAT reload a new
 class?  I made changes that I want picked up, but
 cannot see until I reboot the server...

 Probably an age-old problem, but new to me.

 Thanks!


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: How to create a file in java

2001-06-26 Thread Atilio Ranzuglia

King:

There are a couple of servers that let you play with
JavaMail, www.mycgiserver.com, www.webappcabaret.com

Please, when you want to post a message to the list,
reply one message and change the subject or create a
new one and write the email direction again.

Atilio


--- King Maurice [EMAIL PROTECTED] wrote:
 Thanks for the information, but I got enough
 information about javamail.

 maurice
 W.alltechneeds.com


 - Original Message -
 From: Pantarotto, Sio [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 26, 2001 12:10 AM
 Subject: Re: How to create a file in java


  I don't know if there is a webhost that allows you
 to use javamail but if
  you are looking for an example and codes on how to
 work with javamail I
 got
  a good one in my web site
 
  www.geocities.com/hisiomara just click tutorials
 
  good luck
 
  siomara
 
  -Original Message-
  From: King Maurice
 [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 25, 2001 8:32 PM
  To: [EMAIL PROTECTED]
  Subject: Re: How to create a file in java
 
 
  is there a free webhost that allow you to use
 javamail
 
  - Original Message -
  From: friza taib [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 25, 2001 10:55 PM
  Subject: Re: How to create a file in java
 
 
   yea.
   u can use servlet instead.
   but yr framework should be JSP--servlet--...
  
   try
   {
 1. use FileInputStream where u can specify yr
 dir.
   }
   catch
   {
   }
  
   for more details, refer to Java servlet
 programming by O'reilly
  
  
  
  
  
   From: Atilio Ranzuglia [EMAIL PROTECTED]
   Reply-To: A mailing list about Java Server
 Pages specification and
   reference [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: How to create a file in java
   Date: Mon, 25 Jun 2001 08:26:33 -0700
   
   Lorena:
   
   there is a lot of information on sun's site.
   (java.sun.com/j2se/1.3/docs/api/index.hmtl)
   also check thinking in java 2
 (www.bruceeckel.com)
   
   the io issue is not a short one
   
   Hope this help
   Atilio
   
   
   --- Lorena Carlo [EMAIL PROTECTED] wrote:
 Hello all,

 Does anybody know how to create a file in
 java and
 then save it to some
 direction of the disk?

 Please help me, thanks in advance

 Lorena Carlo


  
 

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

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

 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP

  

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
   
   
   =
   Ing. Atilio Ranzuglia Buteler
   [EMAIL PROTECTED]
   
  
 __
   Do You Yahoo!?
   Get personalized email addresses from Yahoo!
 Mail
   http://personal.mail.yahoo.com/
   
  
 

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
  
  

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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
  
 
 

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 
 

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

Re: Loading applets

2001-06-26 Thread Atilio Ranzuglia

Leonard:

you have to remove out the .class section off
code=foo.BarApplet.class

Hope this help
Atilio


--- Leonard Wolters [EMAIL PROTECTED] wrote:
 Hi there,

 I still have problems with loading applets within
 jsp pages.

 Consider the following scenario:
 I have a WAR file which consists of several .jsp
 files, a WEB-INF
 directory which contains a classes and a lib
 directory. In the classes
 directory, another directory foo exists which
 contains the BarApplet.class file.

 From one of the jsp files, i try to load the applet
 using the following
 code:

 jsp:plugin
   type=applet
   code=foo.BarApplet.class
   codebase=/
   jreversion=1.3
   align=center
   height=400
   width=400


nspluginurl=http://java.sun.com/products/plugin/1.3.0_01/plugin-install.html;


iepluginurl=http://java.sun.com/products/plugin/1.3.0_01/jinstall-130_01-win32.cab#Version=1,3,0,1;
 

   jsp:fallback
 pUnable to start plugin./p
   /jsp:fallback
 /jsp:plugin


 Still, each time the java console tells me that the
 file foo.BarApplet.class cannot be found. Even after
 changing the codebase
 from relative to full (i.e. http://) it still
 doesn't work out.

 The only thing that works is to copy the
 web-inf\classes\foo directory
 to the 'root' of the WAR file i.e. the place where
 all .jsp files are
 located. Then, I finally see the applet showing
 up...


 The only thing that I can figure out is that the
 web-inf\classes is
 unaccessable from the web -- it is unvisible.

 Can someone please help me out by telling me how
 they succeeded in
 showing applets from jsp pages ? Do I need to
 explicitly create a jar
 file containing the applet ? Or can i use the
 web-inf\classes directory ?
 (preferable). Or do I just need to put the classes
 in the 'root' directory ?

 Please help me out !

 (I know for sure that it should be possible to
 access the applet from the
 web-inf\classes directory from a jsp file)


 Thanks


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: javax.servlet.ServletException: No data found... why???? plea se h elp..!!

2001-06-26 Thread Atilio Ranzuglia

Juan:

The problem you are facing now can be easy or
difficult to resolve.

It can be that you are trying to read the ResultSet
with no data on it.

Or, in the worst case, you can have the problem I had
a few weeks ago. The exception was the same, I were
working on a PreparedStatement (about 20 lines).

It never work, it was always the same output. If I try
it like a regular Statement it worked fine.

Looking for a solution I enter on Oracle's Metalink
(one of the million sites searched) and the solution
encoutered there was:
... the problem appeared and dissappeared
misteriously ... from some other guys.

So I have to stay cool and make it a regular
Statement.

I could not find any other solution, if someone here
knows one please let me know, thanks.

Hope this help
Atilio


--- Orozco, Juan Carlos [EMAIL PROTECTED] wrote:
 Thank you very much..for your help..
 I change to JDBC Oracle thin driver, instead
 jdbc-odbc bridge,
 and the jsp, begin to populate the list box, but i
 have this error..
 Internal Servlet
 Error:javax.servlet.ServletException: Exhausted
 Resultset:

 what's happening? , maybe the recordset it's too
 large??

 thanks,

 Juan



 -Original Message-
 From: Atilio Ranzuglia [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 11:12 AM
 To: [EMAIL PROTECTED]
 Subject: Re: javax.servlet.ServletException: No data
 found... why
 please h elp..!!


 Chris:

 What you said is true on JDBC 1.0 but not in JDBC
 2.0.

 JDBC 2.0 allows you to calls the getter method in
 any
 order, and to navigate through the ResultSet.

 There are a lot of new features on JDBC 2.0.

 Hope this help
 Atilio


 --- Chris Pratt [EMAIL PROTECTED] wrote:
  From what I understand, you cannot call a
  resultSet.getXXX() method more
  than once on a single value with predictable
  results.  You should probably
  get it and store it in a variable if you need to
 use
  it more than once.
  (*Chris*)
 
  - Original Message -
  From: Orozco, Juan Carlos [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 23, 2001 7:38 AM
  Subject: [JSP-INTEREST]
  javax.servlet.ServletException: No data found...
  why please h elp..!!
 
 
   Hi guys,
  
   I have a problem with the resultSets, when i
 made
  the getObject method
   more than one time...example:
  
   String temp=;
   String depto=;
  
   String
  paisd=(String)rst_loc.getObject(PAIS_ORIGEN);
  --may be here
  
  
   while (rst_loc_hasData)
   {
  
   temp =
  (String)rst_loc.getObject(PAIS_ORIGEN); --here
 is
  the
   problem
  
   while (paisd.equals(temp))
  {
  
  
  depto=(String)rst_loc.getObject(DEPARTAMENTO);
   %
  
 
 listB.addOptions(%=paisd%,%=depto%,%=depto%);
   -- my JavaScript function
   %
   rst_loc_hasData =
  rst_loc.next();
  
  paisd=(String)rst_loc.getObject(PAIS_ORIGEN);
   }
   }
   rst_loc.close();
   rst_loc = Statementrst_loc.executeQuery();
   rst_loc_hasData = rst_loc.next();
   rst_loc_isEmpty = !rst_loc_hasData;
   %
  
   I don't know why... and is the same thing when i
  am populate a listbox
  
  
  
   %
   String pais = ;
-- I have to
   declare this variables because i can't use
  getObject method
   String pais_iso = ;
   while
 (rst_paises_hasData)
   {
   pais =
  (String)rst_paises.getObject(PAIS);
   pais_iso =
   (String)rst_paises.getObject(PAIS_ORIGEN);
   %
 option
  value=%=pais_iso%%=pais%/option
   -- i must can
  put(String)rst_paises.getObject(PAIS_ORIGEN)
  directly
 %
  
 rst_paises_hasData
  = rst_paises.next();
   }
   rst_paises.close();
   rst_paises =
  Statementrst_paises.executeQuery();
   rst_paises_hasData =
  rst_paises.next();
   rst_paises_isEmpty =
  !rst_paises_hasData;
   %
  
  
   Thanks a lot friends..!!
  
  
 

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 
 
 

_
  Do You Yahoo!?
  Get your free @yahoo.com address at
  http://mail.yahoo.com
 
 
 

===
  To unsubscribe: mailto [EMAIL PROTECTED] with
  body

Re: jsp:useBean and ClassNotFoundException: Please help

2001-06-25 Thread Atilio Ranzuglia

Frank:

Here the problem is not the classpath. You should
verify the following: is the class CoolMe inside any
package? If so you should write:

jsp:useBean  class=yourpackage.CoolMe /

And one other thing: are you importing your class
inside the page? if you aren't doing this write:

%@ page import=yourpackage.CoolMe %

Hope this helps
Atilio


--- Frank Mancini [EMAIL PROTECTED] wrote:
 Question...I have a jsp page that does this

 jsp:useBean id=myCoolMe scope=session
 class=CoolMe /

 and I'm getting the following error on the JSP
 Page...

 Could not create a bean of type: CoolMe:
 java.lang.ClassNotFoundException:
 CoolMe and java.lang.ClassNotFoundException: CoolMe


 Within Weblogic 5.1 when I startup. I have the .jar
 file that in the
 -classpath and weblogic.class.path in the
 startscript and I know that class
 exists in the .jar file


 Any idea why I get this error. Please help me.
 Thanks

 F

_
 Get your FREE download of MSN Explorer at
 http://explorer.msn.com


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: javax.servlet.ServletException: No data found... why???? please h elp..!!

2001-06-25 Thread Atilio Ranzuglia

Juan Carlos:

When you work with ResultSets you should know the
following:

 - a ResultSet has a row before the first one, this is
the one where you are positioned every time you
execute a query.
 - a ResultSet also has a after last row, this is the
one to insert rows in it.

So, look the following lines:

 String temp=;
 String depto=;

 String
 paisd=(String)rst_loc.getObject(PAIS_ORIGEN);

When you want to retrieve the first value you can't
(if you don't call next() or something like that
before) before you are currently on the before first
row and there is no data. On the next lines you call
next() and in that way you go forward on the data and
there is no problem.

You should put something like:
rst_loc.next() or rst_loc.first()

Hope this helps. This will be the solution if you
don't call any of this methods before the code you
gave to as.

Atilio


--- Orozco, Juan Carlos [EMAIL PROTECTED] wrote:
 Hi guys,

 I have a problem with the resultSets, when i made
 the getObject method
 more than one time...example:

 String temp=;
 String depto=;

 String
 paisd=(String)rst_loc.getObject(PAIS_ORIGEN);
 --may be here


 while (rst_loc_hasData)
 {

 temp =
 (String)rst_loc.getObject(PAIS_ORIGEN); --here is
 the
 problem

 while (paisd.equals(temp))
{


 depto=(String)rst_loc.getObject(DEPARTAMENTO);
 %

 listB.addOptions(%=paisd%,%=depto%,%=depto%);
 -- my JavaScript function
 %
 rst_loc_hasData =
 rst_loc.next();

 paisd=(String)rst_loc.getObject(PAIS_ORIGEN);
 }
 }
 rst_loc.close();
 rst_loc = Statementrst_loc.executeQuery();
 rst_loc_hasData = rst_loc.next();
 rst_loc_isEmpty = !rst_loc_hasData;
 %

 I don't know why... and is the same thing when i am
 populate a listbox



 %
 String pais = ;
 -- I have to
 declare this variables because i can't use getObject
 method
 String pais_iso = ;
 while (rst_paises_hasData)
 {
 pais =
 (String)rst_paises.getObject(PAIS);
 pais_iso =
 (String)rst_paises.getObject(PAIS_ORIGEN);
 %
   option
 value=%=pais_iso%%=pais%/option
 -- i must can
 put(String)rst_paises.getObject(PAIS_ORIGEN)
 directly
   %
 rst_paises_hasData =
 rst_paises.next();
 }
 rst_paises.close();
 rst_paises =
 Statementrst_paises.executeQuery();
 rst_paises_hasData =
 rst_paises.next();
 rst_paises_isEmpty =
 !rst_paises_hasData;
 %


 Thanks a lot friends..!!


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: How to create a file in java

2001-06-25 Thread Atilio Ranzuglia

Lorena:

there is a lot of information on sun's site.
(java.sun.com/j2se/1.3/docs/api/index.hmtl)
also check thinking in java 2 (www.bruceeckel.com)

the io issue is not a short one

Hope this help
Atilio


--- Lorena Carlo [EMAIL PROTECTED] wrote:
 Hello all,

 Does anybody know how to create a file in java and
 then save it to some
 direction of the disk?

 Please help me, thanks in advance

 Lorena Carlo


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: javax.servlet.ServletException: No data found... why???? please h elp..!!

2001-06-25 Thread Atilio Ranzuglia

Chris:

What you said is true on JDBC 1.0 but not in JDBC 2.0.

JDBC 2.0 allows you to calls the getter method in any
order, and to navigate through the ResultSet.

There are a lot of new features on JDBC 2.0.

Hope this help
Atilio


--- Chris Pratt [EMAIL PROTECTED] wrote:
 From what I understand, you cannot call a
 resultSet.getXXX() method more
 than once on a single value with predictable
 results.  You should probably
 get it and store it in a variable if you need to use
 it more than once.
 (*Chris*)

 - Original Message -
 From: Orozco, Juan Carlos [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 23, 2001 7:38 AM
 Subject: [JSP-INTEREST]
 javax.servlet.ServletException: No data found...
 why please h elp..!!


  Hi guys,
 
  I have a problem with the resultSets, when i made
 the getObject method
  more than one time...example:
 
  String temp=;
  String depto=;
 
  String
 paisd=(String)rst_loc.getObject(PAIS_ORIGEN);
 --may be here
 
 
  while (rst_loc_hasData)
  {
 
  temp =
 (String)rst_loc.getObject(PAIS_ORIGEN); --here is
 the
  problem
 
  while (paisd.equals(temp))
 {
 
 
 depto=(String)rst_loc.getObject(DEPARTAMENTO);
  %
 
 listB.addOptions(%=paisd%,%=depto%,%=depto%);
  -- my JavaScript function
  %
  rst_loc_hasData =
 rst_loc.next();
 
 paisd=(String)rst_loc.getObject(PAIS_ORIGEN);
  }
  }
  rst_loc.close();
  rst_loc = Statementrst_loc.executeQuery();
  rst_loc_hasData = rst_loc.next();
  rst_loc_isEmpty = !rst_loc_hasData;
  %
 
  I don't know why... and is the same thing when i
 am populate a listbox
 
 
 
  %
  String pais = ;
   -- I have to
  declare this variables because i can't use
 getObject method
  String pais_iso = ;
  while (rst_paises_hasData)
  {
  pais =
 (String)rst_paises.getObject(PAIS);
  pais_iso =
  (String)rst_paises.getObject(PAIS_ORIGEN);
  %
option
 value=%=pais_iso%%=pais%/option
  -- i must can
 put(String)rst_paises.getObject(PAIS_ORIGEN)
 directly
%
  rst_paises_hasData
 = rst_paises.next();
  }
  rst_paises.close();
  rst_paises =
 Statementrst_paises.executeQuery();
  rst_paises_hasData =
 rst_paises.next();
  rst_paises_isEmpty =
 !rst_paises_hasData;
  %
 
 
  Thanks a lot friends..!!
 
 

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



_
 Do You Yahoo!?
 Get your free @yahoo.com address at
 http://mail.yahoo.com



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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: JSP applets: accessing class files within JSP

2001-06-25 Thread Atilio Ranzuglia

Leonard:

The directory /WEB-INF/classes if the default to every
context.
The libraries (.jar files) should in the /WEF-INF/lib
directory.

Are you importing the files needed?
Be aware that you can have multiple contexts, so (by
default) you cannot reach the classes on different
contexts. What you can do is change the context in
which you are running, but I don't considerer really
helpful.

Hope this help
Atilio



--- Leonard Wolters [EMAIL PROTECTED] wrote:
 Hi,

 I have the following problem:

 Within a JSP page I want to load an applet. Using
 the jsp:plugin
 tags I should be able to load the applet, however,
 there seems to
 be a problem with the codebase, because the applet
 cannot be loaded
 (error: ClassNotFoundException).

 After searching for the solution, i struck the
 following page
 of sun

http://java.sun.com/j2ee/tutorial/doc/JSPIntro10.html.
 This
 page also addresses the problem of loading applets
 within JSP pages.
 But, unfortunately, even their example

(http://java.sun.com/j2ee/tutorial/examples/src/web/bookstore2/banner.txt)
 doens't seem to work !!

 The whole problem boils down to the following: Each
 jar / war file containg
 a WEB-INF directory which on his turn contains a
 class and a lib directory.
 The main question is: how can one access the class
 files stored in the
 web-inf \ class directory within a jsp page ?

 Please provide me with some suggestions or
 solutions.


 Thanks,

 Leonard Wolters


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: where to find an example of the class WebRowSet ??

2001-06-25 Thread Atilio Ranzuglia

Sufi:

I really don't know the class you are using, is it
available for the public audience?

What you can do is run the javadoc tool and see the
results? It output is html.

Hope this help
Atilio


--- sufi malak [EMAIL PROTECTED] wrote:
 Hi, I am looking to understand  this class
 WebRowSet, please do you know
 where can I find and example that is using WebRowSet
 with jsp or servlet.
 Thanks lot
 Sufi

_
 Get your FREE download of MSN Explorer at
 http://explorer.msn.com


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: Bean and JSP

2001-06-22 Thread Atilio Ranzuglia

Lester:

With tomcat you have two possibilities:
- /web-inf/classes: all your classes should go here
- /web-inf/lib: all your libraries (.jar, .zip) should
go here

This two directories depends on the context you are
working with. If you are working with the default one
the directory containing them will be something like:
/ROOT/apps

Hope this helps
Atilio


--- Lester June Cabrera [EMAIL PROTECTED] wrote:
 Hi,

 I'm new to JSP and Javabeans. I wrote a javabean for
 db connection to our
 MySQL db. I made it into a jar file (using the jar
 utility) . But where
 should I put it in my Tomcat directory? I will be
 calling this bean from my
 JSP page.

 Thanks a lot,
 Lester



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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: passing ogjects from jsp to jsp

2001-06-21 Thread Atilio Ranzuglia

Kaab:
For what you are trying to do you should take a look
at the 'scope' attribute on the 'jsp:useBean' tag.

There are two that could be good to you: request and
session. If the page you are calling is the same in
which you currently are 'request' will be good to you.
If it is another page you should try 'session'.

Another approach is the HttpSession object available
to you implicitly. This object (one per user per
session) has the following methods:
- putValue(String, Object), getValue(String),
removeValue(String) (Servlets API 2.1)
- setAttribute(String, Object), getAttribute(String),
removeAttribute(String)

This method works on a hastable owned by the
HttpSession Object. They return objects instancies so
you should downcast to the necessary one.

Remember that if the link list you are generating is a
LinkedList it is an object and you can use the before
mentioned.

Hope this helps
Atilio


--- kaab kaoutar [EMAIL PROTECTED] wrote:
 Hi!
 I have a jsp files that generates a linked list by
 the bean that are
 instantiated there!
 iwant the next page to get that linked list and
 display some of the liked
 list then call itself with an argument so as to
 display the rest and so on !
 The main problem is how the second page can use the
 result es linked list of
 the first page
 Thanks

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


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=

-
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: detecting attibute object

2001-06-21 Thread Atilio Ranzuglia

KL:
If you want to now if an parameter is or not use the
following:
 request.getParameter(...) != null

If you want to read the value of it:
 request.getParameter(...)

You can get a parameter enumarator of the available
ones:
 request.getParameterNames()

If the parameter is only one and have multiple values:
 request.getParameterValues(String)


Hope this helps
Atilio

--- KL OOI [EMAIL PROTECTED] wrote:
 hi all,

 do any here know how to detect whether an attribute
 object
 (request.getAttribute) is existing or not?

 regards,
 kl



_
 Do You Yahoo!?
 Get your free @yahoo.com address at
 http://mail.yahoo.com



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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=

-
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: simple if statement

2001-06-20 Thread Atilio Ranzuglia

Eric:

You are comparing a reference of a String and a String
by itself.

You are doing the following: referenceA.equals(null)
You should do: referenceA.equals(referenceB)

Both referenceA and referenceB must be String
references.

But, I think that what you want to do is:
  request.getParameter(...).equals(otherString)
  or
  request.getParameter(...) == null

request.getParameter() gives you a reference, so you
should treat it as if. Hope this helps

Atilio



--- Eric Cho [EMAIL PROTECTED] wrote:
 Hi,
 I'm new to jsps and to java itself so bear with me.
 what am i doing wrong with this?

 %
 if
 (request.getParameter(link).equals(null)){ %

 jsp:include page=mainMenu.jsp
 flush=true /

 %} else { %

 jsp:include page=%=
 request.getParameter(link); %
 flush=true /

 % } %

 thanks,

 Eric

___
 eSafe Protect Gateway has scanned this mail for
 viruses, vandals and
 suspicious attachments.


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Re: java.sql.SQLException Error

2001-06-20 Thread Atilio Ranzuglia

Frank:
the exception is telling you that the JDBC driver
cannot connect to your database.
The message 'Failed ... socket' comes from your JDBC
driver.
You have to check if the user, pass and url for the
connection are correct. If so check if the database is
up and running. And don't forget to check the network
status (is the database server recheable?)

Hope this helps
Atilio


--- Frank Mancini [EMAIL PROTECTED] wrote:
 java.sql.SQLException:
 Failed to connect to database
 no more data to read from socket

 Can someone tell me what this error is?

_
 Get your FREE download of MSN Explorer at
 http://explorer.msn.com


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=

-
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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

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



Apache's problem

2001-05-24 Thread Atilio Ranzuglia

Hey everybody, I'm having the following trouble.

I've developed an application using JDeveloper, when I
want to test it on iAS, I put the classes under
/WEB-INF/classes, but it doesn't work.

It says that it cannot encounter the class 

For example, the class rec.Estilo in
/WEB-INF/classes/rec/Estilo.class is not found when I
run
jsp:useBean class=rec.Estilo ... /

What can be happening?

Thanks in advance


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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

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



'Core Servlets and JavaServer Pages' book

2001-04-11 Thread Atilio Ranzuglia

Hi everyone:

I'm going to buy a JSP book, and I think that the best
I can buy is 'Core Servlets and JavaServer Pages'.

I've seen a few more but I don't think that they are
like this one.

If you can help me on it, I will appreciate.

Thanks

=

-
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

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

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



Taglib question

2001-04-06 Thread Atilio Ranzuglia

Hey everybody:

I'm learning about Tag Libraries, but I have the
following problem:

(in my jsp file)
...
% String username = request.getParameter("name"); %
...
sample:hello name="%= username %" /

Instead of getting (if I use 'Ati' as name): Hello Ati
I'm getting: Hello %= username %

This is an example of Oreilly, but as you can see it
doesn't work.

Can anybody help me?

Thanks

=

-----
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

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

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



Re: RES: Taglib question

2001-04-06 Thread Atilio Ranzuglia

Thanks, I finally understand what 'rt' inside
'rtexprvalue' means.

Bye

--- Rodrigo Gevaerd [EMAIL PROTECTED] wrote:
   In your model.tld file you must add
 rtexprvaluetrue/rtexprvalue inside
 attribute, to specify that your attribute value
 may be a runtime
 expression to be evalutated.

   []'s,

   Rodrigo.

  -Mensagem original-
  De: Atilio Ranzuglia [mailto:[EMAIL PROTECTED]]
  Enviada em: Sexta-feira, 6 de Abril de 2001 09:15
  Para: [EMAIL PROTECTED]
  Assunto: Taglib question
 
 
  Hey everybody:
 
  I'm learning about Tag Libraries, but I have the
  following problem:
 
  (in my jsp file)
  ...
  % String username = request.getParameter("name");
 %
  ...
  sample:hello name="%= username %" /
 
  Instead of getting (if I use 'Ati' as name): Hello
 Ati
  I'm getting: Hello %= username %
 
  This is an example of Oreilly, but as you can see
 it
  doesn't work.
 
  Can anybody help me?
 
  Thanks
 
  =
 
  -----
  Ingeniero Atilio Ranzuglia Buteler
  [EMAIL PROTECTED]
  -
 
 
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail.
  http://personal.mail.yahoo.com/
 
 

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


http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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

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

http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=

-
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

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

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



Project organization

2001-03-27 Thread Atilio Ranzuglia

Hey:

 I've been investigating for a while, we want to work
in a team and use a tool that let us put all the work
together (in only one place).

 Plus, we want to define some (or reuse) methodology
for 'fast' developing or at least not to write
everything.

 And to end it, we need to declare some libraries
where we can makes templates and 'wizards' for html
output.

 Do you recomend Tag libraries?

 For security issues, is it good to get involved in
EJB?

 Is Struts some serious to think about it, I mean it
because it is nightly release (unstable).


 Thanks for all.



=

-
Ingeniero Atilio Ranzuglia Buteler
[EMAIL PROTECTED]
-


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text

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

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



Re: Scope attribute in useBean tag

2001-01-31 Thread Ingeniero Atilio Ranzuglia Buteler

How can you say that??

The scope attribute is really important, in every jsp course it is teached.

Page means scope for that page only
Request means scope for the entire request
Session means scope for the session with the webserver
All three are for one client
The last, application means for the lifetime of the application for several
users

Atilio

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

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