Re: JSP help

2003-01-08 Thread Herc

/examples is just another aplication  is the default application in the 
server. There must be specified your application name.

__
Do you want a free e-mail for life ? Get it at http://www.personal.ro/


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




JSP help

2003-01-07 Thread Elif Akten
hi,
I wrote to webapps/root/MyApplication/web-inf/web.xml all servlet names
also all servlets to webapps/root/MyApplication/web-inf/classes  but there 
is an
error in log files Like that 2003-01-07 13:22:54 ContextConfig[/examples] 
Configuration error in  application web.xml 
java.lang.IllegalArgumentException: Invalid url-pattern adminPassControl

Can any one help me?

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



JSP help: A bit off topic

2003-01-03 Thread Raj



Hi,
This doesn't exactly relate to Tomcat, but it is a 
general JSP query. You see, I am using a set of Java classes, packaged as CTG 
(CICS Transaction Gateway) provided by IBM. My problem is, I am able to 
instantiate a CTG object inside the JSP. For example, in the JSP, if I 
write

html
blah blah blah
%
CTGClass ctgObject = blah blah blah

.
%
b%=ctgObject.getSomeString()%b


This works fine. But when I write all this code inside 
my class, and say

html
blah blah blah
%
myClass myObject;
myObject.getSomeString() /* This will actually contain 
all the code in JSP, just to avoid the JSP page cluttered with Java Code 
*/

But this doesn't work. This problem is not only with 
CTG but many other classes, too. One interesting observation is, if I add a main 
to myClass and run it from the command prompt, it works perfectly.
Any help?
Raj

** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm
** No virus found in attached file noname.htm

This mail has been scanned by Interscan Viruswall
* End of message ***



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: JSP help: A bit off topic

