[ANNOUNCE] Commercial Support for Apache Jakarta projects

2002-05-16 Thread Dion Gillard

For more information see
http://www.multitask.com.au/default.html?page=mtSOS

Open source software continues to expand, finding its way into corporate
developer use and becoming the underlying foundation of commercial
software. We expect this to continue, and organizations must establish
specific policies to control how open source is utilized.
Source: MetaGroup Feb 2002

Our clients have requested ongoing support for various elements of Open
Source projects for which we have been providing support on an ad-hoc basis
for some time.  In response to this demand we have instituted a formal
support program for corporate clients and individual developers looking to
adopt these tools within their Java environments and development projects.

Join up now and take advantage of this initiative!

Public access to the knowledge base and resources are available from
http://sos.multitask.com.au

We are providing support services to clients in a variety of Open Source
projects including various elements of the Apache Group's 'Jakarta'
project:

Struts
Ant
Tomcat
Latka
Maven
Log4J

We now provide telephone and on-line web based support and provide access
to a knowledgebase of information and downloads in relation to these
projects.

SOS Support is provided in relation to the following areas:

Getting Started
'How to' support for specific issues
Configuration
Deployment
Integration with existing applications
Code Problems

For more information see
http://www.multitask.com.au/default.html?page=mtSOS
--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers
==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Error page

2002-05-16 Thread Gading

At 11:02 AM 5/16/2002 +0530, you wrote:
I think you need to specify the full virtual path of errorpage.jsp while
defining the errorPage attribute in main.jsp

It's on the same directory, if so its hould give 404 instead of 500.
I thinks it because of error scoping, for eaxample it work when i try to
getString(not_valid_colum), but not other serious error.

Anyone knows the scope?

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



javamail - offtopic but urgent

2002-05-16 Thread Kesav, Ramesh

Hi all,

 when i try to send an email to me itself i get the following exception

javax.mail.MessagingException: Could not connect to SMTP host: ip address,
port: 25;

Properties prop = new Properties();
prop.put(mail.smtp.host, hostName);

where hostName  is ip address

i know this is offtopic but if someone can let me know where i am wrong , i
would appreciate it.


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javamail - offtopic but urgent

2002-05-16 Thread Gupta, Naveen (CORP, GEITC)

Hi
For ur own machine u should use localhost as the machine name not the ip
address.
Hope it helps
Naveen Gupta

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: javamail - offtopic but urgent


Hi all,

 when i try to send an email to me itself i get the following exception

javax.mail.MessagingException: Could not connect to SMTP host: ip address,
port: 25;

Properties prop = new Properties();
prop.put(mail.smtp.host, hostName);

where hostName  is ip address

i know this is offtopic but if someone can let me know where i am wrong , i
would appreciate it.


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javamail - offtopic but urgent

2002-05-16 Thread Bhushan_Bhangale

Are you able to send mails to other ids?

From the error it is clrealy understood that the program is unable to make SMTP 
connection. You give the local ip address of the SMTP server if both the machine on 
which program is running and the SMTP server is inside firewall. If you are giving 
the external IP address then firewall needs to be opened for port 25.

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: javamail - offtopic but urgent


Hi all,

 when i try to send an email to me itself i get the following exception

javax.mail.MessagingException: Could not connect to SMTP host: ip address,
port: 25;

Properties prop = new Properties();
prop.put(mail.smtp.host, hostName);

where hostName  is ip address

i know this is offtopic but if someone can let me know where i am wrong , i
would appreciate it.


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javamail - offtopic but urgent

2002-05-16 Thread Kesav, Ramesh

Hi,
Are you able to send mails to other ids?
no i am not able to send emails within my compnay itself.

 -Original Message-
 From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:20 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: javamail - offtopic but urgent


 From the error it is clrealy understood that the program is unable to make
 SMTP connection. You give the local ip address of the SMTP server if both
 the machine on which program is running and the SMTP server is inside
 firewall. If you are giving the external IP address then firewall needs to
 be opened for port 25.

 -Original Message-
 From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:11 PM
 To: [EMAIL PROTECTED]
 Subject: javamail - offtopic but urgent


 Hi all,

  when i try to send an email to me itself i get the following exception

 javax.mail.MessagingException: Could not connect to SMTP host: ip
 address,
 port: 25;

 Properties prop = new Properties();
 prop.put(mail.smtp.host, hostName);

 where hostName  is ip address

 i know this is offtopic but if someone can let me know where i am wrong ,
 i
 would appreciate it.


 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]
 Off: 91-44-8113801 ext 2333
 Res:91-44-2265360
 Mob : 91-98412-73573

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javamail - offtopic but urgent

2002-05-16 Thread Bhushan_Bhangale

So now have you implemented my solution? What happened?

-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 2:41 PM
To: [EMAIL PROTECTED]
Subject: Re: javamail - offtopic but urgent


Hi,
Are you able to send mails to other ids?
no i am not able to send emails within my compnay itself.

 -Original Message-
 From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:20 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: javamail - offtopic but urgent


 From the error it is clrealy understood that the program is unable to make
 SMTP connection. You give the local ip address of the SMTP server if both
 the machine on which program is running and the SMTP server is inside
 firewall. If you are giving the external IP address then firewall needs to
 be opened for port 25.

 -Original Message-
 From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:11 PM
 To: [EMAIL PROTECTED]
 Subject: javamail - offtopic but urgent


 Hi all,

  when i try to send an email to me itself i get the following exception

 javax.mail.MessagingException: Could not connect to SMTP host: ip
 address,
 port: 25;

 Properties prop = new Properties();
 prop.put(mail.smtp.host, hostName);

 where hostName  is ip address

 i know this is offtopic but if someone can let me know where i am wrong ,
 i
 would appreciate it.


 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]
 Off: 91-44-8113801 ext 2333
 Res:91-44-2265360
 Mob : 91-98412-73573

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javamail - offtopic but urgent

2002-05-16 Thread Gading

At 03:41 AM 5/16/2002 -0500, you wrote:
Hi all,

  when i try to send an email to me itself i get the following exception

javax.mail.MessagingException: Could not connect to SMTP host: ip address,
port: 25;

Properties prop = new Properties();
prop.put(mail.smtp.host, hostName);

where hostName  is ip address

from command prompt :
telnet ip address 25

hello test
220 some.smtp.com ESMTP
mail from: [EMAIL PROTECTED]
250 ok
rcpt to: [EMAIL PROTECTED]
250 ok
data
354 go ahead
testing
.
250 ok 1021539873 qp 1
quit
221 some.smtp.com


i know this is offtopic but if someone can let me know where i am wrong , i
would appreciate it.


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



JMS in a JSP application

2002-05-16 Thread VENKATACHALAPATHY Duraiswamy

Hi:
How can I effectively use JMS in a JSP application, wherein EJBs are
used for data access?

Thanks
Venkat

-Original Message-
From:   Kesav, Ramesh [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, May 16, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject:javamail - offtopic but urgent

Hi all,

 when i try to send an email to me itself i get the following
exception

javax.mail.MessagingException: Could not connect to SMTP host: ip
address,
port: 25;

Properties prop = new Properties();
prop.put(mail.smtp.host, hostName);

where hostName  is ip address

i know this is offtopic but if someone can let me know where i am
wrong , i
would appreciate it.


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]
Off: 91-44-8113801 ext 2333
Res:91-44-2265360
Mob : 91-98412-73573


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javamail - offtopic but urgent

2002-05-16 Thread Kesav, Ramesh

yes,
 nowi could send within my compnay. what will i do if i want to send outside
say to hotmail / yahoo etc.,


 -Original Message-
 From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:44 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: javamail - offtopic but urgent

 So now have you implemented my solution? What happened?

 -Original Message-
 From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 2:41 PM
 To: [EMAIL PROTECTED]
 Subject: Re: javamail - offtopic but urgent


 Hi,
 Are you able to send mails to other ids?
 no i am not able to send emails within my compnay itself.

  -Original Message-
  From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:20 PM
  To:   [EMAIL PROTECTED]
  Subject:  Re: javamail - offtopic but urgent
 
 
  From the error it is clrealy understood that the program is unable to
 make
  SMTP connection. You give the local ip address of the SMTP server if
 both
  the machine on which program is running and the SMTP server is inside
  firewall. If you are giving the external IP address then firewall needs
 to
  be opened for port 25.
 
  -Original Message-
  From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:11 PM
  To: [EMAIL PROTECTED]
  Subject: javamail - offtopic but urgent
 
 
  Hi all,
 
   when i try to send an email to me itself i get the following exception
 
  javax.mail.MessagingException: Could not connect to SMTP host: ip
  address,
  port: 25;
 
  Properties prop = new Properties();
  prop.put(mail.smtp.host, hostName);
 
  where hostName  is ip address
 
  i know this is offtopic but if someone can let me know where i am wrong
 ,
  i
  would appreciate it.
 
 
  Regards
 
  Ramesh Kesavanarayanan
  [EMAIL PROTECTED]
  Off: 91-44-8113801 ext 2333
  Res:91-44-2265360
  Mob : 91-98412-73573
 
 
 ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 
 
 ==
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: javamail - offtopic but urgent

