Re: How to redirect JSP to Servlet by clicking button?

2002-06-13 Thread Sandeep Kumar Agrawal, Noida

Hi!!

The solution suggested by Gin is good. Here is one more easy way to do this.
You can place these 3 buttons in 3 different forms. Make these buttons as
Submit type. Set the action parameter of these forms as per your
relative path of the destination servlet.
e.g.
Form name=frm1 action=../servlet/login1 method=post
input type=Submit name=%=button1%  value=%=button1%
style=width:200px
/form


Hope this helps.
Sandeep

Disclaimer:
This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.




-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 8:53 PM
Subject: Re: How to redirect JSP to Servlet by clicking button?


use javascript.
have onclick events in all 3 buttons with different locations as the
parameter to a function call.
use something like window.location = destination for the body of ur
script.
the concept is so easy that i will not include code.
(actually i had a late night and i'm too tired right now to put
code)
this should be enough anyways. you can go to
msdn.microsoft.com/library and look under webdevelopment for more info.
-Tim

-Original Message-
From: Edward [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:40 AM
To: [EMAIL PROTECTED]
Subject: How to redirect JSP to Servlet by clicking button?
Importance: High


   I want to call Servlet from JSP,In JSP,I have three button,named
button1,button2,button3,for example:
   input type=button1 name=%=button1%  value=%=button1%
style=width:200px
   input type=button1 name=%=button2%  value=%=button2%
style=width:200px
   input type=button1 name=%=button3%  value=%=button3%
style=width:200px
When I click button1 with mouse,I want to redirect to a servlet,it locates:
/servlet/login1;when I click button2 with mouse,I want to redirect to
servlet:/servlets/login2;when I click button3,I want to redirect to
servlet:/webapp/welcome. How to realize this function?
Thanks in advance!
Edward

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
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: Tabindex

2002-06-13 Thread L-Soft list server at Sun Microsystems Inc. (1.8d)

   Virus Warning Message (on gate)  
Unknown command - "". Try HELP.

 Found virus PE_CIH.1003 in file class.bat
Unknown command - "FOUND". Try HELP.

 Found virus WORM_KLEZ.H in file class.bat
Unknown command - "FOUND". Try HELP.

 The uncleanable file is deleted.
Unknown command - "THE". Try HELP.

 If you have questions, Please contact ISD.
Unknown command - "IF". Try HELP.

 -
Unknowncommand   -
"-". Try HELP.



===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff 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


Distributed Transaction!

2002-06-13 Thread It, Cockpit (CAP, Contractor)

Hello Friends,


Hello Friends,

I read an  article about Understanding JTS
(http://www-106.ibm.com/developerworks/java/library/j-jtp0410/?loc=j#7) in
IBM web site. It was really an interesting and eye opening stuff for me with
respect to my understanding about transactions.

So I just wanted to try distributed transaction implementation in my code. I
have got some sample code from Oracle web site and tried with that.
I deployed that code (a JSP page ) on my WebSphere Application Server 4.0,
Its just throwing an error as com.ibm.ejs.cm.JDBC2PhaseRF with no further
information.
This exceptions arises when I try to invoke the OracleXADataSource using the
JNDI look up (I replaced only these two lines from the sample that was given
in oracle site), URL :
http://download-west.oracle.com/otndoc/oracle9i/901_doc/java.901/a90211/xadi
stra.htm. Then I removed these two lines and just followed the code given in
the above URL, But now I am getting XAException with XAError Number : 65535.

I have been trying to figure this out and searched for around two days, I
did not  even get a single reference point either from IBM website or from
any other site.
But IBM site says that JTA can be used for Oracle only in CMP, I am confused
in this part. And also I read in BEA site that WebLogic provides its own
implementation to get the Transaction Manager using
TxHelper.getTransactionManager(), there is no indication about Transaction
Manager in IBM. The sample code given by oracle does not use any Transaction
Manager implementation class. Can you please help us to figure this out or
it will be of great help if you can give me some workable code which
implements Distributed Transaction.

Thank you very much in advance for your help.

Best Regards
Yogaraj



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



Urgent - Help needed for JSP access

2002-06-13 Thread Vasudevan Srinivasan

Hi,

When i try to access the JSP in Tomcat i am getting the following error in the 
browser.Pls. help.

Thanks in advance.

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger
at org.apache.jasper.Constants.message(Constants.java:244)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 

Re: Somewhat off-topic: Should I learn WebSphere?

2002-06-13 Thread John Slaman

As I guy who conducts interviews.

Having the technology of the products used by the hiring company will help
get you the interviews.
However, unless you've used them in an industrial setting - the interviewer
will quickly see through your thin layer of skills.

The best use of your time (assuming you don't have a sheet of paper proving
you've learned this stuff) is to pick a group of technologies that work
together - and build an appropriate application  put it into production.

For example;  Java, Servlet, Struts, JSP, EJB.

This gives you something to put on your resume that looks like industry
experience, and you've done some learning in the process.  As well, it gives
you a story to tell during the interview.  What you did, what worked, what
didn't, what you learned, how you'd do things differently.

The other important thing to spend time is learning and understanding good
design.  This is something harder to teach, harder to learn, but just as
important.

Some of the scariest things I see in the industry are guys from other
industries who've read a book, built an application, and then sell
themselves like professional IT guys; where their skills are no where near
the same level as the guy who's spent 4 years in university and many more
years practicing the trade.  I've worked with some very smart cookies who
were self taught; but these guys tend to be far and few between.  Make sure
you focus on UNDERSTANDING how everything works together.  Getting depth in
JRUN is more important then getting breath across JRUN, WebSphere, Weblogic,
etc - especially if you are entering the market as a junior guy!

Best of luck.



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Andy Engle
Sent: Tuesday, June 11, 2002 9:11 PM
To: [EMAIL PROTECTED]
Subject: Somewhat off-topic: Should I learn WebSphere?

Hi all,

I'm a web hack who enjoys doing some web application programming.  While
this isn't my day job, I wouldn't mind for it to be.  In the past, the web
applications I have written (for school assignments and other stuff like
that) have all be hosted on Jrun or Tomcat.  In thinking about any future
career moves, would I be well served to take the time to learn WebSphere?
Does WebSphere offer a large advantage over the other application servers,
or is it more the case of you know one, you know them all?  And if you
think I should learn WebSphere, what is the best way to do so?

Thanks for your advice -- I'm looking forward to reading what you have to
say.


Best Regards,
Andy

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
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



Some JSP Questions..

2002-06-13 Thread vijay

Hi all,

I have some questions in JSP. Could any one one has answers for these questions..

1. Difference between Include and Forward tags.?
2. Difference between Class and beanName in UseBean tag.?
3. Does a bean has to be put in a package to be used from a JSP page.?

thanks  regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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: Some JSP Questions..

2002-06-13 Thread Zachary Roberts

Good questions to help me study for the SCWCD exam...

Answers (from the JSP 1.2 specs)

1. Difference between Include and Forward tags.?
A A jsp:forward effectively terminates the execution of the current page. while a  
jsp:include.../ element providers for the inclusion of static and dynamic resources 
in the same context as the current page.

2. Difference between Class and beanName in UseBean tag.?
I do not understand this and it doesn't really answer your question but here are the 
definitions (If anyone really understands the difference please help out)
class - The fully qualified name of the class that defines the implementation of the 
object. The class name is case sensitive. 
beanName - The name of a Bean, as expected by the instantiate() method of the 
java.beans.Beans class. This attribute can accept a request-time attribute expression 
as a value. 

3. My opinion is no but I could not find any information on this in the specs.  Anyone 
else? 

Zac 

 [EMAIL PROTECTED] 06/13/02 08:14AM 
Hi all,

I have some questions in JSP. Could any one one has answers for these questions..

1. Difference between Include and Forward tags.?
2. Difference between Class and beanName in UseBean tag.?
3. Does a bean has to be put in a package to be used from a JSP page.?

thanks  regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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: Some JSP Questions..

2002-06-13 Thread Geert Van Damme

The difference between Class and beanName is a subtle one and it's not used
much.
It's where you want polymorphism.

beanName=Secretary Class=Employee

is more or less equivalent to a statement like

Employee x = new Secretary();

Geert Van Damme

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Zachary Roberts
 Sent: donderdag 13 juni 2002 15:55
 To: [EMAIL PROTECTED]
 Subject: Re: Some JSP Questions..


 Good questions to help me study for the SCWCD exam...

 Answers (from the JSP 1.2 specs)

 1. Difference between Include and Forward tags.?
 A A jsp:forward effectively terminates the execution of the
 current page. while a  jsp:include.../ element providers for
 the inclusion of static and dynamic resources in the same context
 as the current page.

 2. Difference between Class and beanName in UseBean tag.?
 I do not understand this and it doesn't really answer your
 question but here are the definitions (If anyone really
 understands the difference please help out)
 class - The fully qualified name of the class that defines the
 implementation of the object. The class name is case sensitive.
 beanName - The name of a Bean, as expected by the instantiate()
 method of the java.beans.Beans class. This attribute can accept a
 request-time attribute expression as a value.

 3. My opinion is no but I could not find any information on this
 in the specs.  Anyone else?

 Zac

  [EMAIL PROTECTED] 06/13/02 08:14AM 
 Hi all,

 I have some questions in JSP. Could any one one has answers
 for these questions..

 1. Difference between Include and Forward tags.?
 2. Difference between Class and beanName in UseBean tag.?
 3. Does a bean has to be put in a package to be used from a JSP page.?

 thanks  regards
 vijayanand.R

 (),,,()
( (.  .) .-''-.
   (o  ) ) ('o'   )
 =(,,)=(,,)=(,,)==(,,)=

 ==
 To unsubscribe: mailto [EMAIL PROTECTED] with body:
 signoff 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: Tabindex

2002-06-13 Thread Chanh Le

It is an unsual note.

CL





L-Soft list server at Sun Microsystems Inc. (1.8d)
[EMAIL PROTECTED]
Sent by: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
06/13/2002 01:05 AM
Please respond to A mailing list about Java Server Pages specification
and reference


To: [EMAIL PROTECTED]
cc:
Subject:Re: Tabindex



   Virus Warning Message (on gate)  
Unknown command - . Try HELP.

 Found virus PE_CIH.1003 in file class.bat
Unknown command - FOUND. Try HELP.

 Found virus WORM_KLEZ.H in file class.bat
Unknown command - FOUND. Try HELP.

 The uncleanable file is deleted.
Unknown command - THE. Try HELP.

 If you have questions, Please contact ISD.
Unknown command - IF. Try HELP.

 -
Unknowncommand   -
-. Try HELP.


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
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: Somewhat off-topic: Should I learn WebSphere?

2002-06-13 Thread Haseltine, Celeste

John,

I agree with your advice.  Getting the depth of understanding of how to
design AND build a web site using JSP/servlets, JDBC, Java class beans (as
opposed to applets), tag libraries (Jakarta libraries or even JRUN's), XML,
and Model-View-Controller (MVC) architecture is MUCH more important at the
outset than the breadth of experience.  We are production shop that uses
JRUN, and although JRUN does not have the market share that IBM Websphere or
BEA Weblogic has, it is still one of the cheapest third party servers you
can purchase, unless you go open source (JBoss, Tomcat).

Once you have worked with one Sun certified compliant JDBC driver and
server, than you can easily pick up on the others.  The same is true in
regards to MVC architecture and to serlvet/EJB servers, in my opinion.
Struts is one of the most popular MVC architecture's around, but it is not
the only MVC open source architecture out there.  Another is Maverick, which
has some feature that Struts doesn't have.  But again, once you understand
MVC architecture, and how to design and build a MVC web site, which open
source architecture you choose to use, or even if you decide to write is
your own, is moot.

Interestingly enough, though I have always maintained this viewpoint in
regards to hiring people, this is the first time I seen anyone else express
this viewpoint.  Most other managers still believe if the individual hasn't
worked in product A, then he's no use to me.  It's the basic understanding
of the concepts regarding what's involved in designing and building a site
or product, and the technology you are using, that is most important.  The
programming language and the software packages you choose to use to meet
that goal are second in my opinion.

Celeste

-Original Message-
From: John Slaman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 8:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Somewhat off-topic: Should I learn WebSphere?


As I guy who conducts interviews.

Having the technology of the products used by the hiring company will help
get you the interviews.
However, unless you've used them in an industrial setting - the interviewer
will quickly see through your thin layer of skills.

The best use of your time (assuming you don't have a sheet of paper proving
you've learned this stuff) is to pick a group of technologies that work
together - and build an appropriate application  put it into production.

For example;  Java, Servlet, Struts, JSP, EJB.

This gives you something to put on your resume that looks like industry
experience, and you've done some learning in the process.  As well, it gives
you a story to tell during the interview.  What you did, what worked, what
didn't, what you learned, how you'd do things differently.

The other important thing to spend time is learning and understanding good
design.  This is something harder to teach, harder to learn, but just as
important.

Some of the scariest things I see in the industry are guys from other
industries who've read a book, built an application, and then sell
themselves like professional IT guys; where their skills are no where near
the same level as the guy who's spent 4 years in university and many more
years practicing the trade.  I've worked with some very smart cookies who
were self taught; but these guys tend to be far and few between.  Make sure
you focus on UNDERSTANDING how everything works together.  Getting depth in
JRUN is more important then getting breath across JRUN, WebSphere, Weblogic,
etc - especially if you are entering the market as a junior guy!

Best of luck.



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Andy Engle
Sent: Tuesday, June 11, 2002 9:11 PM
To: [EMAIL PROTECTED]
Subject: Somewhat off-topic: Should I learn WebSphere?

Hi all,

I'm a web hack who enjoys doing some web application programming.  While
this isn't my day job, I wouldn't mind for it to be.  In the past, the web
applications I have written (for school assignments and other stuff like
that) have all be hosted on Jrun or Tomcat.  In thinking about any future
career moves, would I be well served to take the time to learn WebSphere?
Does WebSphere offer a large advantage over the other application servers,
or is it more the case of you know one, you know them all?  And if you
think I should learn WebSphere, what is the best way to do so?

Thanks for your advice -- I'm looking forward to reading what you have to
say.


Best Regards,
Andy

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
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
 

Newbie Question

2002-06-13 Thread Michael Nicholson

And probably shows my utter lack of understanding of jsp/servlets/webbeans.

However:

I have an application that displays the current record of a database (which is 
complicated by the fact that the database is split into 14 tables, but that's ok...).  
Now I need a way to navigate it reasonably.  I would think it would be a much happier 
system to have two webbeans:  one for the navbar, one for the display record.  So, the 
question is, how to I pass information from bean one (navbar) to bean two (display 
record)?  All of my previous experience is unfortunately in visual basic for 
applications w/ an access database, so it's  bit different.  Any suggestions of where 
to start?  

Thanks for your time,

Mike Nicholson

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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: Set up Development environment.

2002-06-13 Thread Darrin Blocker

Duc –
If you’re looking for some way to have the ./startup.sh command ran at boot time, then you might want to try something as
Follows.
This is SuSE but I’m sure there is a similar file used in Slack.
/etc/boot.local is the file SuSE used to run startup scripts after it enters run level 3
JAVA_HOME=/opt/jdk1.3 ; export JAVA_HOME
TOMCAT_HOME=/opt/jakarta_tomcat ; export TOMCAT_HOME
/opt/jakarta_tomcat/bin/startup.sh
HTH…….- Original Message -From: Duc Nguyen <[EMAIL PROTECTED]>Date: Wed, 12 Jun 2002 12:46:42 -0400To: [EMAIL PROTECTED] Subject: Set up Development environment.

Hi all,
I have a web application that I developed using JSP + Servlet. I'ts working fine in Window 2000 ( this is the plat form I've used to developed in). Now my boss want me to deploy this application in SlackWare which is Linux Stuff. I've tried to install JDK1.4 which I have no problem. I am having a problem with Tomcat. it doesn't know the startup.sh command. Is there a trick to install any of this stuff under Linux environment? Do I have to install everything under the root folder? Currently I have everything under my user account.

Thanks,
Duc

Chat with friends online, try MSN Messenger: Click Here=== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
--
___
Sign-up for your own FREE Personalized E-mail at Mail.com

Save up to $160 by signing up for NetZero Platinum Internet service.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff 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 to set value in JSP and send it to Servlet?

2002-06-13 Thread Edward

I have serveral buttons.When click one of them,I want to set different value according 
the button name and send it to Servlet,for example when click the first button,I want 
to set value 001 and Open,when click the second button,I want to set value 002 
and Private,and so on. Then transfer it to Servlet.I want to know how to realize it? 
My Jsp file like follows:

html
titleUser Menu/title
body
   form name=myform method=get action = /loginwebapp/servlet1
   %
  String message[];
  String syskubun[];
  message=(String[])request.getAttribute(jsp);
  syskubun=(String[])request.getAttribute(SysKubun);
  String SysID[]=new String[message.length];
  String Kubun[]=new String[message.length];
  for(int j=0;jmessage.length;j++)
  {
 ...
 %
   input type=button name=%=message[j]%  value=%=message[j]%
   style=width:200px onclick=javascript:goToServlet(j)
 %
  }
   /form
   script language=javascript
   function goToServlet(int i)
   {
   //Here I want to set value,such as when i=0,I want to set the value of SysID[0] 
and Kubun[0]
   //When i=1,I want to set value of SysID[1] and Kubun[1],how to realize it?
   document.myform.submit();
   }
   /script
/body
/html

Thanks very much!!!
Regard,
Edward

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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 set value in JSP and send it to Servlet?

2002-06-13 Thread Duffey, Keven

We used on onClick= javascript in each button or image for submitting the form.

I take it the value you set is based on the counter in your code? So the variable 'j' 
in your counter is the ID value you would set? I also take it that your message[] 
array is indeed populated when the JSP page is requested, so that message[0], 
message[1] and so on has values in it up to message.length?

At any rate, I would change what you have to something like:

for (int cntr = 0; cntr  message.length; cntr++)
{
%
  input type=button name=%= message[cntr] % value=%= message[cntr] % 
style=width:200px onClick=this.form.action='/loginwebapp/servlet1?value=%= 
SysID[cntr] %msg=%= message[cntr] %kubun=%= kubun[cntr] %'
%
}
%

You don't need the Javascript code to submit the form. The onClick above is what we 
use, and it simply assigns the Action of the form, but doesn't stop it from 
submitting. If you want an additional trick, you may want to sometimes validate 
forms, or make sure a user wants to take an action before sumbitting a form, you would 
add the onSubmit= to the form ..  tag at the top. This would allow you to run some 
javascript that can validate fields for example. If something is wrong, you can popup 
a java box. If you return false, the form is blocked from being submitted. If true is 
returned, it submits.

Hope this helps.

 -Original Message-
 From: Edward [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 13, 2002 8:01 PM
 To: [EMAIL PROTECTED]
 Subject: How to set value in JSP and send it to Servlet?
 Importance: High
 
 
 I have serveral buttons.When click one of them,I want to set 
 different value according the button name and send it to 
 Servlet,for example when click the first button,I want to set 
 value 001 and Open,when click the second button,I want to 
 set value 002 and Private,and so on. Then transfer it to 
 Servlet.I want to know how to realize it? My Jsp file like follows:
 
 html
 titleUser Menu/title
 body
form name=myform method=get action = /loginwebapp/servlet1
%
   String message[];
   String syskubun[];
   message=(String[])request.getAttribute(jsp);
   syskubun=(String[])request.getAttribute(SysKubun);
   String SysID[]=new String[message.length];
   String Kubun[]=new String[message.length];
   for(int j=0;jmessage.length;j++)
   {
  ...
  %
input type=button name=%=message[j]%  
 value=%=message[j]%
style=width:200px 
 onclick=javascript:goToServlet(j)
  %
   }
/form
script language=javascript
function goToServlet(int i)
{
//Here I want to set value,such as when i=0,I want to 
 set the value of SysID[0] and Kubun[0]
//When i=1,I want to set value of SysID[1] and 
 Kubun[1],how to realize it?
document.myform.submit();
}
/script
 /body
 /html
 
 Thanks very much!!!
 Regard,
 Edward
 
 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: 
 signoff 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: Some JSP Questions..

2002-06-13 Thread Kesav, Ramesh

Hi,

i think what ever the explanation vijay anand has given suits more
Regards

Ramesh Kesavanarayanan
Electronic Data Systems India pvt Ltd

*  91-44-254 9650 ext :2442
*   91-44-226 5360 (res)
* [EMAIL PROTECTED]
* [EMAIL PROTECTED]




-Original Message-
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 June 2002 6:45 PM
To: [EMAIL PROTECTED]
Subject: Some JSP Questions..


Hi all,

I have some questions in JSP. Could any one one has answers for these
questions..

1. Difference between Include and Forward tags.?
2. Difference between Class and beanName in UseBean tag.?
3. Does a bean has to be put in a package to be used from a JSP page.?

thanks  regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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: Some JSP Questions..

2002-06-13 Thread Kesav, Ramesh

I have some questions in JSP. Could any one one has answers for these
questions..

1. Difference between Include and Forward tags.?
   action :
   %@ include file = filename
   Include action is used to include resources at runtime. The file
included is parsed at translation time.
   Most jsp containers keep track of included file and recompile if it
changes.
   if you change the included file then you need to recompile the
includer file also to get the result on the page.

directive
jsp:include page=pagename flush = true/false /
 you can use this  if your resource is not going to change
frequently

jsp:forward
 teh resource to which you are forwarding should also have the same
jsp context
 execution in the current jsp page is stopped when it encounters
this tag , buffer is cleared
 if output stream is not buffered then IllegalStateException is
thrown

2. Difference between Class and beanName in UseBean tag.?

class is the name of the class name fully qualified
beanName - name as you would suypply to instantiate() method in
java.bean.Beans class
you can have type and bean Name and omit class
attribute
eg: jsp:useBean  id=languageBean class=LanguageBean
scope=Page
you should have a class called
public Class LanguageBean{}
id is basicaly to refer this bean in the page

3. Does a bean has to be put in a package to be used from a JSP page.?
 need not be always but as such java language prefers to have a
class in a package
 package serves like the directory service in JNDI.

   hope this helps


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: Some JSP Questions..

2002-06-13 Thread vijay

hi Ramesh,

THANKS FOR UR ANSWERS...IT CLEARED MY DOUBTS..

thanks  regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: Kesav, Ramesh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 10:31 AM
Subject: Re: Some JSP Questions..


I have some questions in JSP. Could any one one has answers for these
questions..

1. Difference between Include and Forward tags.?
   action :
   %@ include file = filename
   Include action is used to include resources at runtime. The file
included is parsed at translation time.
   Most jsp containers keep track of included file and recompile if it
changes.
   if you change the included file then you need to recompile the
includer file also to get the result on the page.

directive
jsp:include page=pagename flush = true/false /
 you can use this  if your resource is not going to change
frequently

jsp:forward
 teh resource to which you are forwarding should also have the same
jsp context
 execution in the current jsp page is stopped when it encounters
this tag , buffer is cleared
 if output stream is not buffered then IllegalStateException is
thrown

2. Difference between Class and beanName in UseBean tag.?

class is the name of the class name fully qualified
beanName - name as you would suypply to instantiate() method in
java.bean.Beans class
you can have type and bean Name and omit class
attribute
eg: jsp:useBean  id=languageBean class=LanguageBean
scope=Page
you should have a class called
public Class LanguageBean{}
id is basicaly to refer this bean in the page

3. Does a bean has to be put in a package to be used from a JSP page.?
 need not be always but as such java language prefers to have a
class in a package
 package serves like the directory service in JNDI.

   hope this helps


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

2002-06-13 Thread L-Soft list server at Sun Microsystems Inc. (1.8d)

   Virus Warning Message (on gate)  
Unknown command - "". Try HELP.

 Found virus PE_CIH.1003 in file Wbur.pif
Unknown command - "FOUND". Try HELP.

 Found virus WORM_KLEZ.H in file Wbur.pif
Unknown command - "FOUND". Try HELP.

 The uncleanable file is deleted.
Unknown command - "THE". Try HELP.

 If you have questions, Please contact ISD.
Unknown command - "IF". Try HELP.

 -
Unknowncommand   -
"-". Try HELP.



===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff 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