2003-01-03 Thread Laxmikanth M.S.
I don't see useBean Tag if u want to use a class use UseBean and call
the methos using the bean...


 -Original Message-
 From: Raj [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 3:42 PM
 To:   Tomcat Users List
 Subject:  JSP help: A bit off topic
 
 Hi,
 This doesn't exactly relate to Tomcat, but it is a general JSP query. You
 see, I am using a set of Java classes, packaged as CTG (CICS Transaction
 Gateway) provided by IBM. My problem is, I am able to instantiate a CTG
 object inside the JSP. For example, in the JSP, if I write
  
 html
 blah blah blah
 %
 CTGClass ctgObject = blah blah blah
 
 .
 %
 b%=ctgObject.getSomeString()%b
  
  
 This works fine. But when I write all this code inside my class, and say
  
 html
 blah blah blah
 %
 myClass myObject;
 myObject.getSomeString() /* This will actually contain all the code in
 JSP, just to avoid the JSP page cluttered with Java Code */
  
 But this doesn't work. This problem is not only with CTG but many other
 classes, too. One interesting observation is, if I add a main to myClass
 and run it from the command prompt, it works perfectly.
 
 Any help?
 Raj
 File: InterScan_SafeStamp.txtFile: ATT12098.txt  
*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP help: A bit off topic

2003-01-03 Thread Mehdi . Nejad

Hi,

You should not *have* to use a useBean in order to instantiate a class.   I
did not see in the example you posted, where you actually created an
Object.. your code was :

 myClass myObject;
 myObject.getSomeString() /* This will actually contain all the code in
 JSP, just to avoid the JSP page cluttered with Java Code */

.. but no-where was there a myObject = new myClass();

ie :

myClass myObject = new myClass();
myObject.getSomeString()

until you do this, there is no object, just a ref, so you can't call
methods on it.

Thanks,

Mehdi Nejad



   
  
  Laxmikanth M.S.
  
  laxmikanth.ms@sonata-soTo:   Tomcat Users List 
[EMAIL PROTECTED]   
  ftware.com cc:  
  
  Subject:  RE: JSP help: A bit 
off topic
  03/01/2003 10:15 
  
  Please respond to
  
  Tomcat Users List  
  
   
  
   
  




I don't see useBean Tag if u want to use a class use UseBean and call
the methos using the bean...


 -Original Message-
 From:Raj [SMTP:[EMAIL PROTECTED]]
 Sent:Friday, January 03, 2003 3:42 PM
 To:Tomcat Users List
 Subject: JSP help: A bit off topic

 Hi,
 This doesn't exactly relate to Tomcat, but it is a general JSP query. You
 see, I am using a set of Java classes, packaged as CTG (CICS Transaction
 Gateway) provided by IBM. My problem is, I am able to instantiate a CTG
 object inside the JSP. For example, in the JSP, if I write

 html
 blah blah blah
 %
 CTGClass ctgObject = blah blah blah
 
 .
 %
 b%=ctgObject.getSomeString()%b


 This works fine. But when I write all this code inside my class, and say

 html
 blah blah blah
 %
 myClass myObject;
 myObject.getSomeString() /* This will actually contain all the code in
 JSP, just to avoid the JSP page cluttered with Java Code */

 But this doesn't work. This problem is not only with CTG but many other
 classes, too. One interesting observation is, if I add a main to myClass
 and run it from the command prompt, it works perfectly.

 Any help?
 Raj
 File: InterScan_SafeStamp.txtFile: ATT12098.txt 
*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should
destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




JSP Help

2003-01-03 Thread Elif Akten
Hi,
I'am new to Apache and to this group..
I just install apache and tomcat ..there is something wrong with JSP 
files..for example Form's don't post..can anyone have idea?

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: JSP Help

2003-01-03 Thread Turner, John

Could be just about anything.  You will have to be much more specific for
anyone to help you quickly.  Be as specific as possible, explain what you
have, what you hav done, and what the error message is.

John

 -Original Message-
 From: Elif Akten [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 12:42 PM
 To: [EMAIL PROTECTED]
 Subject: JSP Help
 
 
 Hi,
 I'am new to Apache and to this group..
 I just install apache and tomcat ..there is something wrong with JSP 
 files..for example Form's don't post..can anyone have idea?
 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE* 
 http://join.msn.com/?page=features/virus
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP Help

2003-01-03 Thread Elif Akten


I installed Apache tomcat 4.0 and copied my webapplication to webapps/Root 
and all jar and classes to WEB-INF directory..and also comman directory
I also copied ApacheModuleJServ.dll to Apache/modules directory..
but Forms don't post and Activex objects doesn't work..
maybe some thing I missed about configuration..Can you help me??





From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JSP Help
Date: Fri, 3 Jan 2003 12:43:37 -0500


Could be just about anything.  You will have to be much more specific for
anyone to help you quickly.  Be as specific as possible, explain what you
have, what you hav done, and what the error message is.

John

 -Original Message-
 From: Elif Akten [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 12:42 PM
 To: [EMAIL PROTECTED]
 Subject: JSP Help


 Hi,
 I'am new to Apache and to this group..
 I just install apache and tomcat ..there is something wrong with JSP
 files..for example Form's don't post..can anyone have idea?

 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: JSP Help

2003-01-03 Thread Turner, John

Please be more specific.  What is the error message you are getting?  It
could be as simple as a path problem or it could be something else.  Saying
don't post doesn't tell us what is happening.

Please describe your Apache version, your configuration, etc.  I know it
seems like a lot, but if we have to guess we will just move on to another
post.

John


 -Original Message-
 From: Elif Akten [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 1:00 PM
 To: [EMAIL PROTECTED]
 Subject: RE: JSP Help
 
 
 
 
 I installed Apache tomcat 4.0 and copied my webapplication to 
 webapps/Root 
 and all jar and classes to WEB-INF directory..and also comman 
 directory
 I also copied ApacheModuleJServ.dll to Apache/modules directory..
 but Forms don't post and Activex objects doesn't work..
 maybe some thing I missed about configuration..Can you help me??
 
 
 
 
 
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: JSP Help
 Date: Fri, 3 Jan 2003 12:43:37 -0500
 
 
 Could be just about anything.  You will have to be much more 
 specific for
 anyone to help you quickly.  Be as specific as possible, 
 explain what you
 have, what you hav done, and what the error message is.
 
 John
 
   -Original Message-
   From: Elif Akten [mailto:[EMAIL PROTECTED]]
   Sent: Friday, January 03, 2003 12:42 PM
   To: [EMAIL PROTECTED]
   Subject: JSP Help
  
  
   Hi,
   I'am new to Apache and to this group..
   I just install apache and tomcat ..there is something 
 wrong with JSP
   files..for example Form's don't post..can anyone have idea?
  
   _
   MSN 8 with e-mail virus protection service: 2 months FREE*
   http://join.msn.com/?page=features/virus
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 _
 The new MSN 8: smart spam protection and 2 months FREE*  
 http://join.msn.com/?page=features/junkmail
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP help: A bit off topic

2003-01-03 Thread Craig R. McClanahan


  myObject.getSomeString() /* This will actually contain all the code in
  JSP, just to avoid the JSP page cluttered with Java Code */

If you expect getSomeString() to return *JSP* code (including tags and
scriptlets and all), you can't do that.  The JSP code is compiled the
first time you execute this page -- you can't create it dynamically at
runtime.

At best, you could have getSomeString() return some static HTML code and
write it to the output stream:

%
  out.println(myObject.getSomeString());
%

However, embedding *any* of this stuff is really a misuse of the
technology, because you end up intermixing business logic (what data am
I manipulating) with presentation logic (how do I want this data to
look) in ways that will lead you into unmaintainable spaghetti code that
is very difficult to update later.

A far better strategy is to use some sort of MVC architecture (such as
Struts, http://jakarta.apache.org/struts/) and put your business logic in
Java classes, and your presentation logic in your JSP pages or whatever.
Let your business logic deal with the *data* (getting it from the
database or whatever) and your JSP page deal with the *UI* (how it appears
to the user).

Craig


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP Help

2002-09-20 Thread Sexton, George

No, you don't want another print writer, you want to flush the implicitly
created printwriter named out that jsp creates under the hood.

If this doesn't help, I'm afraid I can't suggest anything more. I avoid JSP
like the plague.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585



-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]]
Sent: 20 September, 2002 1:21 AM
To: [EMAIL PROTECTED]
Subject: JSP Help


Hi,

Thanks for your response to my question.  I hope you don't mind if i take
this question off of the mailing list.  It will be easier to talk directly.

Unfortunatly - i couldn't get it to work any better.  Here is what i did:

In the included servlet i added the following lines after the /HTML tag

HTML
Included tags
/HTML
try {
java.io.PrintWriter pw = response.getWriter ( );
pw.flush ( );
}
catch ( ... ) { }


The result turned out the same.

I am using: java 1.4 and tomcat 4.0.4

Is this what you had in mind?

Again - thanks for your response.

Ray Madigan




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




JSP Help

2002-09-19 Thread Ray Madigan

This might not be the correct forum - but I am porting my application from
Tomcat 3 to Tomcat 4 and I am having trouble with the
requestDispatch.include ( r, r ) method.  What happens is thet the
includedjsp file gets included above the output from the parent jsp page.

The parent jsp creates the HTML form ...  with a servlet action handler
and the include directive inserts the HTML controls that are appropriate for
the situation into the surrounding HTML form.

As the page is rendered by Tomcat 4, the HTML controls are not within the
scope of the HTML form  and the application no longer works.

Any help would be appreciated.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP Help

2002-09-19 Thread Sexton, George

The solution I found was to flush() the print writer on the included servlet
but not close it.

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 5:50 PM
To: Tomcat Users List
Subject: JSP Help


This might not be the correct forum - but I am porting my application from
Tomcat 3 to Tomcat 4 and I am having trouble with the
requestDispatch.include ( r, r ) method.  What happens is thet the
includedjsp file gets included above the output from the parent jsp page.

The parent jsp creates the HTML form ...  with a servlet action handler
and the include directive inserts the HTML controls that are appropriate for
the situation into the surrounding HTML form.

As the page is rendered by Tomcat 4, the HTML controls are not within the
scope of the HTML form  and the application no longer works.

Any help would be appreciated.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem with shopping cart JSP :( Help :(

2002-04-12 Thread yilmaz

Hi everyone,
hope i can find a solution from you Gurus.
I wrote a simple shopping cart JSP file that makes use of session attributes and 
Hastables to store temporary user data. Don't know why, it insists on not to working 
properly, throwing classCastException : java.util.Vector
at 
org.apache.jsp._0002fs_0002dcart_0002fshpcart_jsp._jspService(_0002fs_0002dcart_0002fshpcart_jsp.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
..
...
I am sure many of you , too, had faced damn this problem.
Although i am not using vectors in my code, i am having exception regarding to 
Vectors. Can somebody please tell me what is wrong with this before i got crazy , 
whole afternoon i have been working on this, trying to figure out what the hell 
problem is. 

Here are some hints for those willing to help me:
win 2000
tomcat 4.0.1
my code :
%@  page language=java  import=java.util.* %
%@  page  contentType=text/html; charset=Big5  %
html

 head
  meta http-equiv=content-type content=text/html;charset=Big5
  titleShopping cart/title
 /head
%
Hashtable Pnames,Prices,Quantity;
Enumeration items=null;
Integer price=null; int pr=0;
Integer qnt=null; int quant=1;
int total=0;
Integer prodno=null;
String pname=;
Pnames=(Hashtable)session.getAttribute(cart.items);
if (Pnames==null) {
 Pnames = new Hashtable();
Prices=new Hashtable();
 Quantity=new Hashtable();

} else {
Prices=(Hashtable)session.getAttribute(cart.prices);
Quantity=(Hashtable)session.getAttribute(cart.quantity);
}
if (request.getParameter(pname)!=null) {
Pnames.put(new 
Integer(Integer.parseInt(request.getParameter(prodno))),request.getParameter(pname));
Prices.put(new Integer(Integer.parseInt(request.getParameter(prodno))), new 
Integer(Integer.parseInt(request.getParameter(price;
Quantity.put(new Integer(Integer.parseInt(request.getParameter(prodno))), new 
Integer(Integer.parseInt(request.getParameter(qnt;
}
session.setAttribute(cart.items,Pnames);
session.setAttribute(cart.prices,Prices);
session.setAttribute(cart.quantity,Quantity);

%
 body background=images/bg.jpg
  p/p
 centerh1
The items in your Shopping cart:
/h1
  p/p
  table border=1 cellpadding=0 cellspacing=2 width=466
   tr
th
 div align=center
  bitemno/b/div
/th
th
 div align=center
 bitem /b/div
/th
thbunitpricebr
  (NT)/b
 /th
th
 div align=center
   bquantity /b/div
/th
th
 div align=center
   btotalpricebr
  (NT)/b/div
/th
 th
  div align=center
   bremove/b/div
 /th
/tr
%
if ( Pnames.keys()==null){ %
There are no items in your shopping cart
% } else {
items= Pnames.keys();
while (items.hasMoreElements()) {
prodno=(Integer)items.nextElement();
pname=(String)Pnames.get(prodno);
price=(Integer)Prices.get(prodno); pr=price.intValue();
qnt=(Integer)Quantity.get(prodno); quant=qnt.intValue();
total+=pr*quant; 
%
   tr
tdi%=prodno.intValue()%/i/td
tdi%=pname%/i/td
tdi%=pr%/i/td
tdi%=qnt%/i/td
tdi%=quant*pr%/i/td
 td
a href=remove.jsp?prodno=%=prodno%irem/i/a
 /td
/tr
 % } // end of while loop%
  /table
pbTotal price :/b i%=total%/i
   p% }//end of if loop %/p
   table border=1 cellpadding=0 cellspacing=2 width=302
tr
 tha href=checkout.jspCheck Out/a/th
 tha href=javascript:history.go(-1)Go to Previous Page/a/th
 tha href=remove.jspEmpty Shopping Cart/a/th
/tr
   /table
   p/p
  /center

 /body
/html



RE: Problem with shopping cart JSP :( Help :(

2002-04-12 Thread Manuel Mall

Without looking at your code I suggest you open the file

_0002fs_0002dcart_0002fshpcart_jsp.java:71

and look at line 71 to see what line of Java code is causing the problem.

You should find that file in the Tomcat work directory for the corresponding
context.

If it is not there set the 
isWorkDirPersistent=true
attribute in the Context ... tag of your server.xml file.

Manuel

-Original Message-
...
classCastException : java.util.Vector
at
org.apache.jsp._0002fs_0002dcart_0002fshpcart_jsp._jspService(_0002fs_0002dc
art_0002fshpcart_jsp.java:71)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
..
...

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problem with shopping cart JSP :( Help :(

2002-04-12 Thread yilmaz

Thanks for your advice, but this one i had already done without success. I
opened it with dreamweaver, the  line 71 is blank, so i don't know how to
look for the real line 71, do you have any hint?
thanks :)
- Original Message -
From: Manuel Mall [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, April 12, 2002 3:46 PM
Subject: RE: Problem with shopping cart JSP :( Help :(


 Without looking at your code I suggest you open the file

 _0002fs_0002dcart_0002fshpcart_jsp.java:71

 and look at line 71 to see what line of Java code is causing the problem.

 You should find that file in the Tomcat work directory for the
corresponding
 context.

 If it is not there set the
 isWorkDirPersistent=true
 attribute in the Context ... tag of your server.xml file.

 Manuel

 -Original Message-
 ...
 classCastException : java.util.Vector
 at

org.apache.jsp._0002fs_0002dcart_0002fshpcart_jsp._jspService(_0002fs_0002dc
 art_0002fshpcart_jsp.java:71)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 ..
 ...

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problem with shopping cart JSP :( Help :(

2002-04-12 Thread yilmaz

Thanks Neale,
Actually i was using the same Jsp  a few months ago without any problem,
today i just wanted to make another shopping cart application, and wanted to
make use of the previous shopping cart jsp, surprisingly i couldn't make it
work ?? :(
I am still trying ..
Cheers :)
- Original Message -
From: Neale Rudd [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 12, 2002 5:05 PM
Subject: Re: Problem with shopping cart JSP :( Help :(


 I have been able to run your jsp successfully on our
 own server, and added products to the list with
 URL's such as:
 testjsp.jsp?prodno=1price=2qnt=3pname=hello
 testjsp.jsp?prodno=2price=2qnt=3pname=hello2

 So your error seems to be caused by another JSP that
 is putting something other than a Hashtable into the
 session.

 Hope that helps,
 Neale


 -Original Message-
 From: yilmaz [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Date: Friday, 12 April 2002 18:05
 Subject: Re: Problem with shopping cart JSP :( Help :(


 Thanks for your advice, but this one i had already done without
 success. I
 opened it with dreamweaver, the  line 71 is blank, so i don't know
 how to
 look for the real line 71, do you have any hint?
 thanks :)
 - Original Message -
 From: Manuel Mall [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, April 12, 2002 3:46 PM
 Subject: RE: Problem with shopping cart JSP :( Help :(
 
 
  Without looking at your code I suggest you open the file
 
  _0002fs_0002dcart_0002fshpcart_jsp.java:71
 
  and look at line 71 to see what line of Java code is causing the
 problem.
 
  You should find that file in the Tomcat work directory for the
 corresponding
  context.
 
  If it is not there set the
  isWorkDirPersistent=true
  attribute in the Context ... tag of your server.xml file.
 
  Manuel
 
  -Original Message-
  ...
  classCastException : java.util.Vector
  at
 
 org.apache.jsp._0002fs_0002dcart_0002fshpcart_jsp._jspService(_0002fs
 _0002dc
  art_0002fshpcart_jsp.java:71)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  ..
  ...
 
  --
  To unsubscribe:
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




jsp help

2001-06-16 Thread JeremyRayYoo

Hi, this may sound remedial but I was hoping someone can clear jsp up for me. 
Java Servelets are executed by inputting the necessary information in the 
web.xml. This would include the servlet name, servlet class name, and the 
name you want it to be called as when called from browser. This much I know 
about the servlets. However because I am new to JSP I don't how to set it up 
and execute. Is it similar to the servlet process? Do you even have to put in 
an entry in the web.xml file. The examples given with jakarta does clarify 
much because all of the examples are executed by putting in the directory and 
.jsp file name in the browser url, obviously you couldn't put the directory 
name when executing by requesting like this:

http://localhost:8080/examples/file_name.jsp

I am doing my research by reading books and all but I would also appreciate 
some feedback from the public. 



Re: jsp help

2001-06-16 Thread Luba Powell

Hello, Jeremy:
If you are familiar with servlets - there isn't much more to know about JSP.
JSP is a short-hand for generating servlets. Just few tags to learn.
The advantage of writing JSP tags is that (in our case) apache programs:
parser, compilers, loaders parse these tags, generate servlets, already
familiar to you and load generated classes into the JVM.
So this is all there is to it.

R/Luba




- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 16, 2001 9:26 PM
Subject: jsp help


 Hi, this may sound remedial but I was hoping someone can clear jsp up for
me.
 Java Servelets are executed by inputting the necessary information in the
 web.xml. This would include the servlet name, servlet class name, and the
 name you want it to be called as when called from browser. This much I
know
 about the servlets. However because I am new to JSP I don't how to set it
up
 and execute. Is it similar to the servlet process? Do you even have to put
in
 an entry in the web.xml file. The examples given with jakarta does clarify
 much because all of the examples are executed by putting in the directory
and
 .jsp file name in the browser url, obviously you couldn't put the
directory
 name when executing by requesting like this:

 http://localhost:8080/examples/file_name.jsp

 I am doing my research by reading books and all but I would also
appreciate
 some feedback from the public.




Re: jsp help

2001-06-16 Thread Luba Powell

Correction: tomcat (not apache) programs..

- Original Message -
From: Luba Powell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 16, 2001 9:51 PM
Subject: Re: jsp help


 Hello, Jeremy:
 If you are familiar with servlets - there isn't much more to know about
JSP.
 JSP is a short-hand for generating servlets. Just few tags to learn.
 The advantage of writing JSP tags is that (in our case) apache programs:
 parser, compilers, loaders parse these tags, generate servlets, already
 familiar to you and load generated classes into the JVM.
 So this is all there is to it.

 R/Luba




 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 16, 2001 9:26 PM
 Subject: jsp help


  Hi, this may sound remedial but I was hoping someone can clear jsp up
for
 me.
  Java Servelets are executed by inputting the necessary information in
the
  web.xml. This would include the servlet name, servlet class name, and
the
  name you want it to be called as when called from browser. This much I
 know
  about the servlets. However because I am new to JSP I don't how to set
it
 up
  and execute. Is it similar to the servlet process? Do you even have to
put
 in
  an entry in the web.xml file. The examples given with jakarta does
clarify
  much because all of the examples are executed by putting in the
directory
 and
  .jsp file name in the browser url, obviously you couldn't put the
 directory
  name when executing by requesting like this:
 
  http://localhost:8080/examples/file_name.jsp
 
  I am doing my research by reading books and all but I would also
 appreciate
  some feedback from the public.





[Basic] JSP help!

2000-11-17 Thread Winnie Cheung

1. How do you "redirect" a page? I have code that

if string == a then
 forward to page 1
else
forward to page 2

Unlike ASP, the forward tag just sort of INCLUDES the file! The file name in
the browser is the same..not that of the file that I am forwarding to! What
is the command to really REDIRECT the page by changing the URL of the
current browser window?

2. How can I get the current path of the script? I mean something like
 REQUEST.SERVERVARIABLES("SCRIPT_NAME")
or  REQUEST.SERVERVARIABLES("PATH_INFO")

3. I need to know some string manipulation functions like substr etc...most
JSP books assume you know Java, where can I find a good beginner's reference
to all these functions?

I would really appreciate if someone can help! Thanks!

Winniw




RE: [Basic] JSP help!

2000-11-17 Thread CPC Livelink Admin


1.  In a jsp you can use response.sendRedirect("URL") to send the browser
an instruction to open another page.  Forward does like you say - totally a
server thing.

2.  I believe it is request.getContextPath

3.  Go to the Java site (www.javasoft.com) and go to their tutorial or search
on google for Java Tutorial and you will find a wealth of tutorial info.

-Original Message-
From: Winnie Cheung [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 18, 2000 12:18 AM
To: [EMAIL PROTECTED]
Subject: [Basic] JSP help!


1. How do you "redirect" a page? I have code that

if string == a then
 forward to page 1
else
forward to page 2

Unlike ASP, the forward tag just sort of INCLUDES the file! The file name in
the browser is the same..not that of the file that I am forwarding to! What
is the command to really REDIRECT the page by changing the URL of the
current browser window?

2. How can I get the current path of the script? I mean something like
 REQUEST.SERVERVARIABLES("SCRIPT_NAME")
or  REQUEST.SERVERVARIABLES("PATH_INFO")

3. I need to know some string manipulation functions like substr etc...most
JSP books assume you know Java, where can I find a good beginner's reference
to all these functions?

I would really appreciate if someone can help! Thanks!

Winniw