2002-05-16 Thread Gunaseelan Nagarajan

hi,
if you get an error like relaying not allowed while sending mail to yahoo
or hotmail, it means that the SMTP server has to be configured. Your network
administrator should know how to change the sendmail configuration if you are
using sendmail or the configuration of the mail server that you are using.

regards,
Nagarajan

On Thursday 16 May 2002 11:38, you wrote:
 yes,
  nowi could send within my compnay. what will i do if i want to send
 outside say to hotmail / yahoo etc.,

  -Original Message-
  From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:44 PM
  To:   [EMAIL PROTECTED]
  Subject:  Re: javamail - offtopic but urgent
 
  So now have you implemented my solution? What happened?
 
  -Original Message-
  From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:41 PM
  To: [EMAIL PROTECTED]
  Subject: Re: javamail - offtopic but urgent
 
 
  Hi,
  Are you able to send mails to other ids?
  no i am not able to send emails within my compnay itself.
 
   -Original Message-
   From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
   Sent: Thursday, May 16, 2002 2:20 PM
   To:   [EMAIL PROTECTED]
   Subject:  Re: javamail - offtopic but urgent
  
  
   From the error it is clrealy understood that the program is unable to
 
  make
 
   SMTP connection. You give the local ip address of the SMTP server if
 
  both
 
   the machine on which program is running and the SMTP server is inside
   firewall. If you are giving the external IP address then firewall needs
 
  to
 
   be opened for port 25.
  
   -Original Message-
   From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 16, 2002 2:11 PM
   To: [EMAIL PROTECTED]
   Subject: javamail - offtopic but urgent
  
  
   Hi all,
  
when i try to send an email to me itself i get the following exception
  
   javax.mail.MessagingException: Could not connect to SMTP host: ip
   address,
   port: 25;
  
   Properties prop = new Properties();
   prop.put(mail.smtp.host, hostName);
  
   where hostName  is ip address
  
   i know this is offtopic but if someone can let me know where i am wrong
 
  ,
 
   i
   would appreciate it.
  
  
   Regards
  
   Ramesh Kesavanarayanan
   [EMAIL PROTECTED]
   Off: 91-44-8113801 ext 2333
   Res:91-44-2265360
   Mob : 91-98412-73573
 
  =
 =
 
   =
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
   JSP-INTEREST.
   For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
   DIGEST.
   Some relevant FAQs on JSP/Servlets can be found at:
  
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
 
  =
 =
 
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
   JSP-INTEREST.
   For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
   DIGEST.
   Some relevant FAQs on JSP/Servlets can be found at:
  
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
 
  =
 = =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 
  =
 = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto 

Re: javamail - offtopic but urgent

2002-05-16 Thread Bhushan_Bhangale

Yaa Gunaseelan is right. As such you shouldn't face any problem while sending mail to 
yahoo, hotmail, etc. If in case it does then the Mail Server Administrator knows how 
to configure the relay.

-Original Message-
From: Gunaseelan Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: Re: javamail - offtopic but urgent


hi,
if you get an error like relaying not allowed while sending mail to yahoo
or hotmail, it means that the SMTP server has to be configured. Your network
administrator should know how to change the sendmail configuration if you are
using sendmail or the configuration of the mail server that you are using.

regards,
Nagarajan

On Thursday 16 May 2002 11:38, you wrote:
 yes,
  nowi could send within my compnay. what will i do if i want to send
 outside say to hotmail / yahoo etc.,

  -Original Message-
  From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:44 PM
  To:   [EMAIL PROTECTED]
  Subject:  Re: javamail - offtopic but urgent
 
  So now have you implemented my solution? What happened?
 
  -Original Message-
  From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 2:41 PM
  To: [EMAIL PROTECTED]
  Subject: Re: javamail - offtopic but urgent
 
 
  Hi,
  Are you able to send mails to other ids?
  no i am not able to send emails within my compnay itself.
 
   -Original Message-
   From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
   Sent: Thursday, May 16, 2002 2:20 PM
   To:   [EMAIL PROTECTED]
   Subject:  Re: javamail - offtopic but urgent
  
  
   From the error it is clrealy understood that the program is unable to
 
  make
 
   SMTP connection. You give the local ip address of the SMTP server if
 
  both
 
   the machine on which program is running and the SMTP server is inside
   firewall. If you are giving the external IP address then firewall needs
 
  to
 
   be opened for port 25.
  
   -Original Message-
   From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 16, 2002 2:11 PM
   To: [EMAIL PROTECTED]
   Subject: javamail - offtopic but urgent
  
  
   Hi all,
  
when i try to send an email to me itself i get the following exception
  
   javax.mail.MessagingException: Could not connect to SMTP host: ip
   address,
   port: 25;
  
   Properties prop = new Properties();
   prop.put(mail.smtp.host, hostName);
  
   where hostName  is ip address
  
   i know this is offtopic but if someone can let me know where i am wrong
 
  ,
 
   i
   would appreciate it.
  
  
   Regards
  
   Ramesh Kesavanarayanan
   [EMAIL PROTECTED]
   Off: 91-44-8113801 ext 2333
   Res:91-44-2265360
   Mob : 91-98412-73573
 
  =
 =
 
   =
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
   JSP-INTEREST.
   For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
   DIGEST.
   Some relevant FAQs on JSP/Servlets can be found at:
  
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
 
  =
 =
 
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
   JSP-INTEREST.
   For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
   DIGEST.
   Some relevant FAQs on JSP/Servlets can be found at:
  
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
 
  =
 = =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 
  =
 = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

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

Re: Connection Pooling Implementation

2002-05-16 Thread Vikramjit Singh

earlier poolman used to be there but after tomcat 4.0 poolman is stopped,
becuase tomcat has inbuilt connection pooling. you can try tomcat 4.0
www.codestudio.com

if you use oracles thin drivers like classes12.zip it has inbuilt connection
pooling which you can download from www.technet.oracle.com.

or u can check this link
http://www.webdevelopersjournal.com/columns/connection_pool.html a very good
article by Hans Bergsten with source code.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Jamshed Siddiqui [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 3:57 AM
To: [EMAIL PROTECTED]
Subject: Connection Pooling Implementation


I would appreciate if anybody of you could suggest any Connection pooling
implementation
that is freely downloadable and is efficient enough to be used in an
industrial application.

Jamshed




-
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Ok, I'm new to JSP

2002-05-16 Thread Christopher Martin

I come from the way-not-too-friendly web dev (in the sense of coding) world
of ASP. I have just taken my first course in Java. As I'm sure your not
surprised, I'm hooked on Java now. It just took a class to show me the power
of Java.

My question:
Where can I get a good starting place in writing Java web apps? I'm not
talking how to write hello world crap. I'm looking for a good reference
for coding standards. From my understanding, beans == COM objects. Right?
How about how to reference methods within those beans? What about these
killer things I've heard about; custom tag libs?

Someone throw me a bone.

Chris

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Ok, I'm new to JSP

2002-05-16 Thread Mark Lines-Davies

Chris

beans = COM objects? I guess it depends on the style of your old ASP
pages. If they accessed multiple COM DLLs, then yes.

But if you had a single COM DLL exposing multiple interfaces, then the
equivalent is simply to write your Java classes and parcel them up in a JAR.
Tell your JSP server where it is (e.g for Tomcat 3.3, put it in lib/common)
and away you go.

cheers

Mark

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Christopher Martin
Sent: 16 May 2002 12:21
To: [EMAIL PROTECTED]
Subject: Ok, I'm new to JSP


I come from the way-not-too-friendly web dev (in the sense of coding) world
of ASP. I have just taken my first course in Java. As I'm sure your not
surprised, I'm hooked on Java now. It just took a class to show me the power
of Java.

My question:
Where can I get a good starting place in writing Java web apps? I'm
not
talking how to write hello world crap. I'm looking for a good reference
for coding standards. From my understanding, beans == COM objects. Right?
How about how to reference methods within those beans? What about these
killer things I've heard about; custom tag libs?

Someone throw me a bone.

Chris

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



*
The information contained in this message or any of its
attachments may be privileged and confidential and intended
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Connection Pooling Implementation

2002-05-16 Thread Gading

At 04:44 PM 5/16/2002 +0530, you wrote:
earlier poolman used to be there but after tomcat 4.0 poolman is stopped,
becuase tomcat has inbuilt connection pooling. you can try tomcat 4.0
www.codestudio.com

if you use oracles thin drivers like classes12.zip it has inbuilt connection
pooling which you can download from www.technet.oracle.com.

or u can check this link
http://www.webdevelopersjournal.com/columns/connection_pool.html a very good
article by Hans Bergsten with source code.


1. In light load, will it improve perfomance?
2. If driver already provide con pooling, should we consider user another
pool manager?

Thanks.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Ok, I'm new to JSP

2002-05-16 Thread Shane Stene

Chris:

There are many books out there concerning JSP's, Servlets, EJB, etc. I've
been programming
Java for a couple of years but just getting started into the Web Apps. I
think the best book that
I've seen for JavaBeans would be O'Reilly's book on Enterprise Java Beans.
The O'Reilly
book on Servlets and JSP's is really good but there are others out there.
Check out the
Java Developer Connection for more resources on JSP's and Servlets. If you
want to
find out more information about Struts or Taglib check out the Apache's
Jakarta web site.

Apache's Jakarta Website
http://jakarta.apache.org/

Java Developer Connection
http://developer.java.sun.com/

O'Reilly Web Site
http://www.oreilly.com/

Shane

Shane StenePhone: (605) 594-6876
Raytheon STX Corporation  Fax:  (605) 594-6940
EROS Data Center  Email:  [EMAIL PROTECTED]
Sioux Falls, SD 57198


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Ok, I'm new to JSP

2002-05-16 Thread Adrian Janssen

Marty Hall's book is one of the better books on JSP and servlets, go to
www.coreservlets.com  to download in pdf format.

It is very accessible and gives you the juicy bits quickly.

 -Original Message-
 From: Christopher Martin [SMTP:[EMAIL PROTECTED]]
 Sent: 16 May 2002 01:21
 To:   [EMAIL PROTECTED]
 Subject:  Ok, I'm new to JSP

 I come from the way-not-too-friendly web dev (in the sense of coding)
 world
 of ASP. I have just taken my first course in Java. As I'm sure your not
 surprised, I'm hooked on Java now. It just took a class to show me the
 power
 of Java.

 My question:
 Where can I get a good starting place in writing Java web apps?
 I'm not
 talking how to write hello world crap. I'm looking for a good reference
 for coding standards. From my understanding, beans == COM objects. Right?
 How about how to reference methods within those beans? What about these
 killer things I've heard about; custom tag libs?

 Someone throw me a bone.

 Chris

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

--
**
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How can I show many records to a user?

2002-05-16 Thread Luca Ventura

Hello everybody!

I am developing a Web application that for every user:

1) Receives the request;
2) Accesses to a database to get the data (records) required;
3) Show the records found in the database to the users.

So I used a jsp page that makes this job for me but I have the following
problem:
given that the records (and each of them can have more fields) to show could
be thousands I can't insert all of them in the same html page; so I would
like to show them like many search engines do
(like google or Altavista): that is to say using different pages and giving
the possibly to move
from a page to another. Anyway I want to be able to decide the layout to use
to show the results that
can be different from that one used from google or Altavista.

How can I do it? Any idea?

Thanks a lot in advance.

   Luca

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How can I show many records to a user?

2002-05-16 Thread Panayiotis Periorellis

The question is how many records realistically do u expect to retun to
the user if it is say in tens then 

You have to use season variables to keep track of the exact number of
records as well as an array where you have copied the result set retuned
by the database. This is easy if you kow how to work dynamic array and
session variables.

In the first instance is the records are say 50 and you want to show 10
per page you divide and use that number in a loop which prints a
hyperlink x where x is the number of loops. So the first page you
would print ten records and 4 hyperlinks to pages 2345 which would
contain records from 10-20 20-30 30-40 40-50 respectively.

From then on it's easy. If you want to print the next page you click on
2.

Now the hyperlinks number would normally point the same JSP. So in the
beginning you would have a condition to check the 
Request parameter value.this may be a hidden number associated with
every page in order to keep track of the page fomr which the request
came. If it is page '2' then check the array and session variables . If
they are not empty then you would print the correspoding records...

It is actually harder exlpaining it rather than implementing it.

Just remember all happens in the same JSP.

And the trick is the conditions in the beginning. Associate numbers with
each page.
Check where did the request came from.
Open sesstion array
Display appropriate range of records.
Print hyperlinks for remaining records.

I hope this helps
panos



-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]] 
Sent: 16 May 2002 14:52
To: [EMAIL PROTECTED]
Subject: How can I show many records to a user?


Hello everybody!

I am developing a Web application that for every user:

1) Receives the request;
2) Accesses to a database to get the data (records) required;
3) Show the records found in the database to the users.

So I used a jsp page that makes this job for me but I have the following
problem:
given that the records (and each of them can have more fields) to show
could be thousands I can't insert all of them in the same html page; so
I would like to show them like many search engines do (like google or
Altavista): that is to say using different pages and giving the possibly
to move from a page to another. Anyway I want to be able to decide the
layout to use to show the results that can be different from that one
used from google or Altavista.

How can I do it? Any idea?

Thanks a lot in advance.

   Luca


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How can I show many records to a user?

2002-05-16 Thread Gunaseelan Nagarajan

and you could also use absolute positioning in recordsets.  ie, have one
count() query that will give the number of possible records that can be
retrieved. Divide this by the number of rows to be displayed in a page and
you have the number of pages. This can be used to print the links to the
pages like in google  and then have a query that will retrieve the records
for the given page number.

Regards,
Nagarajan.

On Thursday 16 May 2002 16:03, you wrote:
 The question is how many records realistically do u expect to retun to
 the user if it is say in tens then

 You have to use season variables to keep track of the exact number of
 records as well as an array where you have copied the result set retuned
 by the database. This is easy if you kow how to work dynamic array and
 session variables.

 In the first instance is the records are say 50 and you want to show 10
 per page you divide and use that number in a loop which prints a
 hyperlink x where x is the number of loops. So the first page you
 would print ten records and 4 hyperlinks to pages 2345 which would
 contain records from 10-20 20-30 30-40 40-50 respectively.

 From then on it's easy. If you want to print the next page you click on
 2.

 Now the hyperlinks number would normally point the same JSP. So in the
 beginning you would have a condition to check the
 Request parameter value.this may be a hidden number associated with
 every page in order to keep track of the page fomr which the request
 came. If it is page '2' then check the array and session variables . If
 they are not empty then you would print the correspoding records...

 It is actually harder exlpaining it rather than implementing it.

 Just remember all happens in the same JSP.

 And the trick is the conditions in the beginning. Associate numbers with
 each page.
 Check where did the request came from.
 Open sesstion array
 Display appropriate range of records.
 Print hyperlinks for remaining records.

 I hope this helps
 panos



 -Original Message-
 From: Luca Ventura [mailto:[EMAIL PROTECTED]]
 Sent: 16 May 2002 14:52
 To: [EMAIL PROTECTED]
 Subject: How can I show many records to a user?


 Hello everybody!

 I am developing a Web application that for every user:

 1) Receives the request;
 2) Accesses to a database to get the data (records) required;
 3) Show the records found in the database to the users.

 So I used a jsp page that makes this job for me but I have the following
 problem:
 given that the records (and each of them can have more fields) to show
 could be thousands I can't insert all of them in the same html page; so
 I would like to show them like many search engines do (like google or
 Altavista): that is to say using different pages and giving the possibly
 to move from a page to another. Anyway I want to be able to decide the
 layout to use to show the results that can be different from that one
 used from google or Altavista.

 How can I do it? Any idea?

 Thanks a lot in advance.

Luca

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How can I show many records to a user?

2002-05-16 Thread Panayiotis Periorellis

By the way I remember when I had to do something similar although there
was no trouble tracking the users navigation as long as he pressed on
the buttons I had on the web page I had trouble figuring out his moves
when he was using the browsers buttons... There is a solution for this
but I'lll come back t you when you get to that point.

panos

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]] 
Sent: 16 May 2002 14:52
To: [EMAIL PROTECTED]
Subject: How can I show many records to a user?


Hello everybody!

I am developing a Web application that for every user:

1) Receives the request;
2) Accesses to a database to get the data (records) required;
3) Show the records found in the database to the users.

So I used a jsp page that makes this job for me but I have the following
problem:
given that the records (and each of them can have more fields) to show
could be thousands I can't insert all of them in the same html page; so
I would like to show them like many search engines do (like google or
Altavista): that is to say using different pages and giving the possibly
to move from a page to another. Anyway I want to be able to decide the
layout to use to show the results that can be different from that one
used from google or Altavista.

How can I do it? Any idea?

Thanks a lot in advance.

   Luca


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Application offloading to cashe of JSP and Servlet code

2002-05-16 Thread Frank Carlos

Moving JSP and Servlet execution to a caching proxies gives you increased
scalability and improved response time for applications. Here's an
interesting article that explains how to use application offloading of JSP
and Servlet code to cashe in order to enhance the performance of its
execution.

http://www-106.ibm.com/developerworks/ibm/library/i-edge/?t=gr,
pjspi=Offloading2Cashe


--- Frank

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Passing array parameters from one page to another

2002-05-16 Thread Villén Pizarro, Julia

Hi all!!
I want to pass an undetermined number of names, for example, from one page to another. 
I guess the only way to do this is to add all the names in one string, separated by a 
special character, and 
then spliting the string at the target page.

Any better ways??
I'm try to doing this but 
String name = request.getParameter(name);
String names[] = name.split(*);

but I get an error saying this method is deprecated ??
I have imported java.lang.*.

Thanks in advance,

Julia


-
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene 
información de carácter confidencial exclusivamente dirigida a su destinatario o 
destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la 
previa autorización escrita de Indra. En el caso de haber recibido este correo 
electrónico por error, se ruega notifíquese inmediatamente esta circunstancia mediante 
reenvío a la dirección electrónica del remitente.
-
The information in this e-mail and in any attachments is confidential and solely for 
the attention and use of the named addressee(s). You are hereby notified that any 
dissemination, distribution or copy of this communication is prohibited without the 
prior written consent of Indra. If you have received this communication in error, 
please, notify the sender by reply e-mail.
-

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-16 Thread Emmanuel Eze

Hi all,

Does anyone know any java class or method that will enable me repeat a
character n times?

Example:  if I want **, I will call methodname('*',6).

Thanks in advance

Emma

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



R: How can I show many records to a user?

2002-05-16 Thread Luca Ventura

Thanks everybody (panos, Nagarajan...) for the help about this topic.

I will let you know if I will have some problems to implement your
solutions.

In the meantime all other suggestions about the problem are appreciated.

Thanks,

   Luca

-Messaggio originale-
Da: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Per conto di Panayiotis Periorellis
Inviato: giovedi 16 maggio 2002 16.18
A: [EMAIL PROTECTED]
Oggetto: Re: How can I show many records to a user?


By the way I remember when I had to do something similar although there
was no trouble tracking the users navigation as long as he pressed on
the buttons I had on the web page I had trouble figuring out his moves
when he was using the browsers buttons... There is a solution for this
but I'lll come back t you when you get to that point.

panos

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2002 14:52
To: [EMAIL PROTECTED]
Subject: How can I show many records to a user?


Hello everybody!

I am developing a Web application that for every user:

1) Receives the request;
2) Accesses to a database to get the data (records) required;
3) Show the records found in the database to the users.

So I used a jsp page that makes this job for me but I have the following
problem:
given that the records (and each of them can have more fields) to show
could be thousands I can't insert all of them in the same html page; so
I would like to show them like many search engines do (like google or
Altavista): that is to say using different pages and giving the possibly
to move from a page to another. Anyway I want to be able to decide the
layout to use to show the results that can be different from that one
used from google or Altavista.

How can I do it? Any idea?

Thanks a lot in advance.

   Luca


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



multiple HTML Forms

2002-05-16 Thread Boddula, Sridhar

Hi,

I have a jsp page. In that page i have 3 HTML forms and each one is having
submit button. If I click any submitt i need to send all the three forms.

Could any one tell me how can I submit multiple forms in one submit.


I appreciate your help,


thanks,

Sridhar Boddula

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Amazing script

2002-05-16 Thread David A. Bartmess

Actually, it's because JSP defines the unknown variable e's type as
integer by default. If you set e = 1.0, you set the type as a float or
double type, and therefore it will work correctly.

On Wed, 2002-05-01 at 06:58, subbu wrote:
 hai,
 try this and give an explanation why this happens
 (JAVASCRIPT)

 var a,b,c,d,e
 a=1.1
 b=1.1
 c=1.1
 d=a+b(answer is 2.2)

 e=a+b+c(answer is 3.32)
 alert(e);

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

--
IBFONT SIZE=+2David A. Bartmess/FONT/B/IBR
BFONT COLOR=BLUE SIZE=+1IT Samaritans/FONTBR
Helping Non-Profits Achieve Technical Excellence/BBR
IBFONT COLOR=LIGHTBLUE SIZE=+1Software Configuration Manager /
Sr. Software Developer/FONT/B/IBR
A HREF=http://edingo.net;eDingo.net/A

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: multiple HTML Forms

2002-05-16 Thread Gunaseelan Nagarajan

Hi Sridhar,
It is not possible to submit more than form at the same time in the same
page.  It is possible only if you have the forms in separate windows or
frames. Through javascript you can get a reference to the other forms and
call the submit() method on them.

regards,
Nagarajan.

On Thursday 16 May 2002 19:11, you wrote:
 Hi,

 I have a jsp page. In that page i have 3 HTML forms and each one is having
 submit button. If I click any submitt i need to send all the three forms.

 Could any one tell me how can I submit multiple forms in one submit.


 I appreciate your help,


 thanks,

 Sridhar Boddula

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Ok, I'm new to JSP

2002-05-16 Thread Christopher Martin

Thanks everyone!!

Chris

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Adrian Janssen
Sent: Thursday, May 16, 2002 5:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Ok, I'm new to JSP


Marty Hall's book is one of the better books on JSP and servlets, go to
www.coreservlets.com  to download in pdf format.

It is very accessible and gives you the juicy bits quickly.

 -Original Message-
 From: Christopher Martin [SMTP:[EMAIL PROTECTED]]
 Sent: 16 May 2002 01:21
 To:   [EMAIL PROTECTED]
 Subject:  Ok, I'm new to JSP

 I come from the way-not-too-friendly web dev (in the sense of coding)
 world
 of ASP. I have just taken my first course in Java. As I'm sure your not
 surprised, I'm hooked on Java now. It just took a class to show me the
 power
 of Java.

 My question:
 Where can I get a good starting place in writing Java web apps?
 I'm not
 talking how to write hello world crap. I'm looking for a good reference
 for coding standards. From my understanding, beans == COM objects. Right?
 How about how to reference methods within those beans? What about these
 killer things I've heard about; custom tag libs?

 Someone throw me a bone.

 Chris

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

--
**
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: R: How can I show many records to a user?

2002-05-16 Thread Kobrix Support

Hi Luca,

You could also try our product TICL at http://www.kobrix.com. It has
custom JSP tags that do all that automatically.

Cheers,
Boris

Luca Ventura wrote:

Thanks everybody (panos, Nagarajan...) for the help about this topic.

I will let you know if I will have some problems to implement your
solutions.

In the meantime all other suggestions about the problem are appreciated.

Thanks,

   Luca

-Messaggio originale-
Da: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Per conto di Panayiotis Periorellis
Inviato: giovedi 16 maggio 2002 16.18
A: [EMAIL PROTECTED]
Oggetto: Re: How can I show many records to a user?


By the way I remember when I had to do something similar although there
was no trouble tracking the users navigation as long as he pressed on
the buttons I had on the web page I had trouble figuring out his moves
when he was using the browsers buttons... There is a solution for this
but I'lll come back t you when you get to that point.

panos

-Original Message-
From: Luca Ventura [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2002 14:52
To: [EMAIL PROTECTED]
Subject: How can I show many records to a user?


Hello everybody!

I am developing a Web application that for every user:

1) Receives the request;
2) Accesses to a database to get the data (records) required;
3) Show the records found in the database to the users.

So I used a jsp page that makes this job for me but I have the following
problem:
given that the records (and each of them can have more fields) to show
could be thousands I can't insert all of them in the same html page; so
I would like to show them like many search engines do (like google or
Altavista): that is to say using different pages and giving the possibly
to move from a page to another. Anyway I want to be able to decide the
layout to use to show the results that can be different from that one
used from google or Altavista.

How can I do it? Any idea?

Thanks a lot in advance.

   Luca


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



off topic 9two submit buttons in a form) ??

2002-05-16 Thread sufi malak

Hi,

I have a form in a jsp file that has :

1)Drop down list (for names)
2)textarea  ( for comment)


I want to have two submit buttons (chekin, checkout), who to do it please ?
thanks


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

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: multiple HTML Forms

2002-05-16 Thread Smita Kotnis

Hi,
If it is required to send all the values to the next page, you can submit a form 
and along with this request, you can get the values of the fileds of the other two 
forms and send them as query. Some thing like this,

var temp1=document.form2.field1.value;
var temp2=document.form3.field1.value;
document.form1.action=myjsp.jsp?querystring+temp1 and temp2 and next query;
document.form1.submit();

Or you may wish to use, the hidden variables defined in the form1 for all the fields 
of form2 and form3.

Smita


Gunaseelan Nagarajan [EMAIL PROTECTED]:

 Hi Sridhar,
 It is not possible to submit more than form at the same time in the
 same
 page.  It is possible only if you have the forms in separate windows or
 frames. Through javascript you can get a reference to the other forms
 and
 call the submit() method on them.

 regards,
 Nagarajan.

 On Thursday 16 May 2002 19:11, you wrote:
  Hi,
 
  I have a jsp page. In that page i have 3 HTML forms and each one is
 having
  submit button. If I click any submitt i need to send all the three
 forms.
 
  Could any one tell me how can I submit multiple forms in one submit.
 
 
  I appreciate your help,
 
 
  thanks,
 
  Sridhar Boddula
 
 
 ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body:
 set
  JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found
 at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success!
Click here to know how http://education.sify.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: off topic 9two submit buttons in a form) ??

2002-05-16 Thread Smita Kotnis

hi,

  html
  javascript 
  funtion first()
  {
checkinhere
document.form.action=checkin.jsp
   }
  funtion second()
  {
checkout here
document.form.action=checkout.jsp

   }
  /script
  input type=submit onClick=javascript:first()
  input type=submit onClick=javascript:second()
  /html


is this going to work? or your requirement is some thing else?

Smita



 sufi malak [EMAIL PROTECTED]:

 Hi,

 I have a form in a jsp file that has :

 1)Drop down list (for names)
 2)textarea  ( for comment)


 I want to have two submit buttons (chekin, checkout), who to do it
 please ?
 thanks


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

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success!
Click here to know how http://education.sify.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: multiple HTML Forms

2002-05-16 Thread Be Fair

You can set all the submit buttons to trigger a java script function. In
that java script function, copy all data from all three forms to the forth
form, then submit the forth form. In the 4th form, create total number of
fields (from all three forms) in hidden format.

SCRIPT LANGUAGE=JavaScript
function finalSubmit() {
document.form4.text1.value = document.form1.text1.value;
document.form4.text2.value = document.form2.text1.value;
document.form4.text3.value = document.form3.text1.value;
document.form4.submit();
return false;
}
/SCRIPT

FORM NAME=form1 onSubmit=return finalSubmit()
text1: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form2 onSubmit=return finalSubmit()
Enter some text: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form3 onSubmit=return finalSubmit()
Enter some text: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form4
INPUT TYPE=HIDDEN NAME=text1
INPUT TYPE=HIDDEN NAME=text2
INPUT TYPE=HIDDEN NAME=text3
/FORM



From: Boddula, Sridhar [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: multiple HTML Forms
Date: Thu, 16 May 2002 13:11:08 -0400

Hi,

I have a jsp page. In that page i have 3 HTML forms and each one is having
submit button. If I click any submitt i need to send all the three forms.

Could any one tell me how can I submit multiple forms in one submit.


I appreciate your help,


thanks,

Sridhar Boddula

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com




_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: multiple HTML Forms

2002-05-16 Thread Greg Dunn

I don't get it.  If you're processing all the data on the next page, why go
through all this?  Use one form.

I can see where this might be useful if three sets of data were being sent
to three different servlets.  Can that be done?

Greg



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Be Fair
Sent: Thursday, May 16, 2002 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: multiple HTML Forms


You can set all the submit buttons to trigger a java script function. In
that java script function, copy all data from all three forms to the forth
form, then submit the forth form. In the 4th form, create total number of
fields (from all three forms) in hidden format.

SCRIPT LANGUAGE=JavaScript
function finalSubmit() {
document.form4.text1.value = document.form1.text1.value;
document.form4.text2.value = document.form2.text1.value;
document.form4.text3.value = document.form3.text1.value;
document.form4.submit();
return false;
}
/SCRIPT

FORM NAME=form1 onSubmit=return finalSubmit()
text1: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form2 onSubmit=return finalSubmit()
Enter some text: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form3 onSubmit=return finalSubmit()
Enter some text: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form4
INPUT TYPE=HIDDEN NAME=text1
INPUT TYPE=HIDDEN NAME=text2
INPUT TYPE=HIDDEN NAME=text3
/FORM



From: Boddula, Sridhar [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: multiple HTML Forms
Date: Thu, 16 May 2002 13:11:08 -0400

Hi,

I have a jsp page. In that page i have 3 HTML forms and each one is having
submit button. If I click any submitt i need to send all the three forms.

Could any one tell me how can I submit multiple forms in one submit.


I appreciate your help,


thanks,

Sridhar Boddula

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com




_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Client Computer Name

2002-05-16 Thread Gino Bustamante Diaz

Hi, i new in the list, my question is, How can i know the name of the client
computer

thx

Gino

Chile

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-16 Thread Peter Dolukhanov

Surely you can implement that very easily?

public String repeat(char a, int b)
{
String result = ;
for (int i=0; ib; i++)
{
result += a;
}
return result;
}

Regards,
Peter Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Emmanuel Eze
Sent: 16 May 2002 15:08
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another

Hi all,

Does anyone know any java class or method that will enable me repeat a
character n times?

Example:  if I want **, I will call methodname('*',6).

Thanks in advance

Emma


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



FW: multiple HTML Forms

2002-05-16 Thread Peter Dolukhanov

You could have an intermediate JSP page with three jsp:include
functions, you can then use the jsp:param functions to send the
relevant data to the relevant forms.

Regards,
Peter Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Greg Dunn
Sent: 16 May 2002 20:31
To: [EMAIL PROTECTED]
Subject: Re: multiple HTML Forms

I don't get it.  If you're processing all the data on the next page, why
go
through all this?  Use one form.

I can see where this might be useful if three sets of data were being
sent
to three different servlets.  Can that be done?

Greg



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Be Fair
Sent: Thursday, May 16, 2002 2:19 PM
To: [EMAIL PROTECTED]
Subject: Re: multiple HTML Forms


You can set all the submit buttons to trigger a java script function. In
that java script function, copy all data from all three forms to the
forth
form, then submit the forth form. In the 4th form, create total number
of
fields (from all three forms) in hidden format.

SCRIPT LANGUAGE=JavaScript
function finalSubmit() {
document.form4.text1.value = document.form1.text1.value;
document.form4.text2.value = document.form2.text1.value;
document.form4.text3.value = document.form3.text1.value;
document.form4.submit();
return false;
}
/SCRIPT

FORM NAME=form1 onSubmit=return finalSubmit()
text1: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form2 onSubmit=return finalSubmit()
Enter some text: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form3 onSubmit=return finalSubmit()
Enter some text: INPUT TYPE=text NAME=text1
INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
/FORM

FORM NAME=form4
INPUT TYPE=HIDDEN NAME=text1
INPUT TYPE=HIDDEN NAME=text2
INPUT TYPE=HIDDEN NAME=text3
/FORM



From: Boddula, Sridhar [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: multiple HTML Forms
Date: Thu, 16 May 2002 13:11:08 -0400

Hi,

I have a jsp page. In that page i have 3 HTML forms and each one is
having
submit button. If I click any submitt i need to send all the three
forms.

Could any one tell me how can I submit multiple forms in one submit.


I appreciate your help,


thanks,

Sridhar Boddula

===

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com




_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



tag with a body question

2002-05-16 Thread Robert Misior

Hello,
I have a newbie question, I'm trying to create JSP tag with a body.
My tag inside of the JSP page looks looks like this:

mytag:test

Printing:   %= test % br

/mytag:test

I'm trying to place value for test.

But for example every time I'm getting:

Printing: null
Printing: test tag
Printing: test tag

It almost looks like pageContext.setAttribute method is called before
doAfterBody() method
is executed by the container.
I was was able to find work around by placing the same code that is in
doAfterBody() method inside of doIntBody().
public void doInitBody() throws JspException{

 if(number ==0){
  return SKIP_BODY;
}
else{
  number--;
  pageContext.setAttribute(test,test  tag);

 return EVAL_BODY_TAG;
}

  }

I'm just trying to find out if there is any other way of dealing with
this type of issue.

Thanks for help.
Robert

Here is code for my tag without doIntBody() method.

package webmessanger;



  import javax.servlet.jsp.tagext.*;
  import javax.servlet.jsp.*;
  import javax.servlet.*;
  import java.io.Writer;
  import java.util.*;
  import java.io.*;


public class TestTag extends BodyTagSupport {

 int number;

  public int doEndTag() throws JspException{

try{

 bodyContent.writeOut(bodyContent.getEnclosingWriter());
}
catch(Exception e){
 System.err.println(e);
}
return EVAL_PAGE;
  }



  public int doStartTag() throws JspException {
  number = 2;
  return EVAL_BODY_TAG;


   }


public int doAfterBody() throws JspException{
if(number ==0){
  return SKIP_BODY;
}
else{
  number--;
  pageContext.setAttribute(test,test  tag);

 return EVAL_BODY_TAG;
}


  }

}

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-16 Thread Joseph Ottinger

Oh, come on:

public String repeat(char a, int b)
{
 StringBuffer result = new StringBuffer(b);
 for (int i=0; ib; i++)
 {
 result.append(a);
 }
 return result.toString();
}


From: Peter Dolukhanov [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another
Date: Thu, 16 May 2002 20:45:08 +0100

Surely you can implement that very easily?

public String repeat(char a, int b)
{
 String result = ;
 for (int i=0; ib; i++)
 {
 result += a;
 }
 return result;
}

Regards,
Peter Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Emmanuel Eze
Sent: 16 May 2002 15:08
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another

Hi all,

Does anyone know any java class or method that will enable me repeat a
character n times?

Example:  if I want **, I will call methodname('*',6).

Thanks in advance

Emma


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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-16 Thread Peter Dolukhanov

Sorry, very true! I even read an article about this in Dr. Dobb's
recently...

Have to unlearn some programming habits!

Regards,
Peter Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Joseph Ottinger
Sent: 16 May 2002 21:47
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another

Oh, come on:

public String repeat(char a, int b)
{
 StringBuffer result = new StringBuffer(b);
 for (int i=0; ib; i++)
 {
 result.append(a);
 }
 return result.toString();
}


From: Peter Dolukhanov [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another
Date: Thu, 16 May 2002 20:45:08 +0100

Surely you can implement that very easily?

public String repeat(char a, int b)
{
 String result = ;
 for (int i=0; ib; i++)
 {
 result += a;
 }
 return result;
}

Regards,
Peter Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and
reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Emmanuel Eze
Sent: 16 May 2002 15:08
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another

Hi all,

Does anyone know any java class or method that will enable me repeat a
character n times?

Example:  if I want **, I will call methodname('*',6).

Thanks in advance

Emma

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com


_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: off topic 9two submit buttons in a form) ??

2002-05-16 Thread Gare, Tref

alternative method

use button inputs to simulate the submit buttons and dynamically submit the
form to separate actions depending on which button is pressed.

ie:

input type=button name=checkin value=check in
onClick=javascript:document.forms[0].action='checkin.jsp';document.forms[0]
.submit();
input type=button name=checkout value=check out
onClick=javascript:document.forms[0].action='checkout.jsp';document.forms[0
].submit();


cheers

Tref
 -Original Message-
 From: sufi malak [SMTP:[EMAIL PROTECTED]]
 Sent: Friday,17 May 2002 4:49
 To:   [EMAIL PROTECTED]
 Subject:  off topic 9two submit buttons in a form) ??

 Hi,

 I have a form in a jsp file that has :

 1)Drop down list (for names)
 2)textarea  ( for comment)


 I want to have two submit buttons (chekin, checkout), who to do it please
 ?
 thanks


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

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to do this?

2002-05-16 Thread [ Swetha Prakash]

Hi,

I am pretty new to JSP. I am developing an application which is pretty
much a kind of maintenance once.

In my first JSP screen, I am displaying a file from a data base in a HTML
form, which looks like following. Now I will put Job Name Column data to a
link where it will take me to next screen with data and I should be in a
position to change the data (Say Comments Fields) and update it. Also, I
should be able to add new record to it. Can any one help me how to do
this? I am already done with the first screen. When I put link to say
maintanance.jsp, how to get the data along with it? I know that we can
do this through request.getParameter(Job) etc. But how to put them in a
text field. etc.


Job
Program
Schedule
System
Comments
$AKEYDAILY
AKDAILYCL
Daily (Monday- Friday)
AS/400CS01
Start Daily ADDRKEY Process
$AKEYWEEK
AKWEEKLYCL
Weekly (Saturday)
AS/400CS01
Start Weekly ADDREKEY Process
$PORTSTAT
PORTSTATCL
Monday-Thursday (8:30PM)
AS/400CS01
PORTSTAT Master CL
$DNSUNIV3
DNSUNIVC3
Tueseday
AS/400CS01
Pgm to Update DNS Universe from SOLEXCPT
$DNSUNIV2
DNSUNIVC2
Saturday
AS/400CS01
Update Global DNS from DMA Telephone Pref. File
$DNSUNIV1
DNSUNIVC1
Friday
AS/400CS01
Update Global DNS From DMA Mail Pref. File
$DNSUNIV7
DNSUNIVC7
Daily
AS/400CS01
Update Contractual DNS
$DNSUNIV9
DNSUNIVC9
Daily
AS/400CS01
Create Global DNS Extract for Campaigns
$UNIVERSE
FLSUNIVCLD
Saturday
AS/400CS01
Batch Run FSL Campaign Universe for FSL
$DNSCUST
DNSCUSTCL
Daily (Monday-Thursday)
AS/400CS01
Update DNS Universe from Customer DNS
$CUSTMARTCL
CUSTMARTCL
Daily
AS/400CS01
Load Customer Mart Loan Assoc Table
$MKTRECAP
MKTRECAPCL
Daily (Monday-Friday)
AS/400CS01
Recapture Main CL
$LOCKSTAT
MKTLNSC2
Daily
AS/400CS01
Creates LockStat File and FTP to SQL Server
$Q990020C1
Q990020C1
4th of Every Month
AS/400CS01
Quarterly Business Partners Report
$BRPAWRDCL
BRPAWRDCL
4th of Every Month
AS/400CS01
BRP Quarterly Awards
$APPSTAT
APPSTATCL
Runs After Posting (Every day)
AS/400CF
Creates APPSTAT- Released by the Operator
$TAJWEBFCL
TAJWEBFCL
On Demand
AS/400LS
TajMahal/HomeBase message file refresh
$EXTCUST4
EXTCUSTC4
On Demand
AS/400CS01
Copy MKTIRDAT from MR to MKTSTGLIB/RECLOAD2-CS
$MKTCNFLR1
MKTCNFLR1
On Demand
AS/400CS01
Confirming Loan Limit Maint. prog.
$DNSEXTRCT
PRDNSPOR1C
Weekly(Sat)/ Month End
AS/400CS01
Portfolio DNS Extract-Submits mult. jobs
$PORADTEXT
MKPORPMT1C
Month End
AS/400CS01
PORTSTAT Additioanl Information-Submits mult. jobs
$MBROKER
MBROKERCL

AS/400CS01
Update Broker Table
$DNSCOUNTS
PRDNSCNT1C
Month End
AS/400CS01
To Get the DNS Counts




Regards,
Bhanu Prakash
(805) 955-1057
Ext:92- 582-1057

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to do this?

2002-05-16 Thread Dharmendra Sharan

Hi Bhanu,

  I am not sure if I understand you correctly, if you have the data then
for displaying all you need to do is write HTML for displaying it into a text
field.
 for eg.
let's say jobID is a string value you want to display into a text field...
%
// get the value or an array, or vector of values for displaying
String jobID = request.getParameter(jobID);
%

 In the html part of the JSP file something like the following :-
html

body
...
form name=myForm action=/path_to_jsp_or_servlet

 input type=text name=jobID value=%=jobID%
...
/form
/body
/html
 which can also be inside a loop for displaying a table of data, in multiple
columns, another approach could be to use swing and applets and use JTable
class for displaying the data.


   hth,

   Dharmendra
On Thursday 16 May 2002 07:17 pm, you wrote:
 Also, I
 should be able to add new record to it.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to do this?

2002-05-16 Thread [ Swetha Prakash]

Hi Dharmendra,
Ya, u understood what I am asking. May be u can tell me this. First Screen
I have


Job Name   Program ScheduleSystemComments.

x  y      
qqq

Now I want to make a link to other jsp say (second.jsp) by using ahref to
job name. Second. jsp should be a form with all the information like this.


Job Name :  xx (in a text box which should be editable)
Progam :  yy(in a text box which should be editable)
Schedule :  ((in a text box which should be editable))
System:  (in a text box which should be editable)
Comments:  q(in a text box which should be editable)

Post Data(Button)   Clear Data (Button)

Now user can edit the information and can post it (Kind of Updation) or he
can clear the data (which is deletion process).

My Question is how to pass these values to second.jsp?

It should be some thing like ahref=second.jsp  ?jobname=x  +
?Program=   + Schedule= + System=+ Comments =qqq

Can u make this clear to me. How to use this?  so that I can use

request.getParameter in the second.jsp to put it in text boxes?







Regards,
Bhanu Prakash
(805) 955-1057
Ext:92- 582-1057

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to do this?

2002-05-16 Thread Bhushan_Bhangale

Yaa you are doing right by sending the data as query string.

The other way is only send the job name id(ofcourse needs to be unique in database) 
and in the next page extract all the required info from the database for the passed 
job name id.

-Original Message-
From: [ Swetha Prakash] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 5:42 AM
To: [EMAIL PROTECTED]
Subject: Re: How to do this?


Hi Dharmendra,
Ya, u understood what I am asking. May be u can tell me this. First Screen
I have


Job Name   Program ScheduleSystemComments.

x  y      
qqq

Now I want to make a link to other jsp say (second.jsp) by using ahref to
job name. Second. jsp should be a form with all the information like this.


Job Name :  xx (in a text box which should be editable)
Progam :  yy(in a text box which should be editable)
Schedule :  ((in a text box which should be editable))
System:  (in a text box which should be editable)
Comments:  q(in a text box which should be editable)

Post Data(Button)   Clear Data (Button)

Now user can edit the information and can post it (Kind of Updation) or he
can clear the data (which is deletion process).

My Question is how to pass these values to second.jsp?

It should be some thing like ahref=second.jsp  ?jobname=x  +
?Program=   + Schedule= + System=+ Comments =qqq

Can u make this clear to me. How to use this?  so that I can use

request.getParameter in the second.jsp to put it in text boxes?







Regards,
Bhanu Prakash
(805) 955-1057
Ext:92- 582-1057

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Passing array parameters from one page to another

2002-05-16 Thread Vikramjit Singh

The javax.util.regex package is a new package in Java 2 Platform,
Standard Edition version 1.4. The package provides a regular
expression library. A regular expression is a pattern of
characters that describes a set of strings, and is often used in
pattern matching. The classes in the javax.util.regex package
let you match sequences of characters against a regular
expression. These classes, which comprise the regular expression
library, use the Perl 5 regular expression pattern syntax, and
provide a much more powerful way of parsing text than was
previously available with the java.io.StreamTokenizer and the
java.util.StringTokenizer classes.

The regular expression library has three classes: Pattern,
Matcher, and PatternSyntaxException. Ignoring the exception class,
what you really have is one class to define the regular
expression you want to match (the Pattern), and another class
(the Matcher) for searching a pattern in a given string.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 7:08 AM
To: [EMAIL PROTECTED]
Subject: Re: Passing array parameters from one page to another


Hi all,

Does anyone know any java class or method that will enable me repeat a
character n times?

Example:  if I want **, I will call methodname('*',6).

Thanks in advance

Emma

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to do this?

2002-05-16 Thread Jayanta Gauchan

Bhushan is right,

But it's recommendable that you use textarea tag instead of text to display the 
text messages.
This takes care of any 'quote' or double quote you have in the text field.


Jayanta

  - Original Message - 
  From: Bhushan_Bhangale 
  To: [EMAIL PROTECTED] 
  Sent: Friday, May 17, 2002 9:26 AM
  Subject: Re: How to do this?


  Yaa you are doing right by sending the data as query string.

  The other way is only send the job name id(ofcourse needs to be unique in database) 
and in the next page extract all the required info from the database for the passed 
job name id.

  -Original Message-
  From: [ Swetha Prakash] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, May 17, 2002 5:42 AM
  To: [EMAIL PROTECTED]
  Subject: Re: How to do this?


  Hi Dharmendra,
  Ya, u understood what I am asking. May be u can tell me this. First Screen
  I have


  Job Name   Program ScheduleSystemComments.

  x  y      
  qqq

  Now I want to make a link to other jsp say (second.jsp) by using ahref to
  job name. Second. jsp should be a form with all the information like this.


  Job Name :  xx (in a text box which should be editable)
  Progam :  yy(in a text box which should be editable)
  Schedule :  ((in a text box which should be editable))
  System:  (in a text box which should be editable)
  Comments:  q(in a text box which should be editable)

  Post Data(Button)   Clear Data (Button)

  Now user can edit the information and can post it (Kind of Updation) or he
  can clear the data (which is deletion process).

  My Question is how to pass these values to second.jsp?

  It should be some thing like ahref=second.jsp  ?jobname=x  +
  ?Program=   + Schedule= + System=+ Comments =qqq

  Can u make this clear to me. How to use this?  so that I can use

  request.getParameter in the second.jsp to put it in text boxes?







  Regards,
  Bhanu Prakash
  (805) 955-1057
  Ext:92- 582-1057

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

   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

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

   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com


  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: off topic - java script

2002-05-16 Thread Vikramjit Singh

check this


!-- TWO STEPS TO INSTALL DROPDOWN BOX POPULATION:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  --

!-- STEP ONE: Paste this code into the HEAD of your HTML document  --

HEAD

SCRIPT LANGUAGE=JavaScript

!-- Begin
var arrItems1 = new Array();
var arrItemsGrp1 = new Array();

arrItems1[3] = Truck;
arrItemsGrp1[3] = 1;
arrItems1[4] = Train;
arrItemsGrp1[4] = 1;
arrItems1[5] = Car;
arrItemsGrp1[5] = 1;

arrItems1[6] = Boat;
arrItemsGrp1[6] = 2;
arrItems1[7] = Submarine;
arrItemsGrp1[7] = 2;

arrItems1[0] = Planes;
arrItemsGrp1[0] = 3;
arrItems1[1] = Ultralight;
arrItemsGrp1[1] = 3;
arrItems1[2] = Glider;
arrItemsGrp1[2] = 3;

var arrItems2 = new Array();
var arrItemsGrp2 = new Array();

arrItems2[21] = 747;
arrItemsGrp2[21] = 0
arrItems2[22] = Cessna;
arrItemsGrp2[22] = 0

arrItems2[31] = Kolb Flyer;
arrItemsGrp2[31] = 1
arrItems2[34] = Kitfox;
arrItemsGrp2[34] = 1

arrItems2[35] = Schwietzer Glider;
arrItemsGrp2[35] = 2

arrItems2[99] = Chevy Malibu;
arrItemsGrp2[99] = 5
arrItems2[100] = Lincoln LS;
arrItemsGrp2[100] = 5
arrItems2[57] = BMW Z3;
arrItemsGrp2[57] = 5

arrItems2[101] = F-150;
arrItemsGrp2[101] = 3
arrItems2[102] = Tahoe;
arrItemsGrp2[102] = 3

arrItems2[103] = Freight Train;
arrItemsGrp2[103] = 4
arrItems2[104] = Passenger Train;
arrItemsGrp2[104] = 4

arrItems2[105] = Oil Tanker;
arrItemsGrp2[105] = 6
arrItems2[106] = Fishing Boat;
arrItemsGrp2[106] = 6

arrItems2[200] = Los Angelas Class;
arrItemsGrp2[200] = 7
arrItems2[201] = Kilo Class;
arrItemsGrp2[201] = 7
arrItems2[203] = Seawolf Class;
arrItemsGrp2[203] = 7

function selectChange(control, controlToPopulate, ItemArray, GroupArray)
{
  var myEle ;
  var x ;
  // Empty the second drop down box of any choices
  for (var q=controlToPopulate.options.length;q=0;q--)
controlToPopulate.options[q]=null;
  if (control.name == firstChoice) {
// Empty the third drop down box of any choices
for (var q=myChoices.thirdChoice.options.length;q=0;q--)
myChoices.thirdChoice.options[q] = null;
 }
  // ADD Default Choice - in case there are no values
  myEle = document.createElement(option) ;
  myEle.value = 0 ;
  myEle.text = [SELECT] ;
  controlToPopulate.add(myEle) ;
  // Now loop through the array of individual items
  // Any containing the same child id are added to
  // the second dropdown box
  for ( x = 0 ; x  ItemArray.length  ; x++ )
{
  if ( GroupArray[x] == control.value )
{
  myEle = document.createElement(option) ;
  myEle.value = x ;
  myEle.text = ItemArray[x] ;
  controlToPopulate.add(myEle) ;
}
}
}
//  End --
/script

/HEAD

!-- STEP TWO: Copy this code into the BODY of your HTML document  --

BODY

form name=myChoices
table align=center
tr
td
SELECT id=firstChoice name=firstChoice onchange=selectChange(this,
myChoices.secondChoice, arrItems1, arrItemsGrp1);
option value=0 SELECTED[SELECT]/option
option value=1Land/option
option value=2Sea/option
option value=3Air/option
/SELECT
/TDTD
SELECT id=secondChoice name=secondChoice onchange=selectChange(this,
myChoices.thirdChoice, arrItems2, arrItemsGrp2);
/SELECT
SELECT id=thirdChoice name=thirdChoice
/SELECT
/TD
/TR
/TABLE
/form


Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 10:39 PM
To: [EMAIL PROTECTED]
Subject: off topic - java script


Hi all,

 i have 2 select boxes.
If i choose a value from the first select box the second select box should
have appropriate values.

eg: first one has science/ IT etc.,

 if i choose science the second should show
say
maths/ history/ physics/ chemistry

if i choose IT from the first , the second box should show
say
hardware/ software /networking / etc.,

if anybody has a piece of code for this i would really appreciate it.




Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: multiple HTML Forms

2002-05-16 Thread Adrian Janssen

Or if all 3 forms should be submitted to the same page (and all other
answers in this thread seam to be assuming so...) then only have one form
 that looks like 3 forms  with 3 submit buttons!

 -Original Message-
 From: Be Fair [SMTP:[EMAIL PROTECTED]]
 Sent: 16 May 2002 09:19
 To:   [EMAIL PROTECTED]
 Subject:  Re: multiple HTML Forms

 You can set all the submit buttons to trigger a java script function. In
 that java script function, copy all data from all three forms to the forth
 form, then submit the forth form. In the 4th form, create total number of
 fields (from all three forms) in hidden format.

 SCRIPT LANGUAGE=JavaScript
 function finalSubmit() {
 document.form4.text1.value = document.form1.text1.value;
 document.form4.text2.value = document.form2.text1.value;
 document.form4.text3.value = document.form3.text1.value;
 document.form4.submit();
 return false;
 }
 /SCRIPT

 FORM NAME=form1 onSubmit=return finalSubmit()
 text1: INPUT TYPE=text NAME=text1
 INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
 /FORM

 FORM NAME=form2 onSubmit=return finalSubmit()
 Enter some text: INPUT TYPE=text NAME=text1
 INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
 /FORM

 FORM NAME=form3 onSubmit=return finalSubmit()
 Enter some text: INPUT TYPE=text NAME=text1
 INPUT TYPE=submit VALUE=Submit onClick=finalSubmit()
 /FORM

 FORM NAME=form4
 INPUT TYPE=HIDDEN NAME=text1
 INPUT TYPE=HIDDEN NAME=text2
 INPUT TYPE=HIDDEN NAME=text3
 /FORM



 From: Boddula, Sridhar [EMAIL PROTECTED]
 Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: multiple HTML Forms
 Date: Thu, 16 May 2002 13:11:08 -0400
 
 Hi,
 
 I have a jsp page. In that page i have 3 HTML forms and each one is
 having
 submit button. If I click any submitt i need to send all the three forms.
 
 Could any one tell me how can I submit multiple forms in one submit.
 
 
 I appreciate your help,
 
 
 thanks,
 
 Sridhar Boddula
 
 =
 ==
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com




 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

--
**
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



off topic - java script

2002-05-16 Thread Kesav, Ramesh

Hi all,

 i have 2 select boxes.
If i choose a value from the first select box the second select box should
have appropriate values.

eg: first one has science/ IT etc.,

 if i choose science the second should show
say
maths/ history/ physics/ chemistry

if i choose IT from the first , the second box should show
say
hardware/ software /networking / etc.,

if anybody has a piece of code for this i would really appreciate it.




Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: off topic - java script

2002-05-16 Thread Sabari Arasu (CTC)

createElement is not supported by Netscape!

Rgds,
Sabari Arasu
AIG - TCS CTC
Ambattur,
Chennai
India

 -Original Message-
 From: Vikramjit Singh [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, May 17, 2002 11:22 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: off topic - java script

 check this


 !-- TWO STEPS TO INSTALL DROPDOWN BOX POPULATION:

   1.  Copy the coding into the HEAD of your HTML document
   2.  Add the last code into the BODY of your HTML document  --

 !-- STEP ONE: Paste this code into the HEAD of your HTML document  --

 HEAD

 SCRIPT LANGUAGE=JavaScript

 !-- Begin
 var arrItems1 = new Array();
 var arrItemsGrp1 = new Array();

 arrItems1[3] = Truck;
 arrItemsGrp1[3] = 1;
 arrItems1[4] = Train;
 arrItemsGrp1[4] = 1;
 arrItems1[5] = Car;
 arrItemsGrp1[5] = 1;

 arrItems1[6] = Boat;
 arrItemsGrp1[6] = 2;
 arrItems1[7] = Submarine;
 arrItemsGrp1[7] = 2;

 arrItems1[0] = Planes;
 arrItemsGrp1[0] = 3;
 arrItems1[1] = Ultralight;
 arrItemsGrp1[1] = 3;
 arrItems1[2] = Glider;
 arrItemsGrp1[2] = 3;

 var arrItems2 = new Array();
 var arrItemsGrp2 = new Array();

 arrItems2[21] = 747;
 arrItemsGrp2[21] = 0
 arrItems2[22] = Cessna;
 arrItemsGrp2[22] = 0

 arrItems2[31] = Kolb Flyer;
 arrItemsGrp2[31] = 1
 arrItems2[34] = Kitfox;
 arrItemsGrp2[34] = 1

 arrItems2[35] = Schwietzer Glider;
 arrItemsGrp2[35] = 2

 arrItems2[99] = Chevy Malibu;
 arrItemsGrp2[99] = 5
 arrItems2[100] = Lincoln LS;
 arrItemsGrp2[100] = 5
 arrItems2[57] = BMW Z3;
 arrItemsGrp2[57] = 5

 arrItems2[101] = F-150;
 arrItemsGrp2[101] = 3
 arrItems2[102] = Tahoe;
 arrItemsGrp2[102] = 3

 arrItems2[103] = Freight Train;
 arrItemsGrp2[103] = 4
 arrItems2[104] = Passenger Train;
 arrItemsGrp2[104] = 4

 arrItems2[105] = Oil Tanker;
 arrItemsGrp2[105] = 6
 arrItems2[106] = Fishing Boat;
 arrItemsGrp2[106] = 6

 arrItems2[200] = Los Angelas Class;
 arrItemsGrp2[200] = 7
 arrItems2[201] = Kilo Class;
 arrItemsGrp2[201] = 7
 arrItems2[203] = Seawolf Class;
 arrItemsGrp2[203] = 7

 function selectChange(control, controlToPopulate, ItemArray, GroupArray)
 {
   var myEle ;
   var x ;
   // Empty the second drop down box of any choices
   for (var q=controlToPopulate.options.length;q=0;q--)
 controlToPopulate.options[q]=null;
   if (control.name == firstChoice) {
 // Empty the third drop down box of any choices
 for (var q=myChoices.thirdChoice.options.length;q=0;q--)
 myChoices.thirdChoice.options[q] = null;
  }
   // ADD Default Choice - in case there are no values
   myEle = document.createElement(option) ;
   myEle.value = 0 ;
   myEle.text = [SELECT] ;
   controlToPopulate.add(myEle) ;
   // Now loop through the array of individual items
   // Any containing the same child id are added to
   // the second dropdown box
   for ( x = 0 ; x  ItemArray.length  ; x++ )
 {
   if ( GroupArray[x] == control.value )
 {
   myEle = document.createElement(option) ;
   myEle.value = x ;
   myEle.text = ItemArray[x] ;
   controlToPopulate.add(myEle) ;
 }
 }
 }
 //  End --
 /script

 /HEAD

 !-- STEP TWO: Copy this code into the BODY of your HTML document  --

 BODY

 form name=myChoices
 table align=center
 tr
 td
 SELECT id=firstChoice name=firstChoice onchange=selectChange(this,
 myChoices.secondChoice, arrItems1, arrItemsGrp1);
 option value=0 SELECTED[SELECT]/option
 option value=1Land/option
 option value=2Sea/option
 option value=3Air/option
 /SELECT
 /TDTD
 SELECT id=secondChoice name=secondChoice onchange=selectChange(this,
 myChoices.thirdChoice, arrItems2, arrItemsGrp2);
 /SELECT
 SELECT id=thirdChoice name=thirdChoice
 /SELECT
 /TD
 /TR
 /TABLE
 /form


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 10:39 PM
 To: [EMAIL PROTECTED]
 Subject: off topic - java script


 Hi all,

  i have 2 select boxes.
 If i choose a value from the first select box the second select box should
 have appropriate values.

 eg: first one has science/ IT etc.,

  if i choose science the second should show
 say
 maths/ history/ physics/ chemistry

 if i choose IT from the first , the second box should show
 say
 hardware/ software /networking / etc.,

 if anybody has a piece of code for this i would really appreciate it.




 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]

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

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com