using JWebUnit and Model 2

2005-02-10 Thread Dean, Michael
After reviewing the Quick Start @ Source Forge, we're confused in my
shop.  With a TRUE MVC scenario,  how can you effectively test the .jsps
invoked by a/the controller servlet? the QS examples show the pages
being called in isolation by JWebUnit (i.e. beginAt(some.jsp)...in our
target application, these pages are not exposed to the user (return
404).

 

I guess you could write a long, sequential test case which
beginsAt(servlet_url) and then processes the returns until you got
(robot style) where you want to begin the test but this hardly seems
viable.  Alternatively, using the canonical isolation approach would
require building some mock object state/session entity to spoof the
interaction at some desired point.

 

Are we missing something about this tool?  What other tools/approaches
address this type testing need?

 

Michael Dean

Senior Java Programmer

ISD/JIS Applications/Development/Bears

Administrative Office of the Courts

360.704.4008

[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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


server-side caching to avoid losing client work-in-progress

2004-08-09 Thread Dean, Michael D.
We have a web application where users often take an extended period of time,
due to research needs and info gathering, to populate a target document
before saving to the server side. Often, the system timeout expires or local
gremlins occur, etc.. We've discussed using notification pop-ups and a
JavaScript timer to advise the users to save their work but what if the
user has walked away from the desktop when the pop-up emerges?   I'm
wondering if there are viable strategies for auto-magically flushing
in-process work to the server-side for caching within the ServletContext?
What would be a viable key for storing the in-process work object in the SC?

Anybody got any primers on this topic?


TIA,

Michael Dean
Sun Certified Programmer for the Java 2 Platform
Washington State Department of Corrections
ph: 360-570-6928
fx:  360-586-1333
mailto://[EMAIL PROTECTED]

Iron sharpeneth iron;
so a man sharpeneth the countenance of his friend
 - Proverbs 27:17

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: JSP Tools

2004-07-21 Thread Michael Rozlog
Actually, Java is not open.  I don't mean to start a major fight, but the
admission that Java is owned by Sun and the JCP is still mostly controlled
by Sun and it has never been given to any standards committee in actuality
makes it fairly closed.  However, on the hand, Microsoft has submitted the
.NET platform to ECMA standard body and it has a rival / open source
competitor called Mono (owned by Novell) but still open
http://www.mono-project.com/about/mono-roadmap.html.  So from strictly a
standards point of view .NET is technically more open then Java.  By the by,
isn't the fact that Sun sued Microsoft because it made a different version
of Java, which to this day Microsoft has not sued the Mono project for
porting the .NET platform to Linux also sort of a wake up call?

Now as far as making changes to the frameworks in question, I have no doubt
that the JCP is more open to the community then currently is available from
Microsoft.  However, Microsoft makes a great point, by stating that by them
controlling the framework it will not have the bloat like Java, but we will
have to wait and see... because as they add more features the .NET platform
it will expand and may very well become bloated, just like Java is today.

Mike
- Original Message -
From: Lykins Don H Contr AFSAC/ITS [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 12:49 PM
Subject: Re: JSP Tools


 don't get caught up in the .Net HYPE!
 stick with a standards based approach that's more open than .Net.

 Realizing of course J2EE is still owned by SUN but controlled by JCP.org,
but it is still more open than .Net

 still with open standards (J2EE) and open source!

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED] Behalf Of lee hwaying
 Sent: Wednesday, July 21, 2004 12:47 PM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP Tools


 i have started the state of art in developing MVC more than 1 month now
 using

 tomcat,
 java,
 jsf

 and in comparison
 asp.net
 c#

 and found .net has great strength in competition as you can download
asp.net
 for free. it is a mature jsf in comparison, to get a paging done is faily
 straight forward in asp.net. file uploads are a breeze. i wonder whether
is
 time to migrate to .net. As now you can get the .net framework for free as
 well. and every pc come with personal web server.

 and one more thing, it is fairly the same price for the web hosting for
 both.

 any thoughts?

 From: John Smith [EMAIL PROTECTED]
 Reply-To: John Smith [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: JSP Tools
 Date: Wed, 21 Jul 2004 09:59:41 +0100
 
 Thank-you for the recommendation.  I have been trying to get my head
around
 JDeveloper over the last few days.  It looks hopeful once I can master
it.
 Once I have done that I shall download the trial and try JavaServer
Faces,
 but
 I think that two at once will be too much!
 
 John
 
 - Original Message -
 From: Mark Roth [EMAIL PROTECTED]
 Sent: Thursday, July 15, 2004 2:47 PM
 Don't forget about JavaServer Faces and the nice tools like Java Studio
 Creator:
   http://wwws.sun.com/software/products/jscreator/
 
 Michael Rozlog wrote:
   Look at JBuilder Developer
   Visual Servlets, JSP, and Struts designers really lower the amount of
 code.
   Plus, it has a nice integration with JUnit that helps with the unit
 testing.
  
   - Original Message -
   From: John Smith [EMAIL PROTECTED]
   Sent: Thursday, July 15, 2004 5:52 AM
  I use an Oracle database running on HP Unix.  Currently I am working
to
   migrate all of the UI to web based, thus giving my PC support
colleagues
 the
 thin
  client they would prefer!  So far I have been using vi to create all
of
 the
  server side scripts, but I can see a lot of work ahead.  Now I get to
 the
  point!  I've looked at a number of design tools but am stil at a loss
as
   to which would be the most suitable so I  come to the list asking your
   opinions.
  I am sure that you will each have your favorites ;-) but would you
care
 to
  offer opinions as to what might suit my needs and what will not?  I
 would
   like to at least ruduce the number of products that I need to
evaluate!
 

===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 
 Some relevant archives, FAQs and Forums on JSPs can be found at:
 
   http://java.sun.com/products/jsp
   http://archives.java.sun.com/jsp-interest.html
   http://forums.java.sun.com
   http://www.jspinsider.com

 _
 Are you in love? Find a date on MSN Personals http://match.msn.com.my/


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

Re: JSP Tools

2004-07-21 Thread Michael Rozlog
You mis-understood my context, the JCP is controlled by Sun and the
Executive committee and the PMO.  The JSR can be established by any
individual, group, or company but the final word comes down to Sun, EC, and
PMO.  The JSR are fine, but again as a side note Microsoft also has an
executive committee to establish direction for the .NET platform, however it
is not near as open to the public as the JCP is.

Again, I'm not saying the JCP is bad, I'm just pointing out that Microsoft
has filed a standard for .NET and that they also have a way to change or
modify the .NET platform.

Mike
- Original Message -
From: Lykins Don H Contr AFSAC/ITS [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 1:53 PM
Subject: Re: JSP Tools


 The JCP is NOT mostly controlled by SUN as you claim.
 Simply navigate http://jcp.org and peruse the JSR's.
 You'll see many of the specification leads are non-Sun employees.

 example:  JSR 29  JAIN MAP is led by Ericsson, Inc.
 and the expert group consists of many different firms.

 heck, one JSR listed AOL (america on-line) as the expert group -- go
figure...??



 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED] Behalf Of Michael Rozlog
 Sent: Wednesday, July 21, 2004 1:43 PM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP Tools


 Actually, Java is not open.  I don't mean to start a major fight, but the
 admission that Java is owned by Sun and the JCP is still mostly controlled
 by Sun and it has never been given to any standards committee in actuality
 makes it fairly closed.  However, on the hand, Microsoft has submitted the
 .NET platform to ECMA standard body and it has a rival / open source
 competitor called Mono (owned by Novell) but still open
 http://www.mono-project.com/about/mono-roadmap.html.  So from strictly a
 standards point of view .NET is technically more open then Java.  By the
by,
 isn't the fact that Sun sued Microsoft because it made a different version
 of Java, which to this day Microsoft has not sued the Mono project for
 porting the .NET platform to Linux also sort of a wake up call?

 Now as far as making changes to the frameworks in question, I have no
doubt
 that the JCP is more open to the community then currently is available
from
 Microsoft.  However, Microsoft makes a great point, by stating that by
them
 controlling the framework it will not have the bloat like Java, but we
will
 have to wait and see... because as they add more features the .NET
platform
 it will expand and may very well become bloated, just like Java is today.

 Mike
 - Original Message -
 From: Lykins Don H Contr AFSAC/ITS [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 21, 2004 12:49 PM
 Subject: Re: JSP Tools


  don't get caught up in the .Net HYPE!
  stick with a standards based approach that's more open than .Net.
 
  Realizing of course J2EE is still owned by SUN but controlled by
JCP.org,
 but it is still more open than .Net
 
  still with open standards (J2EE) and open source!
 
  -Original Message-
  From: A mailing list about Java Server Pages specification and reference
  [mailto:[EMAIL PROTECTED] Behalf Of lee hwaying
  Sent: Wednesday, July 21, 2004 12:47 PM
  To: [EMAIL PROTECTED]
  Subject: Re: JSP Tools
 
 
  i have started the state of art in developing MVC more than 1 month now
  using
 
  tomcat,
  java,
  jsf
 
  and in comparison
  asp.net
  c#
 
  and found .net has great strength in competition as you can download
 asp.net
  for free. it is a mature jsf in comparison, to get a paging done is
faily
  straight forward in asp.net. file uploads are a breeze. i wonder whether
 is
  time to migrate to .net. As now you can get the .net framework for free
as
  well. and every pc come with personal web server.
 
  and one more thing, it is fairly the same price for the web hosting for
  both.
 
  any thoughts?
 
  From: John Smith [EMAIL PROTECTED]
  Reply-To: John Smith [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: JSP Tools
  Date: Wed, 21 Jul 2004 09:59:41 +0100
  
  Thank-you for the recommendation.  I have been trying to get my head
 around
  JDeveloper over the last few days.  It looks hopeful once I can master
 it.
  Once I have done that I shall download the trial and try JavaServer
 Faces,
  but
  I think that two at once will be too much!
  
  John
  
  - Original Message -
  From: Mark Roth [EMAIL PROTECTED]
  Sent: Thursday, July 15, 2004 2:47 PM
  Don't forget about JavaServer Faces and the nice tools like Java Studio
  Creator:
http://wwws.sun.com/software/products/jscreator/
  
  Michael Rozlog wrote:
Look at JBuilder Developer
Visual Servlets, JSP, and Struts designers really lower the amount
of
  code.
Plus, it has a nice integration with JUnit that helps with the unit
  testing.
   
- Original Message -
From: John Smith [EMAIL PROTECTED]
Sent: Thursday, July 15

Re: JSP Tools

2004-07-15 Thread Michael Rozlog
Look at JBuilder Developer

Visual Servlets, JSP, and Struts designers really lower the amount of code.
Plus, it has a nice integration with JUnit that helps with the unit testing.

Hope this helps,

Mike

- Original Message -
From: John Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 5:52 AM
Subject: JSP Tools


 I use an Oracle database running on HP Unix.  Currently I am working to
migrate
 all of the UI to web based, thus giving my PC support colleagues the thin
 client they would prefer!  So far I have been using vi to create all of
the
 server side scripts, but I can see a lot of work ahead.  Now I get to the
 point!  I've looked at a number of design tools but am stil at a loss as
to
 which would be the most suitable so I  come to the list asking your
opinions.
 I am sure that you will each have your favorites ;-) but would you care to
 offer opinions as to what might suit my needs and what will not?  I would
like
 to at least ruduce the number of products that I need to evaluate!

 Many thanks
 John


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

 Some relevant archives, FAQs and Forums on JSPs can be found at:

  http://java.sun.com/products/jsp
  http://archives.java.sun.com/jsp-interest.html
  http://forums.java.sun.com
  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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: requested resource (/appfuse/) is not available. ??? (2)

2004-04-07 Thread Dean, Michael D.
Majid:

If you auto-deployed your /appfuse to Tomcat by dropping in to your
/webapps folder, you may have forgotten to provide an index.html or
index.jsp page as the application entry point.  The Tomcat default
(server.xml) defines, by default type(s)  index.html,index.jsp, as I
recall

Best Regards,

Michael Dean
Sun Certified Programmer for the Java 2 Platform
Washington State Department of Corrections
ph: 360-570-6928
fx:  360-586-1333
mailto://[EMAIL PROTECTED]

Iron sharpeneth iron;
  so a man sharpeneth the countenance of his friend
 - Proverbs 27:17

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: JavaMail 1.3.1

2004-03-01 Thread Dean, Michael D.
Marty:

Now this smells like a classpath problem:

What is your application directory structure.  What does the command-line
invocation look like?  Where are you sitting (in the directory) structure
when you invoke?

M

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


re JavaMail 1.3.1

2004-02-28 Thread Dean, Michael D.
Marty:

Put the mail.jar and activation.jar (JAF) into your jre\lib\ext directory

Best Regards,

Michael Dean
Sun Certified Programmer for the Java 2 Platform
Washington State Department of Corrections
ph: 360-570-6928
fx:  360-586-1333
mailto://[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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: Real time, monitoring with graphics resorces with J2EE

2004-01-23 Thread Michael Coughlan
 On Mon, Jan 19, 2004 at 07:33:11AM -0800, Ulises wrote:
  I have to read diffrent devices like sensors and alarms (by reading
  a port upd/ip and tcp/ip) and then show its status in some graphical
  form in a browser (in real time). The platform is J2EE. 
 Does somebody
  knows or have experience to the respect?, principally architecture
  scope.

I believe this was already written in C.

Take a look at the free product Big Brother. http://bb4.com/

It runs on everything, and you get the source code.

You may also want to check out http://www.deadcat.net for plugins to BB which may be 
helpful.

It executes paging programs when a service acts up.  They support a number of these 
out of the box. We could also execute a command line arguement with your data in it.

I only know these specs. I know no specifics. 

If you want to make a big contribution you might author some Java hook-ins.

MPC

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: JMS + writing to a CSV flie

2004-01-22 Thread Michael Coughlan
Hi Thiharie, thanks for the reply.

 There is no such thing as overkill. It is merely an 
 architectural decision.

Good point.

 
 You need to determine whether the overhead of writing to 
 a log file each time is within acceptable performance 
 parameters defined for the application you are building.

I hadn't thought about that. Luckily messages appear on the order of Hz, about one per 
second.



 Possible work around
 You can create a Value Object and fill it with 20, 50 or 
 100 timestamps and then write out to persistent storage 
 or whatever medium you are logging to.

Thanks for bringing this to my attention. 

I created a test program with log4j and was instantly enamored. The learning curve was 
not steep. 

The one thing that I did not want to do was use a sledgehammer when a hammer would do, 
but I quickly realized that the asynchronous nature of JMS made file writing 
non-trivial. 

log4j was the perfect solution.

MPC

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: voice conferencing

2004-01-21 Thread Michael Coughlan
 provide a voice driven conferencing feature within a webpage, 
 i don't think
 this is possible with JSP but might be possible with applets, 
 any ideas?

I would not want to reinvent this wheel.
I would look into various open source projects on Sourceforge. 
Perhapse a chat client like Jabber has this build in. 
Perhapse it even has an API.

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


JMS + writing to a CSV flie

2004-01-21 Thread Michael Coughlan
I need to write timstamp information from JMS messages to a data file. This data file 
would ideally be in CVS format.

The question I have is, what toolkit should I use to write to the file?

JMS is asynchronous. I've registered my message handling function?

Should I be using log4j?'
IS that overkill ?
TIA

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: JSP browser snooper

2004-01-13 Thread Michael Coughlan
Thanks for the reply Christain.

 
 On the server side, you have to live with what you get
 from the request.

I think were cool with that. This is currently used by our helpdesk team alone for 
diagnostics for trouble tickets. None of our applications make assumptions based on 
snooping.




 That is, you can evaluate the headers,
 from where the request came from, which protocol was
 used, what MIME types are accepted and so on. Still,
 you can't get details about the client configuration
 beyond what you can tell from that information.
 Additional information may be available via JavaScript,
 and BrowserHawk itself seems to make extended use
 of it.

Cool. Thanks for the info. I had not thought to research Javascript. I'll take this 
thread to that list.




 Just to note, when testing the link given the
 information proved to be not too reliable.Most
 tests (Konqueror 3.1, SuSE Linux 9.0, Sun Java
 1.4.2, Applets accepted, JavaScript enabled,
 Acrobat Reader 5 installed; I have a P4, 512MB
 of RAM and hdb has 120GB, 77% free) failed
 with my current setup. Still, none of the latter
 got detected. Therefore, I wouldn't rely on
 BrowserHawk or the like.

Your point is duely noted. At the same time, 99.9% of the browsers will be IE. That 
might give us more rope to hang ourselves.





 There already is such a page in the
 standard Servlet demos...

I'd love to see that. Is that on the Sun site? On the Oreilly site? Any links would be 
appreciated.





 and getting
 any information beyond that is a really
 hard job, I guess. 

And yet browserhawk is doing something. It may only be relyable on Windows. If so, 
that is acceptable for this current version of our project.




 Mind: snooping the
 concrete user's system configuration
 was not part of the deal when they
 invented HTTP.

Duly noted. 

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


JSP browser snooper

2004-01-12 Thread Michael Coughlan
I need to write a browser-snoop JSP page similar to this paid product.
http://www.cyscape.com/showbrow.asp

I found this free JSP snooper.
http://cyscape.com/browserinfo.asp

But it is missing this following mandatory columns.
  Adobe Version
  IP Address
  Service pack
  OS
  Browser settings (MSVM settings)
  MB RAM
  Hard disk space available
  Java version being used (sun or MSFT) + version #

I'm sure someone has already invented this wheel. If anyone knows of another free 
download please let me know.

Also, does anyone know if all of the above columns are reportable? 
(such as Hard disk space available or RAM?)

I'm new to JSP. At this point, I simply need to make sure that this information is 
accessible in JSP.

Thanks in advance,

Mike C

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: problem regardin JBuilder

2003-08-27 Thread Michael Rozlog
JBuilder is sold as a per-person IDE.  They also offer a concurrent model
which can be purchased through the direct sales people of Borland.  Keep in
mind that the per-person and the no-nonsense license allows you to install
the JBuilder product on multiple machines, however the licensed user of the
product can only use any one licensed copy at a time.  This means you could
install JBuilder at work, on a laptop and at home and as long as you are
only using 1 copy at any one time, you are within the license agreement.

Hope this helps,
Mike

--
Michael Rozlog
Chief Technical Architect
Borland Software Corporation
Check out my latest book called Master JBuilder!


- Original Message -
From: Subhra Biswas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:42 PM
Subject: problem regardin JBuilder


Hi...
 We are facing a problem with JBuilder installation. The software was
purchased from Borland and there are some confusion regarding the
registration criteria. Then please tell me how many clients at the max we
can make?
   Waitin for the kind reply.
Regards

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: offline question

2003-08-14 Thread Michael C Rosenstein
You could also try setting a Content-Disposition header and a mime type
header with something other than the standard excel type.
See:
http://www.omnigroup.com/mailman/archive/webobjects-dev/2002-November/028846.html
/mcr

This is offline question.. I have excel files stored in the webserver.
when the user download these files, it directly opens in the browser. But
i want to ask for a prompt like open or save.. how to do? do i need to do
some setting in IE or in webserver.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


Urgent JSP Help Needed!

2003-07-29 Thread Michael Rogan
Hello,

Could someone please take a look at the two files below as soon as possible?  
Something is wrong with the code and I am unable to figure it out.  It generates 16 
errors --  mostly expected ;, but from what I can see all the required semicolons 
are there!

If someone more experienced woth JSP could help, I would greatly appreciate it!  This 
is an urgent problem and is frustrating me a great deal.

Thanks in advance!

-Mike

File #1: breadcrumb.jsp

[EMAIL PROTECTED] import=java.util.Properties, java.io.InputStream, 
java.io.IOException%

!-- BreadCrumb maker 1.0 --
%--

Reads a breadcrumb.properties file containing stuff like this:

start=b
end=/b
pre=a href=$path
post=/a
middle=\ gt;
/=home
/cat1=Category 1
/cat2=Category 2
/cat1/index.jsp=nbsp; The main page

For the path 'http://localhost:8080/breadcrumb/cat1/index.jsp', that will create a 
string:

ba href=/breadcrumb/home/a gt;a href=/breadcrumb/cat1Category 1/a 
gt;a href=/breadcrumb/cat1/index.jspnbsp; The main page /a


NOTE: If you change this file, be sure to touch any files including it, or the changes 
won't be picked up.

Jeff Turner [EMAIL PROTECTED]
http://opensource.socialchange.net.au/breadcrumbs/
16/08/2001
$Revision$ $Date$

--%


%! public static final String CONFIG=/ssi/breadcrumb.properties; // if starting 
with '/', will be relative to htdocs. Otherwise, relative to calling page (*not* this 
included page) %
%! public static final int MAX_DEPTH=20; // max number of iterations before we halt 
with an error %
%! public static final String PATH_TOKEN=$path; // If this string is encountered in 
the CONFIG file, it is replaced with the current path  %
%! public static final boolean PRINTERRORS=true; // If false, any errors will result 
in  output. Otherwise, behaviour is determined by COMMENTERRORS %
%! public static final boolean COMMENTERRORS=false; // If true, errors will be 
printed in comments. If false, errors will be visible.  %

%!
/**
 * Method to create a breadcrumb trail (or whatever it's called).
 */
String search(HttpServletRequest req) {
Properties props = new Properties();
try {
InputStream in = 
getServletConfig().getServletContext().getResourceAsStream(CONFIG);
props.load(in);
} catch (Exception e) {

return printErr(could not find or read +CONFIG);
}
try {
String start = (String)props.get(start);
String end = (String)props.get(end);
String post = (String)props.get(post);
String pre = (String)props.get(pre);
String middle = (String)props.get(middle);

StringBuffer result = new StringBuffer();


// Note: this algorithm traverses the path backwards, from the end to the root.
// Hence the ordering of 'post' before 'pre'

int count = 0;
String path = req.getRequestURI().substring( req.getContextPath().length() );  // 
remaining path
String desc = null; // description for current path
boolean inMiddle = false;  // true if we've previously hit a non-null path
boolean last=false;  // true if we're on the last path (/)

while ( true )
{
if (last) path = /;   // we need *some* character for the 
root.. this is as good as any
desc = (String)props.get(path);
if (desc != null)
{
if (inMiddle)
{
result.insert(0, middle);
} else inMiddle = true;
if (post != null)
{
result.insert(0, subst(req, post, path));
}
result.insert(0, subst(req, desc, path));
if (pre != null)
{
result.insert(0, subst(req, pre, path));
}
}

if (last) break;
// set up the path for our next iteration
path = path.substring(0, 
path.lastIndexOf(System.getProperty(file.separator))); // strip from the last '/' 
onwards. In the last case, this will result in 
if (path.equals()) last = true;

// .. because I'm not confident some weird usage won't break the algorithm
count++;
if (count  MAX_DEPTH) {
return printErr(Inifinite loop detected in breadcrumbs);
}
}
result.insert(0, start);
return result.toString();
} catch (Throwable t) {
return printErr(Couldn't generate breadcrumbs: +t);
}
}

/**
 * Replaces all occurrences of tokens in original, with values. In the case of
 * PATH_TOKEN, replaces it with the context path plus the context-relative path.
 */
private static String subst( HttpServletRequest req, final String original, final 
String path)
{
return replaceSubString(original, PATH_TOKEN, req.getContextPath()+path);
}

private static String printErr(String msg)
{
if (!PRINTERRORS) return ;
StringBuffer buf = new StringBuffer();
if (COMMENTERRORS) {
buf.append(!--);
} else {
buf.append(font color='red');
}
buf.append(msg);
if (COMMENTERRORS) {

Re: Urgent JSP Help Needed!

2003-07-29 Thread Michael Rogan
The listing is below.  Thanks to anyone that can help!

  Show us the exact listing of the first 2-3 compile errors.  The
  properties file is not necessary.

62. String search(HttpServletRequest req) {


*** Syntax: ; expected instead of this token



62. String search(HttpServletRequest req) {


*** Syntax: ; expected instead of this token



128. String subst( HttpServletRequest req, final String original, final String path)


*** Syntax: ; expected instead of this token



128. String subst( HttpServletRequest req, final String original, final String path)


*** Syntax: ; expected instead of this token

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Dynamic Breadcrumb Navigation

2003-07-26 Thread Michael J Rogan
Hello,

I am using this taglib for generating a breadcrumb navigation trail:

http://coldjava.hypermart.net/servlets/navtag.htm

This works fine but all path and page title information is static.  Does
anyone know of something that generates a navigation trail dynamically
using the path info that also allows custom titles or perhaps a way to
modify this one to do so (I am new to JSP).

Thanks!
-Michael

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: JSP:Setproperty and empty strings

2003-06-13 Thread Michael Rosenstein
I have a bean on a page, and the user may remove the value of an attribute
by using the delete key to remove the contents of a pre-populated text
box. On the following page we use jsp:setProperty...property=* or
jsp:setProperty...property=firstName to set all the values. This works
fine for everything apart from empty strings.
The approach I took to solving the same problem is to remove my
session-scope bean and then re-instantiate it:
%
 session.removeAttribute(sRefQueryTerms);
%
jsp:useBean id=sRefQueryTerms scope=session
class=org.mdibl.ctd.jsp.beans.RefQueryTermsBean /
jsp:setProperty name=sRefQueryTerms property=* /
I don't know how (in)efficient this is, but it didn't sound any worse than
doing 15 setProperty calls setting strings to null (or ).
/mcr

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

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


JspContext Error

2003-06-12 Thread Michael Risser
I am in the process of writing a custom JSP Tag and am continually

encountering the following error:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it

from fulfilling this request.

exception

javax.servlet.ServletException: javax/servlet/jsp/JspContext

--SNIP--

root cause

java.lang.NoClassDefFoundError: javax/servlet/jsp/JspContext

--SNIP--

Apache Tomcat/4.1.24



-

The offending line appears to be:

JspWriter out = pageContext.getOut();

If I compile the file the compiler doesn't have any problems with it.

However, when I try to load a page using this tag I get the error shown

above.

My JDKs (I've tried 2) are jdk1.3.1_08 and jdk 1.4.1_02 with j2sdkee 1.4.

Os is Win XP Pro

Is there something that I'm missing?

Is there another way to get a JspWriter object?

Any help or suggestions would be greatly appreciated.

Michael D. Risser

Michael D. Risser
Sr. Unix Engineer
Double Dimension Networks, Inc.
http://www.doubledimension.com http://www.doubledimension.com/

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Problem with Custom JSP Tag

2003-06-06 Thread Michael Risser
I am in the process of writing a custom JSP Tag and am continually
encountering the same error:


HTTP Status 500 -

type Exception report

message

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

exception

javax.servlet.ServletException: javax/servlet/jsp/JspContext
--SNIP--

root cause

java.lang.NoClassDefFoundError: javax/servlet/jsp/JspContext
--SNIP--
Apache Tomcat/4.1.24

-

The offending line appears to be:

JspWriter out = pageContext.getOut();

If I compile the file the compiler doesn't have any problems with it.
However, when I try to load a page using this tag I get the error shown
above.

My JDKs (I've tried 2) are jdk1.3.1_08 and jdk 1.4.1_02 with j2sdkee 1.4.
Os is Win XP Pro

Is there something that I'm missing?
Is there another way to get a JspWriter object?

Any help or suggestions would be greatly appreciated.

Michael D. Risser

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: JSTL c:out Output Problem

2003-03-25 Thread Michael Nascimento Santos
Have you tried to change the name of the var? Try using h instead of header
and tell us what happens.

[]s
Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Sun Certified Programmer for the Java 2 Platform 1.4
Sun Certified Web Component Developer for J2EE
Moderador SouJava - www.soujava.org.br

- Original Message -
From: Adam Sherman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 1:14 PM
Subject: JSTL c:out Output Problem


 I have the following JSP:
 c:forEach items=${list.headers} var=header
 thc:out value=${header} //th
 /c:forEach

 ${list.headers} is set to String[]  HEADERS  = {Name, Email
Address}.

 I get:

 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

 WTF?

 I tried looking at it from avery angle, using a List of Strings instead of
 an array to no avail.

 Help!

 Thanks,

 A.

 --
 Adam Sherman
 Tritus CG Inc.
 http://www.tritus.ca/
 +1 (613) 797-6819


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

 Some relevant archives, FAQs and Forums on JSPs can be found at:

  http://java.sun.com/products/jsp
  http://archives.java.sun.com/jsp-interest.html
  http://forums.java.sun.com
  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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: HttpClient to Servlet

2003-02-04 Thread Sloan Michael
According to http://java.sun.com/products/servlet/2.3/javadoc/index.html

It looks like getSession() and getSession(true) do the same thing.
getSession(true) does not
create a new session if one already exists.


getSession

 public HttpSession getSession(boolean create)

  Returns the current HttpSession associated with this request or,
if if there is no current session and create is
  true, returns a new session.

  If create is false and the request has no valid HttpSession, this
method returns null.

  To make sure the session is properly maintained, you must call
this method before the response is committed. If
  the container is using cookies to maintain session integrity and
is asked to create a new session when the
  response is committed, an IllegalStateException is thrown.
  Parameters:
   true - to create a new session for this request if
necessary; false to return null if there's no current
   session
  Returns:
   the HttpSession associated with this request or null if
create is false and the request has no valid
   session
  See Also:
   getSession()

--
 getSession

 public HttpSession getSession()

  Returns the current session associated with this request, or if
the request does not have a session, creates one.
  Returns:
   the HttpSession associated with this request
  See Also:
   getSession(boolean)



Michael Sloan




|-+
| ||
|-+
  
--|
  |
  |
  |   To:  
  |
  |   cc:  
  |
  |   Subject: 
  |
  
--|




Well,

in fact there are three ways to use getSession(), a 'default' one
plus a method that takes a boolean as input indicating whether
to explicitly create a Session or not. Normally, one would use
the default implementation (getSession()). This will either return
a reference to the Session if one already exists, _or_ create a
new one and return a reference to that (lic: Singleton pattern).
In both cases, after calling getSession(), a valid Session instance
should exist. If you pass an additional boolean parameter to
this (overloaded) method, you can control session creation
behavior on your own. So if you just want to check if a request
already belongs to a Session, you pass 'false' and then check
for null being returned (or the other way round). If you want
a new Session to be explicitly created each time, you pass
'true'. You can easily get these details from the API docs,
just to note.

HTH,

-- Chris (SCPJ2)

NB. I said I never tried, but looking for JSESSIONID (still
wonder if this is correct, could be some '_' goes some-
where; but then, I might be mixing this up with form-based
login) would be my first approach for session-enabling
the GUI thing. Thought I made that somewhat clear
before. Didn't I?

 -Original Message-
 From: A mailing list about Java Server Pages specification
 and reference [mailto:[EMAIL PROTECTED]] On Behalf Of
 Evan Wright, iLabs Inc.
 Sent: Tuesday, February 04, 2003 11:39 AM
 To: [EMAIL PROTECTED]
 Subject: Re: HttpClient to Servlet


 Create a session object the first time the client connects
 (log in) with
 getSession(true) and each subsequent getSession(false) would
 return that
 object. (?)



The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer

Writing out to XML Nodes without a database

2003-01-27 Thread Michael Greenberg
Hi folks,
Does anyone know of a good way to write out to XML nodes without using a
database? The reason I have to do this is because I am making a portable
application and I have no clue what database will be used on the other end
and with this application for the moment it really doesn't need one.

Any suggestions would be helpful?

Thanks,
Michael

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com



Re: Tomcat on Linux

2003-01-23 Thread Michael Risser
Many Linux distributions come with Tomcat already installed, i.e. Red Hat.
If you do not intend to run the bundled version of Tomcat you will have to
uninstall it first, otherwise you could run into conflicts between the
version you install and the already installed version.

Red Hat also places Tomcat in /var, which most people have not allowed
sufficient disk space for growth (why they broke convention there is beyond
me...) requiring it to be moved to another location.

In any case Tomcat setup on any system is pretty straight forward and well
covered in the Tomcat docs.

-Original Message-
From: Darryl L. Pierce [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat on Linux


On 2003.01.21 14:24 Christian Hamann L wrote:
 Hi All
 I have a problem, i never have worked with Tomcat, but i think is
 similar to
 whatever Application Server, but my problem is how install it on
 Linux, and
 configure it, desides some examples to put any examples of jsp and
 servlets..

What version of Linux are you running?

--
Darryl L. Pierce [EMAIL PROTECTED]
Visit the Infobahn Offramp - http://welcome.to/mcpierce
What do you care what other people think, Mr. Feynman?

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

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com



Re: UML Tools

2003-01-02 Thread Michael Greenberg
I use Poseidon. http://www.gentleware.com

The free community version is pretty good and really all I need.

Thanks,
Michael

- Original Message -
From: Daniel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 2:26 AM
Subject: UML Tools


 Can any body suggest me FREE GOOD UML TOOL for design?


 Regards,
 Daniel.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


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

2002-12-12 Thread Michael Risser
http://www.jedit.org

-Original Message-
From: Anindya [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 3:01 AM
To: [EMAIL PROTECTED]
Subject: Re: How to set an error page


can somebody prescribe me a very useful JSP IDE/Editor

thanks  regards ,

Anindya

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
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: obtaining date and time in suitable format for MySQL

2002-10-18 Thread Michael
Dont format the date by hand!!!
Use a PreparedStatement to write to the database, it handles the formatting 
for you.
e.g.:

long curTime = new java.util.Date().getTime();

Connection connection= ... ;
PreparedStatement pstmt = connection.prepareStatement(
  update bla set time = ?);
pstmt.setDate( 1 ,new java.sql.Date( curTime ));
//...


 I am javing a jsp file where I would like to get the current date and
 time to be inserted in fields of an SQL table. The date should go into
 the MySQL date field and hence should be of format -mm-dd. I tried
 to use java.sql.Date, but I couldn't get it to work. If I simply use

 long date = 0;
 java.sql.Date sqlDate = new java.sql.Date(date);
 int year = sqlDate.getYear();

 I get back 70. So obviously I have to get the year from the machine's
 time, which is a linux box with Redhat 7.3.

 So I tried this:

 long date = 0;
 java.sql.Date sqlDate = new java.sql.Date(date);
 String thetime = sqlDate(System.currentTimeinMillis());
 out.println (SQL time is  + thetime);

 But this didn't work either.

 How do you do this?

 In addition, I would like to get the time, but in decimal format i.e.
 rather than 11:15 I would like to get 11.25

 Is there a way of doing this?

 Any help will be greatly appreciated.

 Thanks

 Hugo

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

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



Re: JSP Apostrophe in JDBC

2002-09-05 Thread Michael Greenberg

I use a product called ActiveEdit. It's basically a text box that allows
formatting, but the cool thing about it is that it uses some sort of
character mapping and other wierd characters that choke...Check it out
http://www.cfdev.com/activedit

Thanks,
Michael
- Original Message -
From: Joseph Ottinger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 6:33 AM
Subject: Re: JSP Apostrophe in JDBC


 Works just fine for YOU, with SQL Server. Other DBs don't do the same
thing
 (although most do) and it's slower than letting the DB driver do it.


 From: Benoit Jodoin [EMAIL PROTECTED]
 Reply-To: A mailing list about Java Server Pages specification and
 reference [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: JSP Apostrophe in JDBC
 Date: Thu, 5 Sep 2002 01:14:45 -0400
 
 Try replacing your single quote with 2 single quotes..works just fine for
 me with sqlserver.
 
 Regards
 
 Ben
 
 At 01:12 AM 9/5/2002 -0400, you wrote:
 [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer] Line 1: Incorrect
 syntax near 's'.
 
 - Original Message -
 From: Benoit Jodoin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 04, 2002 11:36 PM
 Subject: Re: JSP Apostrophe in JDBC
 
 
   Can you give us your error msg plz?:)
  
   At 11:33 PM 9/4/2002 -0400, you wrote:
   I am getting an error when updating some input text records using a
 form
   
   When I enter an Apostrophe in the text fields and send to the jsp
page
   which update the record in the db, it causes an error on the sql
jdbc
 call.
   
   How do you treat Apostrophe in jsp, esp when sql is involved ?
   
   
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
   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


 ---
 Joseph B. Ottinger   [EMAIL PROTECTED]
 http://enigmastation.com  IT Consultant

 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx


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



Form mail in Java

2002-09-02 Thread Michael Greenberg

Hi folks,
Im trying to get together a form that gets emailed to user. I dont need to
save to a database or anything. It's basically just 3 fields and that's it.

Does anyone know of something that I can use to do this? I also want to
learn something from it too:)

Please let me know.

Thanks,
Michael

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

2002-09-02 Thread Michael Greenberg

I'll give this a shot I would love to see an example of this with
Javamailalso thanks David for that suggestion as well.

MG
- Original Message -
From: Juan Carlos Montenegro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 02, 2002 2:22 PM
Subject: Re: Form mail in Java


 If you use the option through the HTML

 FORM METHOD  = POST
  ENCTYPE = text/plain
  ACTION  = mailto:[EMAIL PROTECTED];

 it will display a message about this is a non secure procedure, then it
will
 open your mail client, so I'd like that somebody give us an example using
the
 JavaMail API or the new James system from the Tomcat people.

 Thanks





  Internet Mail Message
  Received from host:  swjscmail2.sun.com
  [192.18.99.108]



 From: Karr, David [EMAIL PROTECTED] on 09/02/2002 05:07 PM GMT

Karr, David   To:   [EMAIL PROTECTED]
   [EMAIL PROTECTED]   Cc:(bcc: Juancarlos
Montenegro-JC/PGI)
Subject:  Re: Form mail in Java

  09/02/2002 12:07 PM
  Please respond to A mailing
   list about Java Server
  Pages specification and
reference
  [EMAIL PROTECTED]






  -Original Message-
  From: Michael Greenberg [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 02, 2002 9:36 AM
  To: [EMAIL PROTECTED]
  Subject: Form mail in Java
 
  Hi folks,
  Im trying to get together a form that gets emailed to user. I
  dont need to
  save to a database or anything. It's basically just 3 fields
  and that's it.
 
  Does anyone know of something that I can use to do this? I
  also want to
  learn something from it too:)

 If you really need to just send the values from some form fields in an
email
 message to a person, you can do this in HTML, without any JSP or Java
 involved.  You can look at the following URL for some information about
 this, or you can type 'action=mailto:' into Google.

 http://www.wdvl.com/Authoring/HTML/Forms/mailto.html

 However, if you read some of the links that search gives you, you'll find
 out that this isn't the most robust solution, for several reasons.  You
need
 to clearly understand your needs and the tradeoffs of this solution.

 If you end up needing a more robust solution, your JSP page will just
 contain the form for the fields to fill in, and a normal submit action.
 Your server side code would likely use the JavaMail API to securely and
 robustly connect to a standards-based mail delivery agent (not Exchange).


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

2002-08-30 Thread Michael Nicholson

In terms of running java enabled webpages (i.e., jsp stuff or servlets)?  Or
just in terms of running java?  Or in terms of developing for something
else?  From what (little) I understand, one of the primary strengths of java
is its platform independence, so it runs on most anything.  But lets face
it:  windows (of any flavor) has an enormous amount of overhead, and
Microsoft is not generally predisposed towards optimizing for software they
didn't make.  Linux/Unix doesn't have this problem, as you can probably find
a kernel optimized for ANYTHING, if you try hard enough.

As for me, I actually develop most everything in Sun One studio (formely
Forte) on a win2k machine, test it on a Solaris single cpu development
server, and will eventually be deploying it on either a Red Hat or Solaris
multiple cpu production server.  Not ideal in my mind, because I'd prefer to
develop in whatever it'll actually be in eventually:  Development should be
a model for production, you know?

So, since most people tend to run sites that a java heavy on unix/linux
machines (from what I can tell) they often develop there too.  And why do
they run stuff on unix/linux?  Better networking w/ less overhead, and no
worries about MS IIS stuff (we use tomcat, and will use apache+tomcat in
production... all for the bargin cost of free.)

I'm babbling.
Mike
- Original Message -
From: Andrew E. Young [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 30, 2002 9:19 AM
Subject: Re: Java Platform


 I cannot agree with you more howver, there are far too many people in the
 World saying this with absolutely no basis.  Does anyone know where there
is
 a full, respected, detailed and un-biased discussion of the merits of
LINUX
 over Windows for Java support specifically?


 
  The world does not contain enough paper to detail why Linux is a better
os
  than windows.
  - Original Message -
  From: Andrew E. Young [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, August 30, 2002 3:38 AM
  Subject: Java Platform
 
 
   Hey!
  
   Can anybody direct me to a resource giving details of why LINUX is the
  preferred platform for Java (as opposed to Windows)?
  
   Ed
  
  
 
===
   To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  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: A JSP Calendar

2002-08-29 Thread Michael Chelmowski

Try

http://www.compoze.com

regs
M


-Oorspronkelijk bericht-
Van: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] Namens Campano, Troy
Verzonden: donderdag 29 augustus 2002 14:05
Aan: [EMAIL PROTECTED]
Onderwerp: A JSP Calendar

I have a web based group calendar written with PHP that stores events in
a PostgreSQL database.
I need to come up with this same thing but with JSP and Oracle.

Are there any good examples that show how to create a calendar with html
tables from JSP?


The only examples I can find are ones that don't give you source code,
just compiled Servlets :-(



thanks for any help you can give me!



 [ t r o y ]

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

2002-08-29 Thread Michael Chelmowski

Locate the following element in the server web.xml:

  servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
  /servlet-mapping

you can change this pattern to something else if you prefer
-Oorspronkelijk bericht-
Van: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] Namens Juha Halmu
Verzonden: donderdag 29 augustus 2002 7:40
Aan: [EMAIL PROTECTED]
Onderwerp: Detalj - out of logig

Is it possible in JSP to change that JSP-end to something else, like
.hello.

Ok, why, you ask. I don't know yet, but...



 Terveisin,

x--- Juha Halmu ---y
http://portal.halmu.net


This e-mail may contain confidential and/or privileged information. If
you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

--
For every complex problem, there is a solution that is simple, neat,
and
wrong. -- H.L. Mencken (1880-1956)


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



Directories vs. WAR's

2002-08-26 Thread Sloan Michael

I'm looking for some ideas on how to handle our situation.

Background:
WebSphere 3.5.?
VAJ 3.5

Currently we have about 90,000 files (JSP's, HTML's, and images)
under our docroot. This is a little over 4 GB (and growing rapidly).
In another directory, we have about 3 MB of JAR's.
We have multiple instances of WebSphere running on our production
server.
We use symbolic links from several instances to one instance for
the bulk of the JSP's and images(in order to save space).

When we publish to production, we copy the new/changed files to
the production server(either to the docs directory or the
directory for our jars).

We are looking at going to WSAD and WebSphere 4.?

Does it make since (assuming it is possible) to keep this
directory structure and publish process in place, or should we
put everything together in a WAR file.

The pro I see for the WAR file is that it keeps everything together
in one nice file that we can move to whatever server we want.

On the down side, every time we publish (weekly), we have to create
the WAR file and move it to the production server. Even if it is
just a one word change to a JSP file, we'll have to copy the 4 GB
WAR file from one server to the production server.

Also can we maintain the symbolic links from the other instances
to inside the WAR file in the main instance?

TIA,
Michael Sloan

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.

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

2002-07-10 Thread Michael Chelmowski

You probably have a loop somewhere which open DB statements or
connections which are not properly garbage collected. I had a similar
problem. I was doing a performance test and created a Java class which
read a table with 126 columns and approx. 60.000 records. It then wrote
the table record for record in another database. My iteration procedure
instantiated a PreparedStatement every iteration. This meant that while
running the query the db2 java daemon grew in memory usage from 4.000kb
to approximately 50.000 kb in a matter of a minute or so. I did some
code tidying making sure that objects are not instantiated
unneccessarily and it made the query perform much faster and kept the
memory usage stable. I believe you are facing the same problem. I think
you must dive into the code and optimize it. Can you post an exmple?

Grtz
Michael

-Oorspronkelijk bericht-
Van: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] Namens JOSHY MON M C
Verzonden: woensdag 10 juli 2002 16:57
Aan: [EMAIL PROTECTED]
Onderwerp: Help - Tomcat oracle : offtopic

Hi All,

Can anyone help me. This is very urgent.

I have a ticker application written in Java, that accesses oracle 9i
database in Linux. It gets data from database in every 2 minutes. When
as
many as 10 ticker clients are accessing database together for 30
minutes,
oracle eventually dies.

Ticker gets data from database thru Tomcat, on examination I found that
each
time memory utilization for Oracle increases with database access. It
starts
with 5% mem utilizations and increases - in every 2 minutes - 6%, 7%
etc,
for each database access from clients. When it reaches some 30% oracle
slows
down and ticker apllication also slows down.

Does anyone of you have a quick solution - Also why oracle not relasing
memory after database access ?

Thanks in Advance
Joshy


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

2002-07-05 Thread Michael N. Santos

Hi Carlos,

The new proposed EJB specification, 2.1, includes a timer service, which is
supposed to provide the functionality you need.

However, it is tightly coupled with EJBs, specifically MDBs, and cannot be
used
outside the EJB model, at least for now.

As the specification is in public review, you still can comment it, maybe
telling them
to move this timer service to a separate JSR.

[]s
Michael Nascimento Santos
System Architect
Sun Certified Programmer for the Java 2 Platform

- Original Message -
From: Carlos Vicente [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 4:32 AM
Subject: Re: Sleeping Thread


 Perhaps, someone with influence in the j2ee working group may propose such
 funcionality in next release. (Or a new project of the Jakarta apache
 group?)

 Certainly is a dessirable funcionality that appears in many mid-sized
 projects. This can improve the portability of java developments instead of
 platform dependant solutions or private developments.

 I hear many developments that offers such funcionaliy in pure java, but
 obviusly these are mutually incompatible.

 Sorry for my english.

 -Mensaje original-
 De: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]En nombre de Geert Van Damme
 Enviado el: viernes, 05 de julio de 2002 8:51
 Para: [EMAIL PROTECTED]
 Asunto: Re: Sleeping Thread


 Lots of possibilities

 - Unix cron or windows scheduled job
 - Create a background thread and DIY.
 - Use a java.util.Timer
 - Some JSP containers (e.g Resin) offer this functionality with a run-at
 tag in web.xml


 Geert Van Damme

  -Original Message-
  From: A mailing list about Java Server Pages specification and reference
  [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Dolukhanov
  Sent: vrijdag 5 juli 2002 0:26
  To: [EMAIL PROTECTED]
  Subject: Sleeping Thread
 
 
  Dear All,
 
 
 
  I am currently writing a Java/JSP site - one of the problems I have
  (which I haven't encountered previously) is that I need a Java class (or
  some other process), to perform an action every 3 days. All this would
  invoke is calling a method, and I can handle the code from there.
 
 
  I am trying to work out what is the best way to do it. My current best
  idea is to have a Thread that runs and checks quite frequently for the
  first specified date/time, when that is reached a flag is set, and the
  thread sleeps for 3 days.
 
 
 
  Is this the best way to do it, or are there possibly better and more
  efficient days to achieve this?
 
 
 
  Many thanks,
 
  Peter Dolukhanov
 
  ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  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: Recommend cheap/free HTML/JSP Editor for Java Developers

2002-07-03 Thread Michael Rogan

Try Dreamweaver MX (much better than preceding versions)...

-Original Message-
From: John Slaman [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 03, 2002 9:08 AM
To: [EMAIL PROTECTED]
Subject: Recommend cheap/free HTML/JSP Editor for Java Developers


I'm looking for a cheap or free HTML  JSP editor that give you both
source code editing and WYSIWYG. I know there are many available - but I
want to know what people are using and recommend.

The issue here is we don't want to get a licensed copy of Dreamweaver
for every java guy we have in house; since many focus primarily on
back-end development.  However, from time to time they do get involved
in a little something on the front-end; and it's inappropriate to expect
them to work in notepad.

Thanks.


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

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

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

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



How to buld up a link which opens a new window with JavaScript and invokes a Struts action simultaneously?

2002-07-02 Thread Michael Chelmowski

I have tried the following:
 
html:link
href=javascript:window.open('/queryList.do?action=top','Edtij0fm01','to
olbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=y
es,resizable=yes,copyhistory=no,,'); return false;
onmouseover=window.status='Onderhouden Teksten bij coderingen'; return
truebean:message key=functie.onderhoudenteksten//html:linkbr
 
as well as:
 
html:link  page=”/queryList.do?action=top ”
onclick=”window.open('/queryList.do?action=top','Edtij0fm01','toolbar=ye
s,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resiz
able=yes,copyhistory=no,,'); return false;
onmouseover=window.status='Onderhouden Teksten bij coderingen'; return
truebean:message key=functie.onderhoudenteksten//html:linkbr
 
 
Any ideas? Both of these don’t seem to work.

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

2002-06-25 Thread Michael Chelmowski

This is the mime type for TIFF  image/tiff

Here follows a more or less comprehensive list of MIME types (excuse the
XML frmatting around them):

  mime type=application/SLA
  mime type=application/STEP
  mime type=application/acad
  mime type=application/clariscad
  mime type=application/drafting
  mime type=application/dxf
  mime type=application/i-deas
  mime type=application/iges
  mime type=application/octet-stream
  mime type=application/oda
  mime type=application/pdf
  mime type=application/postscript
  mime type=application/pro_eng
  mime type=application/set
  mime type=application/solids
  mime type=application/vda
  mime type=application/vnd.lotus-1-2-3
  mime type=application/vnd.lotus-approach
  mime type=application/vnd.lotus-freelance
  mime type=application/vnd.lotus-organizer
  mime type=application/vnd.lotus-screencam
  mime type=application/vnd.lotus-wordpro
  mime type=application/x-123
  mime type=application/x-bcpio
  mime type=application/x-bsh
  mime type=application/x-cpio
  mime type=application/x-csh
  mime type=application/x-dvi
  mime type=application/x-freelance
  mime type=application/x-gtar
  mime type=application/x-hdf
  mime type=application/x-javascript
  mime type=application/x-ksh
  mime type=application/x-latex
  mime type=application/x-netcdf
  mime type=application/x-pcl
  mime type=application/x-rtf
  mime type=application/x-sh
  mime type=application/x-shar
  mime type=application/x-sv4cpio
  mime type=application/x-sv4crc
  mime type=application/x-tcl
  mime type=application/x-tex
  mime type=application/x-troff
  mime type=application/x-troff-man
  mime type=application/x-troff-me
  mime type=application/x-troff-ms
  mime type=application/x-wais-source
  mime type=application/x-x509-ca-cert
  mime type=audio/basic
  mime type=audio/x-aiff
  mime type=audio/x-wav
  mime type=image/bmp
  mime type=image/cmu-raster
  mime type=image/gif
  mime type=image/ief
  mime type=image/jpeg
  mime type=image/tiff
  mime type=image/x-portable-anymap
  mime type=image/x-portable-bitmap
  mime type=image/x-portable-graymap
  mime type=image/x-portable-pixmap
  mime type=image/x-rgb
  mime type=image/x-xbitmap
  mime type=image/x-xpixmap
  mime type=image/x-xwindowdump
  mime type=multipart/x-gzip
  mime type=multipart/x-tar
  mime type=multipart/x-ustar
  mime type=multipart/x-zip
  mime type=text/css
  mime type=text/html
  mime type=text/plain
  mime type=text/richtext
  mime type=text/tab-separated-values
  mime type=text/x-asm
  mime type=text/x-setext
  mime type=text/x-ssi-html
  mime type=text/x-uil
  mime type=text/x-uuencode
  mime type=video/mpeg
  mime type=video/quicktime
  mime type=video/x-motion-jpeg
  mime type=video/x-msvideo
  mime type=video/x-sgi-movie
  mime type=www/mime
  mime type=www/unknown
  mime type=x-world/x-vrml

-Oorspronkelijk bericht-
Van: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] Namens Atal Bihari Upadhyay
Verzonden: dinsdag 25 juni 2002 14:18
Aan: [EMAIL PROTECTED]
Onderwerp: Re: A very new game

I have jsp page where I can specify mime type of content of the page.

%@ page contentType=application/vnd.ms-excel %

Th above line will associate page content to Excell.

What is equivalent content type which will associate content to .tif
format.

Thanks in advance for your 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



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



properties file

2002-05-14 Thread Michael Nicholson

I can't seem to put the properties file in the right place.  I've finally
managed to get Tomcat to run and even run jsp's, but it won't run mine
because it can't find the properties file (which is all over the place).  Is
there somewhere I set an appropriate classpath type variable or something
like that that I'm missing?  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



Can't run any JSPs (including the examples), but servlets run fine...

2002-05-13 Thread Michael Nicholson

I've seen this question around, and I'm having the same problem.  I've even
seen a couple of answers, but they don't seem to work for me.  Here's my
error message:

Internal Server Error  Http Status 500

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
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.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at

JSP and Flash Integration

2002-04-06 Thread Michael Wilson

Hi all.

I am trying to figure out to integrate some jsp pages into a flash site.  I
would rather not have to have standard pages for the search features and
update features.  If anyone has any experience, please advise.
Thnx,
/mw

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



Getting full URL or Protocol in JSP page?

2002-04-03 Thread Michael Vincent

In ASP it is possible to get the fully qualified URL or protocol of a page with the 
Request.ServerVariables collection.  Is this possible in JSP?  I did not see anything 
that would help in the request object.  It will only give me the relative URL. 

Thanks!

-mike.

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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: Getting full URL or Protocol in JSP page?

2002-04-03 Thread Michael Vincent

Thanks.  I actually got the URL with HttpUtil.getRequestURL(request).

-Original Message-
From: Shahata, Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


The following code retrieves the request headers that are passed when a
template is requested:

Start---
---
%@ page language=java import=java.util.* %

body bgcolor=white
font color=red

%
out.println(h3 + Header values for this request + /h3);
out.println(table border=0);
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName = (String)e.nextElement();
String headerValue = request.getHeader(headerName);
out.println(trtd bgcolor=\#CC\ + headerName);
out.println(/tdtd + headerValue +
/td/tr);
}
out.println(/table);
%
End-



-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: Getting full URL or Protocol in JSP page?


In ASP it is possible to get the fully qualified URL or protocol of a page
with the Request.ServerVariables collection.  Is this possible in JSP?  I
did not see anything that would help in the request object.  It will only
give me the relative URL.

Thanks!

-mike.

==To
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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: Getting full URL or Protocol in JSP page?

2002-04-03 Thread Michael Vincent

That wont work. I get this error message:

Method getRequestURL() not found in interface javax.servlet.http.HttpServletRequest.


-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


Thats a deprecated class. (Servlet API 2.3)
Just use request.getRequestURL();
-Tim

-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


Thanks.  I actually got the URL with HttpUtil.getRequestURL(request).

-Original Message-
From: Shahata, Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting full URL or Protocol in JSP page?


The following code retrieves the request headers that are passed when a
template is requested:

Start---
---
%@ page language=java import=java.util.* %

body bgcolor=white
font color=red

%
out.println(h3 + Header values for this request + /h3);
out.println(table border=0);
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String headerName = (String)e.nextElement();
String headerValue = request.getHeader(headerName);
out.println(trtd bgcolor=\#CC\ + headerName);
out.println(/tdtd + headerValue +
/td/tr);
}
out.println(/table);
%
End-



-Original Message-
From: Michael Vincent [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: Getting full URL or Protocol in JSP page?


In ASP it is possible to get the fully qualified URL or protocol of a page
with the Request.ServerVariables collection.  Is this possible in JSP?  I
did not see anything that would help in the request object.  It will only
give me the relative URL.

Thanks!

-mike.

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



[no subject]

2002-04-01 Thread Panayotou, Michael

First you have to create a model for the application server and after you
clone the model.

-Original Message-
From: Milind J [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 4:10 PM
To: [EMAIL PROTECTED]
Subject:


Hi Gurus ,
I need ur help. I need to find out how to clone JSPs on Websphere3.5/4.0 ?
Thanx in Advance,
Milind

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



Ouchy! Internet Explorer 5 - Mac Edition

2002-03-03 Thread Michael Pomeroy

I just developed a test site with myself and three other programmers working using JSP 
on PC clones. It looks beautiful on a PC. I have viewed it on IE 5 and 6 for PC's.

I know my customer uses a MacIntosh with Internet Explorer 5 Mac Edition, so I decided 
to view the site on his Mac: The text is displaying in different size, frames and 
objects are displaced, and commented code and objects are now visible!

Does anyone know of a good reference, or have extensive personal experience, to help 
me to tweak the code to make it Mac friendly???

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

2002-02-19 Thread Michael Dizon

RTFM
On Tuesday, February 19, 2002, at 04:16 PM, Sami J. Casab. wrote:

 -- Information from the mail
 header ---
 Sender:   A mailing list about Java Server Pages specification and
   reference [EMAIL PROTECTED]
 Poster:   Sami J. Casab. [EMAIL PROTECTED]
 Subject:  How to depoy.
 ---

 Hi:

 Im using tomcat 3.21 and i have a .war archive with all my clases and i
 need
 to deploy it, so where i should put this file and what i have to  do?

 Thanks in advance.

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

  http://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: Please help for browser print

2002-02-15 Thread E. Michael Akerman

I recommend using XML as a source document and then use XSLT to render it
to HTML for the browser, then use XSLT to render it to XSL-FO then use FOP
to render it to a PDF for printing purposes.  Having headers and footers
in XSL-FO is quite simple.

Michael Akerman


On Fri, 15 Feb 2002, Chris Pratt wrote:

 To my knowledge, there is no way to controlled the printed output of a standard HTML 
page.  All that happens is the browser renders the HTML to the printer, so you have 
no control over that process.  You might be able to use an Applet, which does have 
control over it's printed output.
 (*Chris*)
   - Original Message -
   From: srinivas tadikonda
   To: [EMAIL PROTECTED]
   Sent: Thursday, February 14, 2002 8:23 PM
   Subject: Re: [JSP-INTEREST] Please help for browser print


   Hi,

   I want to print my header each and every page.  How can I do this.

   For exaample:  I created one table with five columns.  Like 
empname,empcode,empid,city,pin.  This table haveing 20 pages data.  when ever I gave 
print command that table heading will come to every page.Please help me.

   I want to print five column names each and every page.



   Regards

   Srinivas





   From: Chris Pratt

   Reply-To: A mailing list about Java Server Pages specification and reference
   To: [EMAIL PROTECTED]
   Subject: Re: veru urgent print problem
   Date: Thu, 14 Feb 2002 10:16:30 -0800
   
   Set the to your header, that gets printed on each page in most browsers.
(*Chris*)
- Original Message -
From: srinivas tadikonda
To: [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 4:13 AM
Subject: [JSP-INTEREST] veru urgent print problem
   
   
Hi,
   
I want to display my heading in each and every page.
   
For example: I put some heading like XX this.
   
my total pages are 10. When ever I give print I want to print heading each and 
every page.
   
How can I solve this problem. Please help me. I did this project in jsp. 
basically my heading in one html table.
   
Reagards
   
Srinivas
   
   
   
   
   
   --
MSN Photos is the easiest way to share and print your photos: 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
   
   ==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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


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

 =To unsubscribe: mailto [EMAIL PROTECTED] 
with body: signoff 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: Creating a servlet alias that will cover all files but JSP files.

2002-02-15 Thread E. Michael Akerman

This should be easy to do with servlet mappings.  See chapter 10 of the
Servlet 2.2 specification, or chapter 11 of the Servlet 2.3 specification.

The container will then try to recursively match the longest path prefix
mapping. This process occurs by stepping down the path tree a directory at
a time, using the / character as a path separator, and determining if
there is a match with a servlet.


Michael Akerman


-

[EMAIL PROTECTED]Information Services
(501) 575-5870  University of Arkansas
http://www.uark.edu/~mike

-


On Fri, 15 Feb 2002, Gabriel J Zimmerman wrote:

 Hi,

 I would like to create a servlet alias in a webapp say /myalias/, which
 goes to a servlet, call it MyServlet. However, I do not want this alias
 to affect jsp files, so for example, if someone went to
 /myalias/somefile.jsp then they would see the JSP file and not the alias.

 Is there any way to do this without using a Filter (and thus having to
 use the 2.3 spec instead of 2.2)?

 Thanks a lot,
 Gabriel Zimmerman
 Groundzero Associates

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff 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: Generation Of Excel File From JSP

2002-02-14 Thread Michael Dizon

Why not write to a CSV file?
On Thursday, February 14, 2002, at 10:08 PM, Smita Kotnis wrote:

 -- Information from the mail
 header ---
 Sender:   A mailing list about Java Server Pages specification and
   reference [EMAIL PROTECTED]
 Poster:   Smita Kotnis [EMAIL PROTECTED]
 Subject:  Re: Generation Of Excel File From JSP
 ---

 Hi,
Thanks for reply. But can you tell me how to do that??

 Smita
 Sandy [EMAIL PROTECTED]:

 u can use a combination of client side Scrpt (VB
 Script) together with JSP to do that.


 --- Smita Kotnis [EMAIL PROTECTED] wrote:
 Hi All,
 In my application I have a requirement of
 creating an excel file from a JSP page. The data
 would be in a couple of vectors and based on those
 values multi columned excel sheet is to be
 generated. How to do this?? any suggestions? Thanks
 in anticipation.

 Regards
 Smita
 -
 This mail helped a tree grow. Know more at
 http://green.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


 =
 luv,
 sandy

 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com

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

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



 -
 This mail helped a tree grow. Know more at http://green.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


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

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



jsp-file and init-param on iPlanet Webserver

2002-02-13 Thread E. Michael Akerman

I've been able to specify servlet-mapping for a jsp-file on iPlanet
Webserver, but it won't send init-param to the ServletConfig of a JSP
file, and config.getServletName() returns jsp instead of the
servlet-name.

Granted the iPlanet WebServer sucks, but I'm stuck with it, does anyone
know how to get this to work on iPlanet WebServer 6.0 SP2?

Michael Akerman


-

[EMAIL PROTECTED]Information Services
(501) 575-5870  University of Arkansas
http://www.uark.edu/~mike

-

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



using response.sendRedirect() in URL mapped servlet

2002-02-10 Thread Michael Henderson

I have a question about servlet mapping using response.sendRedirect() for local 
language navigation:

1) What impact does using servlet mapping and response.sendRedirect() have on IIS and 
JRun connections?
Is there any risk of this increasing the use of available HTTP connections and 
crashing either JRun or IIS
if load is high?

This seems to perform fine in insolated stress tests but production usage may
vary based on server load and request parameters(processing and encoding each 
name/value pair
for URLs with long query strings could add overhead).


I have found searching the archives:
1) response.sendRedirect() requires a round trip to the browser
2) response.sendRedirect() is the only way to force the URL to change in the user's 
browser(as opposed to using forward())
3) response.sendRedirect() does not forward request parameters so they must be parsed, 
URLEncoded and added to sendRedirect() query string
4) forward() automatically forwards request object so no need to parse and encode 
request parameters
(It sounds like we are forced to comply with #2 for usability of site - site producers 
request user be able to bookmark pages )

The  RedirectController servlet is a URL mapped servlet used to redirect to local 
language pages across a large site.
URL mapping provided a convenient way to to do redirects across the site whereever 
absolute URLs had to be used in global pages.
Maintainance is easier since all language redirects are controlled by a single
servlet in one place (rather than using JSP level code in every page across the site)
as we use this in links and redirects across the site I worry about performance:

/redirect/index.jsp?url=http//www.ibm.comlanguage=en
/en/index.jsp?url=http%3A%2F%2Fwww.ibm.comlanguage=en

/redirect/index.jsp?http://www.hp.comlanguage=de
/de/index.jsp?url=httphttp%3A%2F%2Fwww.hp.comlanguage=de



RedirectController.java:
public class RedirectController extends HttpServlet {

private static final String ENU = en;
...
private boolean isDebug = false;

public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, 
ServletException {

 ServletContext sc = this.getServletContext();
 RequestDispatcher rd = sc.getRequestDispatcher(toURL);
 HttpSession session = req.getSession();
 UserBean user = session.getAttribute(user);
 String contextPath = (String)req.getPathInfo();
 // returns encoded request parameters
 Vector parameters = this.getRequestParameters(req, res);
 String queryString = this.toQueryString(parameters);
 // user.getLanguage() returns 2 letter language code
 String toURL = this.toURL(contextPath, queryString, user);
 res.sendRedirect(toURL);

  }
}

web.xml:
 servlet
  servlet-nameRedirectController/servlet-name
  servlet-classcom.servlets.RedirectController/servlet-class
 /servlet

IIS log file:

2002-02-08  GET /redirect/index.jsp?url=http://www.hp.comlanguage=de 200 455 1472 15 
HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0b;+Windows+NT+5.0)
2002-02-08  GET /de/index.jsp?url=httphttp%3A%2F%2Fwww.hp.comlanguage=de 200 335 1494 
16 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0b;+Windows+NT+5.0)

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

2002-01-29 Thread E. Michael Akerman

 This is an off topic issue, but I'm getting desperate. Sorry to inconvenience most 
of you.
 I'm started lately getting exceptions thrown in my javascript. The javascript 
complements
 the server side java/jsp. I've exhausted my ideas. Where can I find a good 
javascript list and
 a good debugger. The javascript use quite a bit of objects and internal message 
queues.
 Difficult to debug. Any ideas.thanks.

http://download.microsoft.com/download/winscript56/Install/1.0a/NT45XP/EN-US/scd10en.exe

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

2002-01-29 Thread Panayotou, Michael



Could
you send the java code ?

  -Original Message-From: Cutty
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 30, 2002 9:26
  AMTo: [EMAIL PROTECTED]Subject: A JDBC
  problem!
  Hi:
  
   I have a problem
  with JSP programming on JDBC ,it is a little bit complex ,but I'll try to make
  myself clear.
  
   I have a table
  in my database named hcds ,its structure is as
  follow:
  .
  .
  
  
  










  Family
  ModelNo
  PartNumber
  SerialNo
  Customer
  DateofShipment
  DateofPurchase

  HB13L
  KDD2200
  B33400TW
  1096706
  STD
  2001-9-19
  2001-10-18

  HB13L
  KDD2200
  B33400TW
  1096796
  STD
  2001-9-19
  2001-10-18

  HB13L
  KDD2200
  B131
  NH11T195F8HW
  NKO
  2001-10-11
  2001-10-21

  HB13L
  KDD2200
  B131
  NH10T1A15FV0
  NKO
  2001-10-26
  2001-10-26
  .
  .
  .
  
   There are 500 lines in
  the table.I use getString() to
  obtain the data from it.
   The problem is , the
  getString("SerialNo") returns
  null on the line where the SerialNo change from a pure numeral
  format(1096796) to a mixed format
  (NH11T195F8HW).but it works well if the SerialNo is in a
  single format.
  When I picked up
  four line as showed above to test ,same thing happened. but if I delete first
  line(whose SerialNo was 1096706) or add some English characters in its
  SeroalNo colum , the problem didNOT
  happen;
   I am so confused and
  can not solve it. 
   I really appreciate if
  anybody can help me out of that.
  
  Cutty
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  
  


Re: Browser is killing the Application Session!!!

2002-01-07 Thread Michael Salsbury

Not sure if this is exactly relevant, but a couple of possibilities with a
similar problem.

1.  It could be the IE6 plus cookie security settings.  I saw some info about
this on the 'big moose' and dejanews mailing lists looking for Tomcat and
session and IE6.  However, we only get this problem with IE6 after applying a
security patch, without the patch IE6 retains it's session, with the patch we
get the same sort of behaviour as you describe.

2.  From my testing of our problem I found the following.

  - Using IE6 without patch with Tomcat 4 then session is retained
okay with jsp.
  - Using IE6 with the security patch and Tomcat 4 then session not
retained in a jsp, but it was using the Tomcat 4 demo session servlet.
  - Using Netscape 6 and Tomcat 4 session retained with jsp.
  - Using IE6 with the patch and resin as the app server then session
was retained okay.

I decided that it was a problem between Tomcat 4 and IE6 with the security
patch (my IE version is showing as 6.0.2600., with update Versions:
Q313675; 3283;, the same IE version with update Versions:0 worked okay).  As
our users will be using IE5 and we have the option of switching the app server
to resin, then I stopped investigating at this point.  Although a swift look
on google showed a few people with similar sounding problems.

hth,

Mike

= Original Message From A mailing list about Java Server Pages
specification and reference [EMAIL PROTECTED] =
Hello,
  I am facing a very interesting problem with Netscape6.1 and 6.2 version.
I am having one applet which loads with a AfterLogin.jsp page in the Client
machine.Now

When the Client cuts the Browser then in the destroy() method of the Applet
it initiates a

SaveServlet class which is inside the JBoss-tomcat server.This servlet upon
invoke just save

some datas in the database.The servlet uses one session value which I set in
jsp page after

Login.
Now the problem with Netscate 6.1 and 6.2 is that when the Servlet is invoked
and it

retrieves the Session data it is getting null.
But with the same code the Servlet is getting the same Session value
correctly in case of

lower versions of Netscape and with IE 5.0 or greater.
It will be very helpful to me if anyone can enlight me why this is
happening..how could the

Browser is invalidating the Application Session.

One more thing is with Netscape 6.1 the Loading of Applet is throwing
Exception.
Waiting for Reply.

Thanks in advance.

Rajarshi Ghosh
[EMAIL PROTECTED]

---LOVE IS GOD--
Mr. Rajarshi Ghosh
Senior Software Engineer(Team Leader)
Educomp Datamatics Ltd.
No-16,80 ft Road,4th Block,Koramangala
Bangalore- 560034
mail to:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

Totalise - the Users ISP
--
To become a member and a shareholder
visit http://www.totalise.net

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

2001-12-31 Thread Michael Morett

Try www.isavvix.com or www.mycgiserver.com.

Michael.



-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Chen, Gin
Sent: Monday, December 31, 2001 6:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Free JSP Host


Depending on what the proj is..
Use Tomcat running on port 80 on a smaller computer at your own
house/business
Then use a IP rerouting service.
Just an idea.. its free.. and has as much space as you give it ;)
-Tim

-Original Message-
From: Othmar Stehlik [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 30, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: Free JSP Host


Does anyone know a free JSP host?

thx
Othmar

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

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


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


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

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



Need direction for simple programming task

2001-12-19 Thread Michael Pomeroy

I have three JSP pages,
1) a Search page
2) a Select from Summary Record Page (multiple summary records displayed, a box is 
checked for each you want the detail on.
3) a detail sort page (displays detail on multiple records,  you uncheck the 
checkboxes and press SELECT/SORT to remove records from the sort.

The detail sort page works perfectly, but needs additional functionality. It displays 
only the records that have checks in the checkboxes.  By unchecking the checkbox for 
individual records, (and then pressing the Sort/Select button), the sort is re-run 
using only the ID's of records that have been checked.

WHAT I NEED FOR THE DETAIL PAGE:  When ADD TO CART is pressed, I want to pass the 
record ID's from the displayed records to a persistent session variable.   And then 
when DISPLAY  CART is pressed, I want to view a sort page EXACTLY like the original 
sort page, EXCEPT that the variable holding the diplayed record ID's IS the persistent 
session variable. I'm not sure how you can add only  unique ID's to the session 
variable (I don't want the cart to display duplicate records).

Here is the Detail(sort) Page code:
-
%@page language=java import=java.sql.*%
%@ include file=../Connections/connBeachwear.jsp %
%@page language=java import=java.sql.*,java.util.*%

%//INCLUDES CHECKED ITEMS IN SORT:
String rsBeachwear__varCheckbox = 1;
if (request.getParameter (valueCheckbox)!=null)
{rsBeachwear__varCheckbox = (String)request.getParameter (valueCheckbox)
;}
%

%
String rsBeachwear__name = ID;//default sort value
 if (request.getParameter (order) !=null) {rsBeachwear__name =
(String)request.getParameter (order);}
String rsBeachwear__sort = ASC;//default sort value
 if (request.getParameter (sort) !=null) {rsBeachwear__sort =
(String)request.getParameter (sort);}

String rsBeachwear__orderby =ID;//default value
 if (request.getParameter (order) !=null) {rsBeachwear__orderby =
(String)request.getParameter(order);}
String rsBeachwear__sortby =ASC;//default value
 if (request.getParameter (sort) !=null) {rsBeachwear__sortby =
(String)request.getParameter(sort);}
%
%
Driver DriverrsBeachwear =
(Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
Connection ConnrsBeachwear =
DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAM
E,MM_connBeachwear_PASSWORD);
String chkValues[]=request.getParameterValues(valueCheckbox);

session.setAttribute(chkValues2,chkValues);  //IS THIS THE CORRECT WAY TO
ADD ID'S TO A SESSION VARIABLE?

StringBuffer prepStr=new StringBuffer(SELECT ID, Item, Color, Size FROM
Beachwear WHERE ID=);
for(int x = 0; x  chkValues.length; ++x) {
 prepStr.append(chkValues[x]);
 if((x+1)chkValues.length){
  prepStr.append( OR ID=);
  }//end if
 }//end for loop

 prepStr.append( ORDER BY  + rsBeachwear__name +   +
rsBeachwear__sort ); //NEW SQL SORT CODE:
PreparedStatement
StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
Object rsBeachwear_data;
%
titleBeachwear Title/title
body bgcolor=#FF
p align=centerbfont size=4DETAIL PAGE/font/b/p
form name=form1 method=get action=Detail2.jsp
  table width=75% border=1
tr
  td width=20%
div align=centerSort Parameter /div
  /td
  td width=19%
div align=centerSort 1/div
  /td
  td width=25%
div align=centerSort 2/div
  /td
  td width=36%
div align=centerAdd Records to Cart:/div
  /td
  td width=36%
div align=center
  div align=centerView Cart/div
/div
  /td
/tr
tr
  td width=20%
div align=center
  input type=submit

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



Help! Session variable error: 4 days no progress

2001-12-14 Thread Michael Pomeroy

Help! I've been working on this for 4 days, but I'm sure it's simple if you are 
experienced. I'm receiving an error when I try to create the session variable (line 29)

I just want to
A) take the record ID's from a string variable on a sort page,
B) create a string session variable which has those ID's
C) and then pass it to the cart page, where the ID's will be used to display multiple 
records.

1) (From the sort page), using an ADD TO CART BUTTON, Pass the record ID's in the 
String chkValues[] to a session variable.

2)Figure out how to be able to access that session variable from the cart page: (The 
issue is that the form on the sort page already uses a GET method to perform the sort.)
--
ERROR
500 Internal Server Error - /jserv/Detail2.jsp:
Compilation error occured:
Found 2 errors in JSP file:
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Detail2.jsp:27: Syntax: Expression expected 
after this token

%@page language=java import=java.sql.*%
%@ include file=../Connections/connBeachwear.jsp %
%@page language=java import=java.sql.*,java.util.*%%//ADDED 12/14 %
%
//INCLUDE CHECKED ITEMS IN SORT:
String rsBeachwear__varCheckbox = 1;
if (request.getParameter (valueCheckbox) !=null) {rsBeachwear__varCheckbox = 
(String)request.getParameter (valueCheckbox) ;}
%
%
String rsBeachwear__name = ID;//default sort value
if (request.getParameter (order) !=null) {rsBeachwear__name = 
(String)request.getParameter (order);}
String rsBeachwear__sort = ASC;//default sort value
if (request.getParameter (sort) !=null) {rsBeachwear__sort = 
(String)request.getParameter (sort);}
String rsBeachwear__orderby =ID;//default value
if (request.getParameter (order) !=null) {rsBeachwear__orderby = 
(String)request.getParameter(order);}
String rsBeachwear__sortby =ASC;//default value
if (request.getParameter (sort) !=null) {rsBeachwear__sortby = 
(String)request.getParameter(sort);}
%
%
Driver DriverrsBeachwear = 
(Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
Connection ConnrsBeachwear = 
DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
String chkValues[]=request.getParameterValues(valueCheckbox);

session.setAttribute(chkValues2,chkValues[]); //AND NOW MAY BE ADDED TO CART

StringBuffer prepStr=new StringBuffer(SELECT ID, Item, Color, Size FROM Beachwear 
WHERE ID=);
for(int x = 0; x  chkValues.length; ++x) {
prepStr.append(chkValues[x]);
if((x+1)chkValues.length){
prepStr.append( OR ID=);
}//end if
}//end for loop

prepStr.append( ORDER BY  + rsBeachwear__name +   + rsBeachwear__sort ); //NEW SQL 
SORT CODE:
PreparedStatement 
StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
Object rsBeachwear_data;
%
titleBeachwear Title/title
body bgcolor=#FF
p align=centerbfont size=4DETAIL PAGE/font/b/p
form name=form1 method=get action=Detail2.jsp
table width=75% border=1
tr
td width=20%
div align=centerSort Parameter /div
/td
td width=19%
div align=centerSort 1/div
/td
td width=25%
div align=centerSort 2/div
/td
td width=36%
div align=centerAdd Records to Cart:/div
/td
td width=36%
div align=center
div align=centerGo to Cart/div
/div
/td
/tr
tr
td width=20%
div align=center
input type=submit value=Sort /Select name=submit
/div
/td
td width=19%
div align=center
select name=order size=1
option value=ID % if (rsBeachwear__orderby.equals(ID)) {out.print(selected); } 
% ID/option
option value=Item % if (rsBeachwear__orderby.equals(Item)) 
{out.print(selected); } % Item/option
option value=Color % if (rsBeachwear__orderby.equals(Color)) 
{out.print(selected); } % Color/option
option value=Size % if (rsBeachwear__orderby.equals(Size)) 
{out.print(selected); } % Size/option
/select
/div
/td
td width=25%
div align=center
select name=sort size=1
option value=ASC % if (rsBeachwear__sortby.equals(ASC)) {out.print(selected); 
} %Ascending/option
option value=DESC % if (rsBeachwear__sortby.equals(DESC)) 
{out.print(selected); } %Descending/option
/select
/div
/td
td width=36%
div align=center
input type=submit name=Submit value=Add to Cart
/div
/td
td width=36%
div align=center
div align=center
input type=button name=butGoToCart value=Go to Cart 
onClick=window.location='../jserv/Cart2.jsp'
/div
/div
/td
/tr
/table
pý/p
%while(rsBeachwear.next()){%
table width=75% border=1
tr
td width=17%ID:/td
td width=58%%=(((rsBeachwear_data = rsBeachwear.getObject(ID))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
td width=25%
div align=centerInclude in Sort:
input type=checkbox name=valueCheckbox value=%=(((rsBeachwear_data = 
rsBeachwear.getObject(ID))==null || rsBeachwear.wasNull())?:rsBeachwear_data)% 
checked
/div
/td
/tr
tr
td width=17%ITEM:/td
td colspan=3%=(((rsBeachwear_data = rsBeachwear.getObject(Item))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
td width=17%COLOR:/td
td 

Help! Creating simple JSP cart

2001-12-12 Thread Michael Pomeroy

The code is all below.
I have a repeating record (invoice) page that sorts correctly.
I want the users to be able to check a checkbox within the same form, allowing the 
record to be set-aside and displayed in a persistent location (cart) when a button is 
pressed.

I have added:
a button to perform the set-aside
the checkbox in the repeating area containing ID
and have created the page to display the persistent data.

How do I program the button on the sort page,
and how do I program the session logic on the set-aside(cart) page?

I want to try to perform this task using only JSP, for the cart needs to be funtioning 
by week end.  Thanks for any advice you can provide!
--
Invoice Page

%@page language=java import=java.sql.*%
%@ include file=../Connections/connBeachwear.jsp %
%
String rsBeachwear__varCheckbox = 1;
String rsBeachwear__showCheckbox = no;
if (request.getParameter (valueCheckbox)!=null) {rsBeachwear__varCheckbox = 
(String)request.getParameter (valueCheckbox)   ;}
%
%
String rsBeachwear__name = ID;//default sort value
 if (request.getParameter (order) !=null) {rsBeachwear__name = 
(String)request.getParameter (order);}
String rsBeachwear__sort = ASC;//default sort value
 if (request.getParameter (sort) !=null) {rsBeachwear__sort = 
(String)request.getParameter (sort);}

String rsBeachwear__orderby =ID;//default value
 if (request.getParameter (order) !=null) {rsBeachwear__orderby = 
(String)request.getParameter(order);}
String rsBeachwear__sortby =ASC;//default value
 if (request.getParameter (sort) !=null) {rsBeachwear__sortby = 
(String)request.getParameter(sort);}

%
%
Driver DriverrsBeachwear = 
(Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
Connection ConnrsBeachwear = 
DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
String chkValues[]=request.getParameterValues(valueCheckbox);
StringBuffer prepStr=new StringBuffer(SELECT ID, Item, Color, Size FROM Beachwear 
WHERE ID=);
for(int x = 0; x  chkValues.length; ++x) {
 prepStr.append(chkValues[x]);
 if((x+1)chkValues.length){
  prepStr.append( OR ID=);
  }//end if
 }//end for loop
 prepStr.append( ORDER BY  + rsBeachwear__name +   + rsBeachwear__sort );
PreparedStatement 
StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
Object rsBeachwear_data;
%
titleBeachwear Title/title
body bgcolor=#FF
pnbsp;/p
pnbsp;/p
pbr
  INVOICEbr
/p
%//FORM GET METHOD%
form name=form1 method=get action=Invoice.jsp
  p align=center
%
//NEW BUTTON TO SUBMIT CHECK-MARKED RECORDS TO CART: NOT SURE HOW TO CODE???
 %
input type=submit name=Submit2 value=Set Aside All Records Checked
  /p
  %while(rsBeachwear.next()){  ;  %
  table width=75% border=1
tr
  td width=8%ID:/td
  td width=69%%=(((rsBeachwear_data = rsBeachwear.getObject(ID))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
  td width=23%

% SEND-RECORD-TO-CART CHECKBOX %
div align=centerSet-Aside:
  input type=checkbox name=cbSetAside value=%=(((rsBeachwear_data = 
rsBeachwear.getObject(ID))==null || rsBeachwear.wasNull())?:rsBeachwear_data)%

/div
  /td
/tr
tr
  td width=8%ITEM:/td
  td colspan=2%=(((rsBeachwear_data = rsBeachwear.getObject(Item))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=8%COLOR:/td
  td colspan=2%=(((rsBeachwear_data = rsBeachwear.getObject(Color))==null 
|| rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=8%SIZE:/td
  td colspan=2%=(((rsBeachwear_data = rsBeachwear.getObject(Size))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
%
 //TEST TO DETERMINE IF CHECKBOX ROW SHOULD BE DISPLAYED???
  if (rsBeachwear__showCheckbox == yes) { %
 tr
  td width=8%nbsp;/td
  td colspan=2

input type=checkbox name=valueCheckbox value=%=(((rsBeachwear_data = 
rsBeachwear.getObject(ID))==null || rsBeachwear.wasNull())?:rsBeachwear_data)% 
checked

 /td
/tr
  %
   }
   %
  /table
  %
  }
  %
  pnbsp; /p
  br
  table width=54% border=1
tr
  td width=29%
div align=centerParameter /div
  /td
  td width=28%
div align=center1/div
  /td
  td width=43%
div align=center2/div
  /td
/tr

tr
  td width=29%
div align=center
  input type=submit value=Sort Now
/div
  /td
  td width=28%
div align=center
select name=order size=1
 option value=ID % if (rsBeachwear__orderby.equals(ID)) 
{out.print(selected); } % ID/option
   option value=Item % if (rsBeachwear__orderby.equals(Item)) 
{out.print(selected); } % Item/option
   option value=Color % if (rsBeachwear__orderby.equals(Color)) 
{out.print(selected); } % Color/option
   option value=Size % if (rsBeachwear__orderby.equals(Size)) 
{out.print(selected); } % Size/option

Advanced programmers: How can I add cart functionality to this page?

2001-12-12 Thread Michael

The code is below.
I've successfully coded a  repeating-record detail page with pull-down sort boxes. 
Though the page works perfectly, I need to add cart functionality, and would like to 
keep it simple. I would simply like to have clients view the repeating details, sort 
the records, and then select each record desired to be placed in a cart.

Where do I start???
--
Repeating Detail Page: Needs Cart

%@page language=java import=java.sql.*%
%@ include file=../Connections/connBeachwear.jsp %
%
String rsBeachwear__varCheckbox = 1;
String rsBeachwear__showCheckbox = no;
if (request.getParameter (valueCheckbox)!=null) {rsBeachwear__varCheckbox = 
(String)request.getParameter (valueCheckbox)   ;}
%
%
String rsBeachwear__name = ID;//default sort value
 if (request.getParameter (order) !=null) {rsBeachwear__name = 
(String)request.getParameter (order);}
String rsBeachwear__sort = ASC;//default sort value
 if (request.getParameter (sort) !=null) {rsBeachwear__sort = 
(String)request.getParameter (sort);}

String rsBeachwear__orderby =ID;//default value
 if (request.getParameter (order) !=null) {rsBeachwear__orderby = 
(String)request.getParameter(order);}
String rsBeachwear__sortby =ASC;//default value
 if (request.getParameter (sort) !=null) {rsBeachwear__sortby = 
(String)request.getParameter(sort);}

%
%
Driver DriverrsBeachwear = 
(Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
Connection ConnrsBeachwear = 
DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
String chkValues[]=request.getParameterValues(valueCheckbox);
StringBuffer prepStr=new StringBuffer(SELECT ID, Item, Color, Size FROM Beachwear 
WHERE ID=);
for(int x = 0; x  chkValues.length; ++x) {
 prepStr.append(chkValues[x]);
 if((x+1)chkValues.length){
  prepStr.append( OR ID=);
  }//end if
 }//end for loop
 prepStr.append( ORDER BY  + rsBeachwear__name +   + rsBeachwear__sort );
PreparedStatement 
StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
Object rsBeachwear_data;
%
titleBeachwear Title/title
body bgcolor=#FF
pnbsp;/p
pnbsp;/p
pbr
  INVOICEbr
/p
%//FORM GET METHOD%
form name=form1 method=get action=Invoice.jsp
  p align=center
  /p
  %while(rsBeachwear.next()){  ;  %
  table width=75% border=1
tr
  td width=8%ID:/td
  td width=69%%=(((rsBeachwear_data = rsBeachwear.getObject(ID))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
  td width=23%
/div
  /td
/tr
tr
  td width=8%ITEM:/td
  td colspan=2%=(((rsBeachwear_data = rsBeachwear.getObject(Item))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=8%COLOR:/td
  td colspan=2%=(((rsBeachwear_data = rsBeachwear.getObject(Color))==null 
|| rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=8%SIZE:/td
  td colspan=2%=(((rsBeachwear_data = rsBeachwear.getObject(Size))==null || 
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
%
  tr
  td width=8%nbsp;/td
  td colspan=2

input type=checkbox name=valueCheckbox value=%=(((rsBeachwear_data = 
rsBeachwear.getObject(ID))==null || rsBeachwear.wasNull())?:rsBeachwear_data)% 
checked
 /td
/tr
   /table
  %
  }
  %
  pnbsp; /p
  br
  table width=54% border=1
tr
  td width=29%
div align=centerParameter /div
  /td
  td width=28%
div align=center1/div
  /td
  td width=43%
div align=center2/div
  /td
/tr

tr
  td width=29%
div align=center
  input type=submit value=Sort Now
/div
  /td
  td width=28%
div align=center
select name=order size=1
 option value=ID % if (rsBeachwear__orderby.equals(ID)) 
{out.print(selected); } % ID/option
   option value=Item % if (rsBeachwear__orderby.equals(Item)) 
{out.print(selected); } % Item/option
   option value=Color % if (rsBeachwear__orderby.equals(Color)) 
{out.print(selected); } % Color/option
   option value=Size % if (rsBeachwear__orderby.equals(Size)) 
{out.print(selected); } % Size/option
  /select
/div
  /td
  td width=43%
div align=center
  select name=sort size=1
option value=ASC % if (rsBeachwear__sortby.equals(ASC)) 
{out.print(selected); } %Ascending/option
   option value=DESC % if (rsBeachwear__sortby.equals(DESC)) 
{out.print(selected); } %Descending/option
  /select
/div
  /td
/tr
  /table
  /form
%
rsBeachwear.close();
ConnrsBeachwear.close();
%

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

Re: Programmers: Adding cart functionality

2001-12-12 Thread Michael

Thanks, Chris.

Thanks for the recommendations! I use WROX Professional JSP-2nd Edition. I don't think 
I expressed myself clearly.  My code works well. My prob is I can't figure out how to 
add ANOTHER submit button to pass a string variable out of the form and into the cart 
page without causing an exception.

Thanks again, Michael

- Original Message -
From: Chris Tucker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 5:35 PM
Subject: Re: Advanced programmers: How can I add cart functionality to this
page?


 Michael,
 I'd suggest that the first thing you do is get some good books on JSP,
Java,
 and application development for the web.  It's unlikely anyone will be
able
 to afford the time to go through your code, work out what it's doing, pick
 out how to do what you need to do, and then tell you how to do it.  Take a
 look at Hans' book on JSP (O'Reillys JavaServer Pages) as everyone seems
 to like that (though I haven't personally used it yet).  For a Java book,
 the traditional university text when I was at uni was Deitel  Deitel's
Java
 book (can't remember the title or publisher), and while not the best
 textbook ever will cover everything you need to get a really firm
foundation
 in the nicer points of Java.  As for web app development, not sure: I tend
 to spend a lot of time using the specs etc. from w3.org directly, as
they're
 the reference from which a lot of this stuff is implemented (that is, this
 web stuff -- the JSP/Servlet/J2EE etc. specs are all on java.sun.com).

 Sorry I can't be of more help,

 --Chris

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
 Sent: Wednesday, December 12, 2001 3:19 PM
 To: [EMAIL PROTECTED]
 Subject: Advanced programmers: How can I add cart functionality to this
 page?


 The code is below.
 I've successfully coded a  repeating-record detail page with pull-down
sort
 boxes. Though the page works perfectly, I need to add cart functionality,
 and would like to keep it simple. I would simply like to have clients view
 the repeating details, sort the records, and then select each record
desired
 to be placed in a cart.

 Where do I start???
 --
 Repeating Detail Page: Needs Cart

 %@page language=java import=java.sql.*%
 %@ include file=../Connections/connBeachwear.jsp %
 %
 String rsBeachwear__varCheckbox = 1;
 String rsBeachwear__showCheckbox = no;
 if (request.getParameter (valueCheckbox)!=null)
 {rsBeachwear__varCheckbox = (String)request.getParameter (valueCheckbox)
 ;}
 %
 %
 String rsBeachwear__name = ID;//default sort value
  if (request.getParameter (order) !=null) {rsBeachwear__name =
 (String)request.getParameter (order);}
 String rsBeachwear__sort = ASC;//default sort value
  if (request.getParameter (sort) !=null) {rsBeachwear__sort =
 (String)request.getParameter (sort);}

 String rsBeachwear__orderby =ID;//default value
  if (request.getParameter (order) !=null) {rsBeachwear__orderby =
 (String)request.getParameter(order);}
 String rsBeachwear__sortby =ASC;//default value
  if (request.getParameter (sort) !=null) {rsBeachwear__sortby =
 (String)request.getParameter(sort);}

 %
 %
 Driver DriverrsBeachwear =
 (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
 Connection ConnrsBeachwear =

DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAM
 E,MM_connBeachwear_PASSWORD);
 String chkValues[]=request.getParameterValues(valueCheckbox);
 StringBuffer prepStr=new StringBuffer(SELECT ID, Item, Color, Size FROM
 Beachwear WHERE ID=);
 for(int x = 0; x  chkValues.length; ++x) {
  prepStr.append(chkValues[x]);
  if((x+1)chkValues.length){
   prepStr.append( OR ID=);
   }//end if
  }//end for loop
  prepStr.append( ORDER BY  + rsBeachwear__name +   +
 rsBeachwear__sort );
 PreparedStatement
 StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
 ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
 Object rsBeachwear_data;
 %
 titleBeachwear Title/title
 body bgcolor=#FF
 pnbsp;/p
 pnbsp;/p
 pbr
   INVOICEbr
 /p
 %//FORM GET METHOD%
 form name=form1 method=get action=Invoice.jsp
   p align=center
   /p
   %while(rsBeachwear.next()){  ;  %
   table width=75% border=1
 tr
   td width=8%ID:/td
   td width=69%%=(((rsBeachwear_data =
 rsBeachwear.getObject(ID))==null ||
 rsBeachwear.wasNull())?:rsBeachwear_data)%/td
   td width=23%
 /div
   /td
 /tr
 tr
   td width=8%ITEM:/td
   td colspan=2%=(((rsBeachwear_data =
 rsBeachwear.getObject(Item))==null ||
 rsBeachwear.wasNull())?:rsBeachwear_data)%/td
 /tr
 tr
   td width=8%COLOR:/td
   td colspan=2%=(((rsBeachwear_data =
 rsBeachwear.getObject(Color))==null ||
 rsBeachwear.wasNull())?:rsBeachwear_data)%/td
 /tr
 tr
   td width=8%SIZE:/td
   td colspan=2%=(((rsBeachwear_data

Feeble attempt at creating cart: Need input!

2001-12-07 Thread Michael Pomeroy

I am attempting to add cart funtionality to my site.

I have a page that displays multiple repeating records (that were selected from the 
previous page) and I've added two sort menu boxes and a submit button that work 
perfectly.

Now, into the same repeating row in the form, I want to place an ADD TO CART button 
that when pressed:
1)adds the specific record ID to a persistent cart string variable
2)and then places a checkmark into a checkbox for that record

I have spontaneously typed some code, which I'm sure is mostly wrong, but it gives you 
an idea of the variable names, etc:

//NEW CART PERSISTENT VARIABLE
session.setAttribute(String rsBeachwear__cart,'Cart is Empty'); //default cart 
variable value

//NEW CART BUTTON
input type=submit name=butCart value=Add to Cart
onclick=form.action=(((
  rsBeachwear_cart = rsBeachwear.getObject(ID))==null ||
rsBeachwear.wasNull())?:rsBeachwear_cart)%


//NEW ADDED-TO-CART CHECKBOX
 Was This Record Added to Cart?
 input type=checkbox name=cbCart value=checkbox

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

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



Is onClick a bad way to navigate using buttons?

2001-12-05 Thread Michael Pomeroy

I have a Results form which displays result records. Then, when a SUBMIT button is 
hit, a Detail page is displayed.

I added two more buttons within the Results form, one to go back one step in history:
   input type=button name=butModifySearch value=Modify Search 
onclick=window.history.go(-1)
AND,
a second button to perform a new search:
   input type=button name=butNewSearch value=New Search 
link.onclick=(SearchPage.jsp)

I am receiving a run-time error for the New Search button, but the history button is 
working well.

I have two questions:
1)What is wrong with the New Search button?
2)Are there browser bugs which make onClick a bad technique to use to navigate pages?
3)Are there better techniques to use to navigate with buttons?

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



Mod_webapp problem with Apache 1.3.22/Tomcat 4

2001-12-05 Thread Michael Rogan

 Hello,
 
  
 
 I am receiving the following error when placing the statement
 LoadModule webapp_module libexec/mod_webapp.so in my Apache
httpd.conf 
 file:
 
  
 
 Invalid command 'LoadModule',perhaps mis-spelled or defined by a 
 module
 not included in server configuration.
 
  
 
 The mod_webapp.so file is in the libexec directory and I am running
 Apache 1.3.22 on RedHat 7.1.  I hope you can give me some advice.
 
  
 
 Thank You!

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

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



Possible to set-aside records to persistent location?

2001-12-05 Thread Michael Pomeroy

Is it possible to  set-aside records to one location, that were selected from 
results and detail pages, similar to a persistent shopping cart ?

Using 3 simple pages: Search, Results (multiple records), Detail (multiple records), a 
user would use the site this way:

Search--Results (set-aside a few records)--Detail (set-aside a few records)--New 
Search--Results(set aside a few records)--Detail(set-aside a few 
records)--Search--Access the set-aside location--De-select a few of the 
records--View the updated  records.

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



Drop-down box memory: Is my syntax wrong?

2001-12-04 Thread Michael Pomeroy

I want my drop-down boxes (used to select sort parameters) to remember their last 
selection.  Is my code wrong? I am receiving syntax errors. Below are the error 
messages and the code.

500 Internal Server Error
/jserv/Invoice3.jsp:
Compilation error occured:
Found 6 errors in JSP file:
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:98: Syntax: Unexpected symbol 
ignored
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:99: Syntax: Unexpected symbol 
ignored
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:100: Syntax: Unexpected symbol 
ignored
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:101: Syntax: Unexpected symbol 
ignored
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:108: Syntax: Unexpected symbol 
ignored
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:109: Syntax: Unexpected symbol 
ignored
-
14 //New drop-down box memory variables
15 String rsBeachwear__orderby = (String)request.getParameter(order);
16 String rsBeachwear__sortby = (String)request.getParameter(sort);

97 select name=order size=1
98 option value=ID % if (rsBeachwear__orderby equals (ID)) 
{Response.Write('SELECTED');}
%ID/option
99 option value=Item % if (rsBeachwear__orderby equals (Item)) 
{Response.Write('SELECTED');}
%Item/option
100 option value=Color % if (rsBeachwear__orderby equals (Color))
{Response.Write('SELECTED');} % Color/option
101 option value=Size % if (rsBeachwear__orderby equals (Size)) 
{Response.Write('SELECTED');}
% Size/option
102 /select
103 /div
104 /td
105 td width=43%
106 div align=center
107 select name=sort size=1
108 option value=ASC % if (rsBeachwear__sortby equals (ASC)) 
{Response.Write('SELECTED');}
%Ascending/option
109 option value=DESC % if (rsBeachwear__sortby equals (DESC)) 
{Response.Write('SELECTED');}
%Descending/option
110 /select

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



Help! Problem in logic to pass values between pages and then sort.

2001-12-03 Thread Michael Pomeroy

Greetings, (my code is below)

I developed a very simple JSP site for my client so people may purchase Beach Clothing 
over the Internet.  I am receiving an exception from this line:  for (int x = 0; x  
chkValues.length; ++x) {

Here is the logic of the site
INDEX Page: (search on item color)--
SEARCH Page: (Lists records from HTML page search. Click on check box in front of each 
resulting record you want to view detail on)
INVOICE Page: Displays multiple repeating records (all records that were check-marked 
on search page) AND THEN allows you to sort them using two drop down list boxes, one 
with column names, the other sort order (ASC DESC)

Everything is functioning well, except when they press SORT it appears that an 
exception is being caused by a null value resulting
from:  request.getParameterValues  not retrieving a value:

String chkValues[]=request.getParameterValues(valueCheckbox);

and then:
 for (int x = 0; x  chkValues.length; ++x) { 
has no string assigned to chkValues to work with, so AN EXCEPTION IS THROWN.

Does anyone see the mistake in how the INVOICE page is written?
I am new at this, and do not understand what the issues are and what is the mistake in 
the logic of the page?

The invoice page is below, as are the Index and Search Pages:
Index--Search--Invoice

ERROR CODE:
500 Internal Server Error
/jserv/Invoice3.jsp:
java.lang.NullPointerException
 at
jrun__jserv__Invoice32ejsp13._jspService(jrun__jserv__Invoice32ejsp13.java:7
5)

INVOICE PAGE (last page):

%@page language=java import=java.sql.*%
%@ include file=../Connections/connBeachwear.jsp %
%
String rsBeachwear__varCheckbox = 1;
if (request.getParameter (valueCheckbox)!=null)
{rsBeachwear__varCheckbox = (String)request.getParameter (valueCheckbox)
;}
%
%
//NEW SORT VARIABLES:
String rsBeachwear__name = ID;//default sort value
 if (request.getParameter (order) !=null) {rsBeachwear__name =
(String)request.getParameter (order);}
String rsBeachwear__sort = ASC;//default sort value
 if (request.getParameter (sort) !=null) {rsBeachwear__sort =
(String)request.getParameter (sort);}
%
%
Driver DriverrsBeachwear =
(Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
Connection ConnrsBeachwear =
DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAM
E,MM_connBeachwear_PASSWORD);
String chkValues[]=request.getParameterValues(valueCheckbox);
StringBuffer prepStr=new StringBuffer(SELECT ID, Item, Color, Size FROM
Beachwear WHERE ID=);
for(int x = 0; x  chkValues.length; ++x) {
 prepStr.append(chkValues[x]);
 if((x+1)chkValues.length){
  prepStr.append( OR ID=);
  }//end if
 }//end for loop
 prepStr.append( ORDER BY '% + rsBeachwear__name + %' '% +
rsBeachwear__sort + %'); //NEW SQL SORT CODE:
PreparedStatement
StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
Object rsBeachwear_data;
%
titleBeachwear Title/title
body bgcolor=#FF
pnbsp;/p
pnbsp;/p
pbr
  INVOICEbr
/p
%//FORM GET METHOD%
form name=form1 method=get action=Invoice3.jsp
  pbr
/p
  %while(rsBeachwear.next()){   //NEW LOOP; RELEVANT, NOT POINTLESS %
  table width=75% border=1
tr
  td width=13%ID:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(ID))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=13%ITEM:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(Item))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=13%COLOR:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(Color))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=13%SIZE:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(Size))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
  /table
  %
  }
  %
  pnbsp; /p
  br
  table width=54% border=1
tr
  td width=29%
div align=centerParameter /div
  /td
  td width=28%
div align=center1/div
  /td
  td width=43%
div align=center2/div
  /td
/tr
%//TWO NEW PULL-DOWN MENUS FOR ORDER BY SQL SORT%
tr
  td width=29%
div align=center
  input type=submit value=Sort Now
/div
  /td
  td width=28%
div align=center
  select name=order size=1
option value=ID selectedID/option
option value=ItemItem/option
option value=ColorColor/option
option value=SizeSize/option
  /select
/div
  /td
  td width=43%
div align=center
  select name=sort size=1
option value=ASC selectedAscending/option
option value=DESCDescending/option
  /select
/div
  /td
/tr
  /table
  /form
%
rsBeachwear.close();
ConnrsBeachwear.close();
%
--
INDEX PAGE (first page):

titleBeachwear 

Drop-down list box memory: Syntax error

2001-12-03 Thread Michael Pomeroy

Hello, all!

I've added drop-down listbox memory to my webpage, so my two sort drop-down boxes 
remember the last selection. But I'm receiving a syntax error.  I think maybe my 
quotes are not correct.

I am also not sure that Response.Write is used correctly.

500 Internal Server Error /jserv/Invoice3.jsp:
Compilation error occured:  Found 6 errors in JSP file:
C:\\Inetpub\\wwwroot\\Beachwear\\jserv\\Invoice3.jsp:99: Error: A character literal 
must be a valid unicode value - i.e., a character literal enclosed in single quotes or 
an integer value in the range 0..65535 or an escaped 3-digit octal value in the range 
\000..\377.
--
STRING VARIABLES ADDED:
String rsBeachwear__orderby = 
rsBeachwear__orderby=(String)request.getParameter(order);
String rsBeachwear__sortby = rsBeachwear__sortby=(String)request.getParameter(sort);
-
DROP-DOWN BOX MEMORY LOGIC:
option value=ID selected % if (rsBeachwear__orderby == ID)
{Response.Write('SELECTED');} % ID/option
option value=Item selected % if (rsBeachwear__orderby == Item) 
{Response.Write('SELECTED');} % Item/option
option value=Color selected % if (rsBeachwear__orderby == Color) 
{Response.Write('SELECTED');} % Color/option
option value=Size selected % if (rsBeachwear__orderby == 'Size) 
{Response.Write('SELECTED');} % Size/option

option value=ASC selected % if (rsBeachwear__sortby == ASC) 
{Response.Write('SELECTED');} %Ascending/option
option value=DESC selected % if (rsBeachwear__sortby == DESC) 
{Response.Write('SELECTED');} %Descending/option

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

2001-11-30 Thread Michael Reilly
Title: RE: Servlet refresh





You have 'localhost' in your web page rather than a relative directory. or at least that's my thinking. My client looks for file on my localhost...

-Original Message-
From:  Ketharinath Kamalanathan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 30, 2001 2:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet refresh


but the fun is when you submit something on that page.


The TOmCat server is up and running fine. I get he TomCat Index page. But
hte servlet I am talkng baout is my servlet for my app.


http://65.71.103.122:8080/examples/jsp/middleware/index.html


If you visit there, you will get a login screen.(this is just a dummy one).
typr something in the username nad password and submit. Then you will get a
message on the browser. What actually should come is the out put for the
code given below. BUt check out what comes up.


Thanks
//KK


public void doGet(HttpServletRequest req, HttpServletResponse res) throws
IOException, ServletException {


 res.setContentType(text/html);
 PrintWriter out = res.getWriter();


 String un = req.getParameter(uname));


 out.println(HTML);
 out.println(HEAD TITLE Middleware Login
/TITLE /HEAD);
 out.println(BODY);
 out.println(My Login is Login Success);
 out.println(un);
 out.println(/BODY/HTML);



 }



- Original Message -
From: Chris Pratt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 30, 2001 3:53 PM
Subject: Re: Servlet refresh



 Seems to be working fine. I just went to
 http://65.71.103.122:8080/index.html and the TomCat start page came right
 up.
 (*Chris*)

 - Original Message -
 From: Ketharinath Kamalanathan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 30, 2001 1:39 PM
 Subject: Re: [JSP-INTEREST] Servlet refresh


  1. I am not able to telnet to my server.
 
  I havethe machine on the Net with IP 65.71.103.122 and port 8080 for my
 web
  app. Can you tell me if I have any thing wrong in what I have set up by
  seeing the page yourself??
 
  Thanks
 
  /KK
  - Original Message -
  From: Chris Tucker [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, November 30, 2001 3:06 PM
  Subject: Re: Servlet refresh
 
 
   If at first something like that doesn't work for me, I tend to stop
  Tomcat,
   erase the offending servlet, copy the new version in again, and
restart.
   However, it sounds like you've probably already done this. The next
 thing
  I
   would try is to just make absolutely sure the browser isn't serving
you
 a
   cached copy. The best way to test this is to telnet to your HTTP
 server:
  
   telnet servername 80
   GET /absolute/url/to/servlet HTTP/1.1
   Host: localhost
  
   (make sure you hit return twice after the Host: line). The response
you
  get
   in the telnet window will be exactly what the server is sending.
  
   If you get the new version response from that command, then it's the
   browser at fault; otherwise, it's Tomcat.
  
   -Chris
  
  
   -Original Message-
   From: A mailing list about Java Server Pages specification and
reference
   [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath
Kamalanathan
   Sent: Friday, November 30, 2001 1:02 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Servlet refresh
  
  
   Yes I did. I deleted all the cache from the browser too.
  
   Thanks
  
   /KK
   - Original Message -
   From: Chris Tucker
   To: [EMAIL PROTECTED]
   Sent: Friday, November 30, 2001 2:54 PM
   Subject: Re: Servlet refresh
  
  
   Have you emptied the browser cache/shift-reloaded the page?
   -Original Message-
   From: A mailing list about Java Server Pages specification and
reference
   [mailto:[EMAIL PROTECTED]]On Behalf Of Ketharinath
Kamalanathan
   Sent: Friday, November 30, 2001 12:54 PM
   To: [EMAIL PROTECTED]
   Subject: Servlet refresh
  
  
   Hello:
  
   I am running TomCat 4.0.1 and I have servlet class file placed in the
   appropriate position.
  
   I made some changes ot my servlet source class and compiled.
Compilation
   went thorugh. I restarted my TomCat server. But still, I do not see
the
   changes. I have changed hte text to be displayed. I am not able to see
 the
   change in the browser.
  
   Where am I going wrong?
  
   Thanks in advance.
  
   /KK
  
  
 

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

localhost vs ip address

2001-11-30 Thread Michael Reilly
Title: localhost vs ip address





Chris is correct...change the 'localhost' to your ip address in your html file and you should be working.




Interesting Sort Problem

2001-11-29 Thread Michael Pomeroy

I am adding sort functionality to a successful Results(Invoice2.jpg) page.

I've created two drop-down list boxes to select the sort parameters:
One with column names, the other sort order (ASC or DESC)

I'm receiving a Null Pointer Exception error when I subit the sort.

The URL generated by the code when the error occurs:
http://localhost/jserv/Invoice2.jsp?order=Itemsort=ASC  The page is in the
jserv folder and is named: Invoice2.jsp
--
The error:
500 Internal Server Error /jserv/Invoice2.jsp:
java.lang.NullPointerException at
jrun__jserv__Invoice22ejsp13._jspService(jrun__jserv__Invoice22ejsp13.java:7
8) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)

I am able to move to the Page with success, the fields are populated and I
receive no errors.
Then, when I perform the sort, I receive the above error.

Here is my code:

-
%@page language=java import=java.sql.*%
%@ include file=../Connections/connBeachwear.jsp %
%
String rsBeachwear__varCheckbox = 1;
if (request.getParameter (valueCheckbox)!=null)
{rsBeachwear__varCheckbox = (String)request.getParameter (valueCheckbox)
;}
%

%
//NEW SORT VARIABLES:
String rsBeachwear__name = ID;//default sort value
if (request.getParameter (order) !=null) {rsBeachwear__name =
(String)request.getParameter (order);}
%
%
String rsBeachwear__sort = ASC;//default sort value
if (request.getParameter (sort) !=null) {rsBeachwear__sort =
(String)request.getParameter (sort);}
%

%
Driver DriverrsBeachwear =
(Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
Connection ConnrsBeachwear =
DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAM
E,MM_connBeachwear_PASSWORD);
String chkValues[]=request.getParameterValues(valueCheckbox);
StringBuffer prepStr=new StringBuffer(SELECT ID, Item, Color, Size FROM
Beachwear WHERE ID=);
for(int x=0;xchkValues.length;++x){
 prepStr.append( chkValues[x] );
 if((x+1)chkValues.length){//There will be another iteration
  prepStr.append( OR ID=);
  }//end if
 }//end for loop

//NEW SQL SORT CODE:
 prepStr.append( ORDER BY '% + rsBeachwear__name + %' '% +
rsBeachwear__sort + %');

//Sample:(SELECT ID, Item, Color, Size  FROM Beachwear  WHERE Color LIKE
'% + rsBeachwear__varColor + %'  ORDER BY Item);

PreparedStatement
StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
boolean rsBeachwear_isEmpty = !rsBeachwear.next();
boolean rsBeachwear_hasData = !rsBeachwear_isEmpty;
Object rsBeachwear_data;
int rsBeachwear_numRows = 0;
%
%
int Repeat1__numRows = -1;
int Repeat1__index = 0;
rsBeachwear_numRows += Repeat1__numRows;
%
titleBeachwear Title/title
body bgcolor=#FF
pnbsp;/p
pnbsp;
pbr
  INVOICEbr
/p
%//FORM GET METHOD%
form name=form1 method=get action=Invoice2.jsp
  pbr
/p
  % while ((rsBeachwear_hasData)(Repeat1__numRows-- != 0)) { %
  table width=75% border=1
tr
  td width=13%ID:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(ID))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=13%ITEM:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(Item))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=13%COLOR:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(Color))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
tr
  td width=13%SIZE:/td
  td width=87%%=(((rsBeachwear_data =
rsBeachwear.getObject(Size))==null ||
rsBeachwear.wasNull())?:rsBeachwear_data)%/td
/tr
  /table
  %
  Repeat1__index++;
  rsBeachwear_hasData = rsBeachwear.next();
}
%
  pnbsp; /p
  br
  table width=21% border=1
tr
  td width=30%
div align=centerParameter/div
  /td
  td width=17%
div align=center1/div
  /td
  td width=53%
div align=center2/div
  /td
/tr

%//NEW PULL DOWN SORT LISTS %
tr
  td width=30%
div align=center
  input type=submit value=Sort Now
/div
  /td
  td width=17%
div align=center
  select name=order size=1
option value=ID selectedID/option
option value=ItemItem/option
option value=ColorColor/option
option value=SizeSize/option
  /select
/div
  /td
  td width=53%
div align=center
  select name=sort size=1
option value=ASC selectedAscending/option
option value=DESCDescending/option
  /select
/div
  /td
/tr

  /table
  /form
%
rsBeachwear.close();
ConnrsBeachwear.close();
%

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

Re: STOP-JSP

2001-10-23 Thread Panayotou, Michael

You can use return();

-Original Message-
From: Michi Reutter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 1:02 PM
To: [EMAIL PROTECTED]
Subject: STOP-JSP


how to stop e jsp?

I do a HTTP-redirect some times - and want to end the JSP, so the code
afterwards won't be executed!
I think System.exit() is a bad idea!

but what to do else?

thanks
michael

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

2001-10-23 Thread Panayotou, Michael

you can use return;

-Original Message-
From: Michi Reutter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 1:02 PM
To: [EMAIL PROTECTED]
Subject: STOP-JSP


how to stop e jsp?

I do a HTTP-redirect some times - and want to end the JSP, so the code
afterwards won't be executed!
I think System.exit() is a bad idea!

but what to do else?

thanks
michael

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

2001-10-02 Thread Panayotou, Michael



You 
have to setup the environment variable 
JAVA_HOME=your_jdk_directory

  -Original Message-From: Wo 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, October 02, 2001 
  4:28 PMTo: [EMAIL PROTECTED]Subject: access odbc 
  problem
  Hi everybody,
  
  I have the following error, dont really what to 
  make of it. I am trying to create a jsp form which connects to an Access db. I 
  have set up the odbc data souce in the control panel. does the error mean that 
  i configured the odbc data source wrongly? or apache? or tomcat (javaserver)? 
  
  
  would someone help? =)
  
  Tim
  
  
  
  Error: 500
  Location: /survey.jspInternal Servlet Error:javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at _0002fsurvey_0002ejspsurvey_jsp_0._jspService(_0002fsurvey_0002ejspsurvey_jsp_0.java:157)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
at sun.jdbc.odbc.JdbcOdbc.SQLSetStmtOption(JdbcOdbc.java:4560)
at sun.jdbc.odbc.JdbcOdbcStatement.setQueryTimeout(JdbcOdbcStatement.java:694)
at _0002fsurvey_0002ejspsurvey_jsp_0._jspService(_0002fsurvey_0002ejspsurvey_jsp_0.java:130)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)



Re: Error:Web server returned Error 500 (WAP browser)

2001-10-02 Thread Panayotou, Michael

Have you setup the environment variable JAVA_HOME=your_jdk_directory ?

-Original Message-
From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 4:24 PM
To: [EMAIL PROTECTED]
Subject: Error:Web server returned Error 500 (WAP browser)


  Hello there. I am using JSP in order to send some WML to a WAPbrowser.
I am writing th elogi in screen but every time I am clicking on the
login link I am getting the following error message:

Error:Web server returned Error 500 (WAP browser)

It seems that the content returned from the web server is not valid (or
at least I think this is what is going wrong). I am using
Jakarta-Tomacat as my JSP engine. The code that throws the error is the
following:

br/ Username: input name=loginUsername type=text emptyok=false
value=/
br/ Password: input name=loginPassword
type=password emptyok=false value=/
anchor
br/
Login
go href=%=
response.encodeURL(/process?action=loginfail= +
java.net.URLEncoder.encode(
response.encodeURL(/WAP/login/retryloginwml.jsp))  + success= +
java.net.URLEncoder.encode(response.encodeURL(/WAP/login/success.jsp)))
%/
   postfield name=userName
value=$loginUsername/
postfield name=password
value=$loginPassword/
/go
/anchor

Has this happened to anybody before? Any help or suggestions is deeply
appreciated.

  Thank you

  Panos



 mailto:[EMAIL PROTECTED]

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

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

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

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



Generating Word from JSP.. force Landscape orientation

2001-10-01 Thread Michael Vincent

Hello all.

 I have scoured the JSP and Servlet interest archives to no avail.  Please
tell me if this is possible.  I would like to generate output as MS-WORD ( I
know how to do this with setContentType ), however, is there something I can
do to tell it to open in Landscape orientation as opposed to it's default
of Portrait?  If you are in Word, this is set by going to File - Page
Setup - Paper Size, and then clicking on Landscape.  I don't think a macro
is the way to go.  Please let me know if and how this is possible.

Thanks a bunch.

-mike.

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

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



AW: why dispatch causes the nullpointEception?

2001-09-23 Thread Michael Jäger
Title: 



How 
should we know without seeing any code?

  -Ursprüngliche Nachricht-Von: A mailing list about 
  Java Server Pages specification and reference 
  [mailto:[EMAIL PROTECTED]]Im Auftrag von Eunum 
  ListenerGesendet: Sonntag, 23. September 2001 04:27An: 
  [EMAIL PROTECTED]Betreff: why dispatch causes the 
  nullpointEception?I use the dispatcher to 
  forward a page from servlet to jsp but it always throws the Nullpointer 
  Exception, what is wrong? I use the resin2.0.2.
  This message 
  was posted using eunumTo interact 
  with a real-time, threaded interface to this e-mail list, clickthe link 
  below:[EMAIL PROTECTED]=== 
  To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff 
  JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set 
  JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: 
  http://java.sun.com/products/jsp/faq.html 
  http://www.esperanto.org.nz/jsp/jspfaq.html 
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP 
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


AW: tomcat error 500

2001-09-21 Thread Michael Jäger

Well, the error message is quite explicite: You have a NullPointerException
in line 17 of your code, which is, as I suppose, in the if-statement of your
init()-method.
For some reason, at least one of your attributes sDB_URL, sDB_DRIVER etc. is
assigned no value, i.e., it is NULL, not !
To avoid such NullPointerExceptions, the advise has often been given on this
list, not to write 'if (sDB_URL.equals())', but 'if (.equals(sDB_URL))',
which will not throw an Exception, if sDB_URL is NULL. But in this case,
this is no solution to your problem, as your attribute does not equal ,
but NULL.
So your if-statement should read as:
if ((sDB_URL == null) || (sDB_DRIVER == null) || ... )

Hope this helps

Michael

-Ursprüngliche Nachricht-
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von Haering Christian
Gesendet: Freitag, 21. September 2001 14:14
An: [EMAIL PROTECTED]
Betreff: tomcat error 500


hi everybody

could anybody point me, y i'm getting this error?

Error: 500 Location: /servlet/IfI.querryInternal
Servlet Error:java.lang.NullPointerException
 at IfI.querry.init(querry.java:17)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
 at org.apache.tomcat.core.Handler.init(Handler.java:215)
 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

here is the code:
package IfI;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class querry extends HttpServlet {
  private static final String CONTENT_TYPE = text/html;
  /**Globale Variablen initialisieren*/
  public void init() throws ServletException {
super.init();
  String sDB_URL = getInitParameter(url);
  String sDB_DRIVER = getInitParameter(driver);
  String sDB_USER = getInitParameter(user);
  String sDB_PWD = getInitParameter(pwd);
if
((sDB_URL.equals())||(sDB_DRIVER.equals())||(sDB_USER.equals())||(sDB_
PWD.equals()))
{
  System.err.println(keine Datenbankparameter gefunden, kann
Datenbankverbindung nicht aufbauen);
}
  }
  /**Die HTTP-Anforderung Post bearbeiten*/
  public void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
String sLieferantenNummer = request.getParameter(lieferantenNummer);
String sLieferantenName = request.getParameter(lieferantenName);
String sEwaNummer = request.getParameter(ewaNummer);
String sBezeichnung = request.getParameter(bezeichnung);
String sLieferantBestellNummer =
request.getParameter(lieferantBestellNummer);
String sEinsatzOrt = request.getParameter(einsatzOrt);
if  ((sLieferantenNummer.equals())(sLieferantenName.equals())
(sEwaNummer.equals())(sBezeichnung.equals())
(sLieferantBestellNummer.equals())(sEinsatzOrt.equals()))
{
  gotoPage(querry.jsp, request, response);
}
  }
  private void gotoPage(String address, HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
  {
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(address);
dispatcher.forward(request, response);
  }
  /**Ressourcen bereinigen*/
  public void destroy() {
  }
}

___
Christian Häring
Siemens AG
AD AS OIL B16
Werner von Siemens Str. 50
92224 Amberg
mailto:[EMAIL PROTECTED]
Tel:+49 9621 80 3127
Fax:+49 9621 80 2274

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

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

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

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

Antwort: Why java.lang.StackOverflowError? man?

2001-09-20 Thread Balle Michael

Hi Rock,

please don't send only the error message. It is well known.

But also send your java code also but I think because there is a DB
involved that you don't close your ResultSet, Statement or Connection but
always open a new one for every statement.

Looking for your code


Michael

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

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



Re: Read me Java Mail List users

2001-09-16 Thread Michael Chelmowski

This is the website of a large private corporation. There may be a family
relation between them and Osama. If there is then you should bear in mind
that Osama bin Laden has been disowned by his family and is a Saudi exile.

Sorry for polluting the group

MIchael

-Original Message-
From: Frank Mancini [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 16, 2001 4:39 AM
To: [EMAIL PROTECTED]
Subject: Read me Java Mail List users


I think we should do something about this site

http://www.saudi-binladin-group.com/

_
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



AW: Free JSP Editor?

2001-09-11 Thread Michael Jäger

Try Jext http://www.jext.org/dev.html . Download the latest development
release 3.0pre7 (it is very stable).

-Ursprüngliche Nachricht-
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von Segador Corraliza, Jose
Abel [EES/ES]
Gesendet: Dienstag, 11. September 2001 14:37
An: [EMAIL PROTECTED]
Betreff: Free JSP Editor?


Hello everybody?

Is there any good and simple free JSP Editor? We don't want it to be
visual, we only need some support to create JSP pages, like colouring
reserverd words, ...

Thanks in advance.

Abel Segador.

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

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

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

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



AW: AW: Again urgent Porblem

2001-09-10 Thread Michael Jäger

Ok, so you are working on win98? On this platform the MySQl-Server usually
gets startet with 'winmysqladmin.exe'. After starting the server, the
traffic lights in the bottom right corner of your screen should turn green.
Click on the traffic lights an choose 'Show me'. 'Variables' shows (among
others) the port MySQL is listening to.

If this doesn't help you, send us the error message you are receiving.

Good luck!

Michael

-Ursprüngliche Nachricht-
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von Othmar Stehlik
Gesendet: Montag, 10. September 2001 17:30
An: [EMAIL PROTECTED]
Betreff: Re: AW: Again urgent Porblem


Hi

also your suggestion did not work, I´ll try again, but there nust be way to
find out the port, mysql is listening.
The only problem is jdbc, cause I  can execute SQL Commands on the Database.
Do you have any other suggestions?




 Are you sure, MySQL is listening on port 3360? The default is 3306 ...
 Anyway, the syntax reads:

 jdbc:mysql://localhost:3360/MovieCatalog

 If MySQL is listening on the default port, this would be sufficient:

 jdbc:mysql://localhost/MovieCatalog

 And since you are only connecting to localhost, you don't even have to
 specify a host. So this should be enough:

 jdbc:mysql:/data/MovieCatalog

 Hope this helps

 Michael


 -Ursprungliche Nachricht-
 Von: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]Im Auftrag von Vasudev Ram
 Gesendet: Freitag, 7. September 2001 19:13
 An: [EMAIL PROTECTED]
 Betreff: Re: Again urgent Porblem


 not sure if it'll help (don't know mysql), but try putting the (actual,
 not
 127..) IP address of the m/c.

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of Othmar Stehlik
 Sent: Friday, September 07, 2001 10:31 PM
 To: [EMAIL PROTECTED]
 Subject: Again urgent Porblem


 Hi

 Again, Win98 sucks, mysql does not work
 The Test Programm can load the JDBC Driver, but it cant Connect to the
 Database.
 This is my url for Connecting: jdbc:mysql:localost:3360//MovieCatalog
 On Win2k everything worked fine!
 I also tried it with jdbc:mysql:127.0.0.1:3360//MovieCatalog
 And insted of the localhost, I used the name of the machine.

 As anybody an idea?
 Thanx in advance!
 Othmar

 --
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net

 --
 GMX Tipp:

 Machen Sie Ihr Hobby zu Geld bei unserem Partner 11!
 http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


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

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


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

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


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

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


--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

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

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

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

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

AW: Again urgent Porblem

2001-09-07 Thread Michael Jager

Are you sure, MySQL is listening on port 3360? The default is 3306 ...
Anyway, the syntax reads:

jdbc:mysql://localhost:3360/MovieCatalog

If MySQL is listening on the default port, this would be sufficient:

jdbc:mysql://localhost/MovieCatalog

And since you are only connecting to localhost, you don't even have to
specify a host. So this should be enough:

jdbc:mysql:/data/MovieCatalog

Hope this helps

Michael


-Ursprungliche Nachricht-
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von Vasudev Ram
Gesendet: Freitag, 7. September 2001 19:13
An: [EMAIL PROTECTED]
Betreff: Re: Again urgent Porblem


not sure if it'll help (don't know mysql), but try putting the (actual, not
127..) IP address of the m/c.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Othmar Stehlik
Sent: Friday, September 07, 2001 10:31 PM
To: [EMAIL PROTECTED]
Subject: Again urgent Porblem


Hi

Again, Win98 sucks, mysql does not work
The Test Programm can load the JDBC Driver, but it cant Connect to the
Database.
This is my url for Connecting: jdbc:mysql:localost:3360//MovieCatalog
On Win2k everything worked fine!
I also tried it with jdbc:mysql:127.0.0.1:3360//MovieCatalog
And insted of the localhost, I used the name of the machine.

As anybody an idea?
Thanx in advance!
Othmar

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 11!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a

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

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

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

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

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

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



**ANNOUNCE: CORE J2EE[tm] PATTERNS Now Available!**

2001-08-28 Thread Michael Alread

**ANNOUNCE: CORE J2EE[tm] PATTERNS Now Available!**

Currently the number two best-selling computer book at Fatbrain.com and a
bestseller at Amazon.com, CORE J2EE[tm] PATTERNS is now available!

For those of you who have already ordered a copy, thank you for helping make
this title a bestseller!  If you have not ordered a copy, place your order
TODAY!

Fatbrain.com:
http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=0130648841vm=

Amazon.com:
http://www.amazon.com/exec/obidos/ASIN/0130648841/qid=998863573/sr=2-1/ref=aps_s
r_b_1_1/002-7996159-9938431

CORE J2EE PATTERNS:
BEST PRACTICES AND DESIGN STRATEGIES

By Deepak Alur, John Crupi and Dan Malks
Foreword by Grady Booch
A Sun Microsystems Press/Prentice Hall PTR book
ISBN: 0-13-064884-1

The primary focus of the book is on patterns, best practices, design strategies,
and proven solutions using the key J2EE technologies including JavaServer
Pages[tm] (JSP[tm]), Servlets, Enterprise JavaBeans[tm] (EJB[tm]), and Java[tm]
Message Service (JMS) APIs. Other ancillary technologies like JDBC[tm] and JNDI
are also discussed as relevant to their usage in these patterns. The J2EE
Patterns catalog with 16 patterns and numerous strategies is presented to
document and promote best practices for these technologies.  This book also
covers design strategies, bad practices and refactorings for the J2EE platform.

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

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



Re: Why won't my JSP page bean release Oracle cursor?

2001-08-01 Thread Panayotou, Michael



The 
reason is that you are using connection pooling so the actually connection 
doesn't released immediadely after the rs.close() or even the 
connection.close(). The actually connection remains active for Oracle in case 
for somebody else requests a connection.

  -Original Message-From: Keith Kwiatek 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 01, 2001 4:12 
  PMTo: [EMAIL PROTECTED]Subject: Why won't my JSP 
  page bean release Oracle cursor?
  
When I run the jsp page below, and then look at the Oracle cursor 
count with:select * form v$sysstat where name='opened cursors 
current'I see the cursor count jump, and linger long after the page 
has finished loading. Eventually the count drops, BUT I would like to 
know WHY the cursor count does not drop immediately after giving the 
rs.close and stmt.close ???I am using orion server with 
connection pooling, and oracle 8.1.6
%@ page language="java" import="java.sql.*" 
%jsp:useBean id="MACHINE" class="m" 
scope="page"/jsp:setProperty name="MACHINE" 
property="*"/% MACHINE.fetchMachines(); 
%htmlbodyTABLETRTDCODE/TDTDNAME/TDTDGROUP_ID/TD/TR% 
while (MACHINE.fetchRow()){ %TRTDa 
href="displayFormMACHINE.jsp?CODE=%=MACHINE.getCODE()%" 
%=MACHINE.getCODE()%/a/TDTD 
%=MACHINE.getNAME()%/TDTD 
%=MACHINE.getGROUP_ID()%/TD/TR% 
};%/TABLE/BODY/HTML@ 
include file="bot.html"; 
%import 
java.util.*;import java.sql.*;public class m extends sqlForm 
{private Statement stmt=null;private ResultSet rs;private 
String CODE="";private String NAME="";private String 
GROUP_ID="";public void cleanup() throws Exception {takeDown() 
};public m() throws Exception {makeConnection(); 
rs=null;CODE="";NAME="";GROUP_ID="";}public 
String 
getCODE(){return 
CODE;}public String 
getNAME(){return 
NAME;}public String 
getGROUP_ID(){return 
GROUP_ID;}public void setCODE( 
String CODE_set){if 
(CODE_set == null) CODE=""; else 
CODE=CODE_set.trim();}public void 
setNAME( String 
NAME_set){if (NAME_set == 
null) NAME=""; else 
NAME=NAME_set.trim();}public void 
setGROUP_ID( String 
GROUP_ID_set){if 
(GROUP_ID_set == null) GROUP_ID=""; else 
GROUP_ID=GROUP_ID_set.trim();}public 
int fetchMachines()throws 
Exception{stmt = 
myConn.createStatement();rs=stmt.executeQuery( "SELECT * FROM MACHINE 
ORDER BY CODE");return 0;};public boolean 
fetchRow()throws Exception{ if (rs.next()) 
{setCODE( (String) rs.getString("CODE"));setNAME( (String) 
rs.getString("NAME"));setGROUP_ID( (String) 
rs.getString("GROUP_ID"));rs.close();stmt.close();takeDown();}return 
false; }}; 
import 
java.sql.*;import java.io.*;import javax.sql.DataSource;import 
javax.naming.InitialContext;public abstract class 
sqlForm{private String myDriver = 
"oracle.jdbc.driver.OracleDriver";protected Connection 
myConn;public sqlForm() {}public void 
makeConnection() throws 
Exception{InitialContext ctx = new 
InitialContext();DataSource ds = (DataSource) 
ctx.lookup("jdbc/ccfopDS");myConn = 
ds.getConnection();System.out.println("Connection 
made:--ccfop " + myConn);}public abstract void 
cleanup() throws Exception;public void 
takeDown() throws Exception{System.out.println("DB 
connection 
closed");myConn.close();}}


Re: JSP JDBC bean doesn't seem to release cursor !?

2001-07-31 Thread Panayotou, Michael



A
proper value for open_cursors is about 800 because Oracle uses a lot of
recursive SQL statements in the server.

  -Original Message-From: Keith Kwiatek
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 31, 2001 3:03
  PMTo: [EMAIL PROTECTED]Subject: Re: JSP JDBC
  bean doesn't seem to release cursor !?
  My cursor limit is set to 200. I do not
  think raising the cursor limit is the problem.
  
  Correct me if I am wrong, by I if a execute a result set
  close ( rs.close() ) and a statement close( stmt.close() ) this should
  release the cursor. It should never get anywhere near the cursor limit.
  ??!!??
  
  Keith
  
  
  
  
- Original Message - 
From:
Zahid Rahman 
To: [EMAIL PROTECTED] 
Sent: Monday, July 30, 2001 4:44
PM
Subject: Re: JSP JDBC bean doesn't seem
to release cursor !?

If memory serves me correctly 

In the tnsnames file for oracle there is
default cursor limit set to 50.

you need to increase the limit.

Zahid


  - Original Message - 
  From:
  Keith
  Kwiatek 
  To: [EMAIL PROTECTED] 
  Sent: Monday, July 30, 2001 9:32
  PM
  Subject: JSP JDBC bean doesn't seem
  to release cursor !?
  
  
  Hello,
  
  I am running oracle 8.1.6, and the 1.5.2 orion
  server.
  
  I am using connection pooling.
  
  I am using a JSP page with a jdbc java
bean.
  
  Everything works fine, except if I execute about 40-50
  rapid executions of the JSP page, I run out of cursors.
  
  I have rs.close, stmt.close commands at the end of each
  SQL call, BUT I see the cursor count climb with each
  execution.
  
  The cursor count does go down with time, - I imagine the
  cursor times out. Also I notice that once the jsp page executes, I will
  not see the db connection close until a few minutes later, even though I
  have issued conn.close() explictedly (?) !
  
  Can anyone give me some insight into what may be going
  on?
  
  Keith
  


Re: JSP JDBC bean doesn't seem to release cursor !?

2001-07-30 Thread Panayotou, Michael



You
must increase the init.ora parameter open_cursors

  -Original Message-From: Keith Kwiatek
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 30, 2001 11:33
  PMTo: [EMAIL PROTECTED]Subject: JSP JDBC bean
  doesn't seem to release cursor !?
  
  Hello,
  
  I am running oracle 8.1.6, and the 1.5.2 orion
  server.
  
  I am using connection pooling.
  
  I am using a JSP page with a jdbc java bean.
  
  Everything works fine, except if I execute about 40-50 rapid
  executions of the JSP page, I run out of cursors.
  
  I have rs.close, stmt.close commands at the end of each SQL
  call, BUT I see the cursor count climb with each execution.
  
  The cursor count does go down with time, - I imagine the
  cursor times out. Also I notice that once the jsp page executes, I will not
  see the db connection close until a few minutes later, even though I have
  issued conn.close() explictedly (?) !
  
  Can anyone give me some insight into what may be going
  on?
  
  Keith
  


Re: OFF-TOPIC: ResultSet.getDate()

2001-07-30 Thread Panayotou, Michael

try getTimeStamp

-Original Message-
From: Atilio Ranzuglia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 2:57 AM
To: [EMAIL PROTECTED]
Subject: OFF-TOPIC: ResultSet.getDate()


Sorry everyone: can anyone help me here?

The following line:

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

gives me the following:

date = '2000-08-20'

The hour and minutes are missing.

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

Thanks a lot

Atilio

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

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

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

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

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



Re: Need your help on stored procedure in oracle

2001-07-24 Thread Panayotou, Michael

Here is an example
private void prepareData(
Connection p_dbConnection
,   String p_invr_cd
)
throws AccountStockBalanceException{
String all = new String(%);
int i;
CallableStatement cstmt = null;

try{
/*
function prepare_rpt_hldgs_data(
in_invr_cd  in  varchar2
--  ,   in_acc_cd   in  varchar2
--  ,   in_prcp_cd  in  varchar2
--  ,   in_sec_isin_cd  in  varchar2
--  ,   in_usr_id   in  varchar2
--  ,   in_mdl  in  varchar2
--  ,   in_sessionidin  number
,   out_last_upd_date   out date
,   out_invr_chk_dgtout varchar2
,   out_acc_cd  out varchar2
,   out_acc_chk_dgt out varchar2
,   out_invr_dscout varchar2
,   out_invr_nm out varchar2
,   out_invr_fthout varchar2
,   out_results out varchar2
*/
cstmt = p_dbConnection.prepareCall(
{? = call
axwebpgk.prepare_rpt_hldgs_data(?,?,?,?,?,?,?,?,?)}
 );
cstmt.registerOutParameter(1,
java.sql.Types.VARCHAR);//  TRUE/FALSE

cstmt.setString(2,p_invr_cd);   //  Investor_cd
//  cstmt.setString(3,all); //
ACC_CD
//  cstmt.setString(4,all); //
PRCP_CD
//  cstmt.setString(5,all); //
SEC_ISIN_CD
//  cstmt.setString(6,new
String(AXIAWEB)); //  USER_ID
//  cstmt.setString(7,new
String(WEB)); //  MDL
//  cstmt.setString(8,p_invr_cd);   //
MERIDA
cstmt.registerOutParameter(3, java.sql.Types.DATE);
cstmt.registerOutParameter(4, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(5, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(6, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(7, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(8, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(9, java.sql.Types.VARCHAR);
cstmt.registerOutParameter(10, java.sql.Types.VARCHAR);
i = cstmt.executeUpdate();
if(cstmt.getString(1).equals(FALSE)){

//System.out.println([axwebpgk.prepare_rpt_hldgs_data]: +
cstmt.getString(10));

StringUtil.reportError(ERROR,getModuleInfo()+.prepareData(),1:+ cstmt.
getString(10));
throw new
AccountStockBalanceException(cstmt.getString(10));
}
this.setInvr_cd(p_invr_cd);
this.setLast_upd_dt(cstmt.getTimestamp(3));
this.setInvr_chk_dgt(cstmt.getString(4));
this.setAcc_cd(cstmt.getString(5));
this.setAcc_chk_dgt(cstmt.getString(6));
this.setInvr_dsc(cstmt.getString(7));
this.setInvr_nm(cstmt.getString(8));
this.setInvr_fth(cstmt.getString(9));

} catch(Exception e){
//System.out.println([axwebpgk.prepare_rpt_hldgs_data]: +
e);

StringUtil.reportError(ERROR,getModuleInfo()+.prepareData(),2:+
e.toString());
throw new AccountStockBalanceException(e.toString());
} finally{
try{
if(cstmt != null){
cstmt.close();
}
} catch(Exception e){
//System.out.println(e);

StringUtil.reportError(ERROR,getModuleInfo()+.prepareData(),3:+
e.toString());
}
}
}

-Original Message-
From: lancelot [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 10:33 AM
To: [EMAIL PROTECTED]
Subject: Need your help on stored procedure in oracle


Excuse me,
   who know how to use a sql clause to excute a stored procedure(in oracle)
with out parameter and display the out variable?

   thanks

Lancelot

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

 http://java.sun.com/products/jsp/faq.html
 

iPlanet WebServer Configuration

2001-07-20 Thread Michael Santos

I'm facing a problem while trying to configure the iPlanet WebServer 4.0
Enterprise Edition. I even know where the docs are, but I really don't have
the time to read it all. Could anyone simply tell me how to map a physical
path to the logical URL path and how to use JSPs with it?

Thanx in advance.


Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Analista/Consultor
Moderador SouJava - www.soujava.org.br

_
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: iPlanet WebServer Configuration

2001-07-20 Thread Michael Santos

But the actually my problem is NOT KNOWING HOW TO DEVELOP JSP AND DEPLOY
THAN IN ANY WEBSERVER, but DEPLOYOING IT SPECIFICALLY INTO iPlanet.

Do u think u can help me out?

Thanx again.


Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Analista/Consultor
Moderador SouJava - www.soujava.org.br


From: King Maurice [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: iPlanet WebServer Configuration
Date: Fri, 20 Jul 2001 14:33:10 -0400

Use jbuilder or other tool
also jsp should not be compile, they should be used for presentation, your
going to run into problems later on, trust me, I have them all.


- Original Message -
From: Michael Santos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 2:32 PM
Subject: Re: iPlanet WebServer Configuration


  Thanx, but actually I also need to know how to configure the JDK inside
the
  WebServer in order to make it compile my JSPs.
 
  Would you know how to do it?
 
  Thanx again
 
  
  Michael Nascimento Santos
  Sun Certified Programmer for the Java 2 Platform
  Analista/Consultor
  Moderador SouJava - www.soujava.org.br
  CPM Sistemas - www.cpm.com.br
 
 
 
  From: King Maurice [EMAIL PROTECTED]
  Reply-To: A mailing list about Java Server Pages specification and
  reference [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: iPlanet WebServer Configuration
  Date: Fri, 20 Jul 2001 13:44:39 -0400
  
  easy...goto config manager then content mgmt
  goto add doc dir
  map your jsp directory as a sundirectory from the doc root.
  
  template = jsp
  
  
  - Original Message -
  From: Michael Santos [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, July 20, 2001 1:12 PM
  Subject: iPlanet WebServer Configuration
  
  
I'm facing a problem while trying to configure the iPlanet WebServer
4.0
Enterprise Edition. I even know where the docs are, but I really
don't
  have
the time to read it all. Could anyone simply tell me how to map a
  physical
path to the logical URL path and how to use JSPs with it?
   
Thanx in advance.
   

Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Analista/Consultor
Moderador SouJava - www.soujava.org.br
   
_
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
   
  
 
 ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
  
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 
 
  _
  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://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.html
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
   http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
 

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

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


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

Re: iPlanet WebServer Configuration

2001-07-20 Thread Michael Santos

Comments inside the message...

[Edited for clarity...]


From: Rice, David [EMAIL PROTECTED]
Subject: Re: iPlanet WebServer Configuration

--

-Original Message-
From: King Maurice [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: iPlanet WebServer Configuration


Use jbuilder or other tool
also jsp should not be compile, they should be used for presentation, your
going to run into problems later on, trust me, I have them all.


I think most of u didn`t get me?

The problem is:

- I KNOW HOW TO MODEL A SYSTEM TO USE JSP/SERVLETS/EJB
- I`VE EXPERIENCE DEPLOYING IT ON TOMCAT, WEBLOGIC AND THE RI
- I just don`t know HOW TO CONFIGURE iPLANET TO MAKE MY SITE WORK. I DON`T
HAVE THE TIME TO LEARN IT, REALLY cos I still have lots of work to do and I
know that if I don`t waste anytime trying to find out how to configure
iPlanet (what means EVEN SCANNING THE DOCS FOR INFO) I`ll succeed.

Sorry if I am not sounding polite, but I`m stressed due to it AND English
isn`t my native language, so knowing exactly how polite I`m is extremley
hard. Could u help me in anyway?

Thanx,


Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Analista/Consultor
Moderador SouJava - www.soujava.org.br

_
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: iPlanet WebServer Configuration

2001-07-20 Thread Michael Santos

I forgot to tell you! I have to configure MY OWN JDK!!!


Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Analista/Consultor
Moderador SouJava - www.soujava.org.br



From: Rice, David [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: iPlanet WebServer Configuration
Date: Fri, 20 Jul 2001 15:28:14 -0400

Actually, for those situations where you don't wish to create a specific
servlet or bean, but instead include scripting code within the .jsp file,
the .jsp file is compiled into a servlet and stored in iPlanet's cache
structure. I generally use either servlets or beans myself as well.
However, if it is a page that just needs to do simplistic processing, I do
stick the script right in the .jsp file for convenience, more than
anything.

Concerning Micheal's question about configuring for the JDK, and speaking
about NT specifically, just make sure that you have both the JSP and
Servlet checkboxes checked (on the Servlets tab), and choose the JDK radio
button on the Configure JDK/JRE page. On this latter page, enter the
absolute URL to your JDK files (be sure to use a forward slash / versus a
back-slash \--iPlanet doesn't like backslashes much... ;)). The URL that
iPlanet chooses for it's JDK/JRE installation default is:
whatever_drive_you_installed_to:/Netscape/Server4/bin/https. In my case,
for instance, this path is D:/Netscape/Server4/bin/https. If this is your
JDK path, you can safely let iPlanet default the runtime and library paths.
You can also map this path to any other JDK you have installed yourself as
long as it is the right version for you OS according to iPlanet. In that
case, you will also need to configure the runtime and library paths
yourself.

And one last thing: trust me, you'll waste more time putzing around trying
to figure it out without the docs than you will if you just break down read
them!  You WILL need to read the docs sooner or later if you plan on doing
anything meaningful--get over it... ;).

Cheers,
--
Dali
--

-Original Message-
From: King Maurice [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: iPlanet WebServer Configuration


Use jbuilder or other tool
also jsp should not be compile, they should be used for presentation, your
going to run into problems later on, trust me, I have them all.


- Original Message -
From: Michael Santos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 2:32 PM
Subject: Re: iPlanet WebServer Configuration


  Thanx, but actually I also need to know how to configure the JDK inside
the
  WebServer in order to make it compile my JSPs.
 
  Would you know how to do it?
 
  Thanx again
 
  
  Michael Nascimento Santos
  Sun Certified Programmer for the Java 2 Platform
  Analista/Consultor
  Moderador SouJava - www.soujava.org.br
  CPM Sistemas - www.cpm.com.br
 
 
 
  From: King Maurice [EMAIL PROTECTED]
  Reply-To: A mailing list about Java Server Pages specification and
  reference [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: iPlanet WebServer Configuration
  Date: Fri, 20 Jul 2001 13:44:39 -0400
  
  easy...goto config manager then content mgmt
  goto add doc dir
  map your jsp directory as a sundirectory from the doc root.
  
  template = jsp
  
  
  - Original Message -
  From: Michael Santos [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, July 20, 2001 1:12 PM
  Subject: iPlanet WebServer Configuration
  
  
I'm facing a problem while trying to configure the iPlanet WebServer
4.0
Enterprise Edition. I even know where the docs are, but I really
don't
  have
the time to read it all. Could anyone simply tell me how to map a
  physical
path to the logical URL path and how to use JSPs with it?
   
Thanx in advance.
   

Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Analista/Consultor
Moderador SouJava - www.soujava.org.br
   
_
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Re: iPlanet WebServer Configuration

2001-07-20 Thread Michael Santos

My client wants this project to be delivered next week and we still have to
code. I`ve another project with him, but it`ll take 3 WEEKS. THIS IS THE
TIME I`M GOING TO USE to REALLY learn how to configure it.

I won`t be responsible for the performance tuning, number os threads, and
etc. I really need something more practical. It`s like: quality = what the
client understands by quality. I`ve warned him about this. He decided to do
it this way. In another context, I totally agree with u and I`m going to
make learn this for my personal benefit in the next 3 weeks. But I really
need it KNOW.

My system works perfectly in Tomcat/J2EE RI and in Weblogic. It has a
extremely good performance there - if I had to choose, I`d go for Weblogic,
btw - and iPlanet is 5 times worst than Weblogic - what is my performance of
how much it may degrade and still be acceptable.

I have to do it for now. Could you please, please help me in this context?

Many, many, many thanks


Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Analista/Consultor
Moderador SouJava - www.soujava.org.br



From: King Maurice [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: iPlanet WebServer Configuration
Date: Fri, 20 Jul 2001 15:31:16 -0400

True, I agree to read the documents + playing around what each options
does.

Then you will get a full experience on how to configure iplanet.


- Original Message -
From: Rice, David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 3:28 PM
Subject: Re: iPlanet WebServer Configuration


  Actually, for those situations where you don't wish to create a specific
servlet or bean, but instead include scripting code within the .jsp file,
the .jsp file is compiled into a servlet and stored in iPlanet's cache
structure. I generally use either servlets or beans myself as well.
However,
if it is a page that just needs to do simplistic processing, I do stick the
script right in the .jsp file for convenience, more than anything.
 
  Concerning Micheal's question about configuring for the JDK, and
speaking
about NT specifically, just make sure that you have both the JSP and
Servlet
checkboxes checked (on the Servlets tab), and choose the JDK radio button
on
the Configure JDK/JRE page. On this latter page, enter the absolute URL
to
your JDK files (be sure to use a forward slash / versus a back-slash
\--iPlanet doesn't like backslashes much... ;)). The URL that iPlanet
chooses for it's JDK/JRE installation default is:
whatever_drive_you_installed_to:/Netscape/Server4/bin/https. In my case,
for instance, this path is D:/Netscape/Server4/bin/https. If this is your
JDK path, you can safely let iPlanet default the runtime and library paths.
You can also map this path to any other JDK you have installed yourself as
long as it is the right version for you OS according to iPlanet. In that
case, you will also need to configure the runtime and library paths
yourself.
 
  And one last thing: trust me, you'll waste more time putzing around
trying
to figure it out without the docs than you will if you just break down read
them!  You WILL need to read the docs sooner or later if you plan on doing
anything meaningful--get over it... ;).
 
  Cheers,
  --
  Dali
  --
 
  -Original Message-
  From: King Maurice [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 20, 2001 1:33 PM
  To: [EMAIL PROTECTED]
  Subject: Re: iPlanet WebServer Configuration
 
 
  Use jbuilder or other tool
  also jsp should not be compile, they should be used for presentation,
your
  going to run into problems later on, trust me, I have them all.
 
 
  - Original Message -
  From: Michael Santos [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, July 20, 2001 2:32 PM
  Subject: Re: iPlanet WebServer Configuration
 
 
   Thanx, but actually I also need to know how to configure the JDK
inside
  the
   WebServer in order to make it compile my JSPs.
  
   Would you know how to do it?
  
   Thanx again
  
   
   Michael Nascimento Santos
   Sun Certified Programmer for the Java 2 Platform
   Analista/Consultor
   Moderador SouJava - www.soujava.org.br
   CPM Sistemas - www.cpm.com.br
  
  
  
   From: King Maurice [EMAIL PROTECTED]
   Reply-To: A mailing list about Java Server Pages specification and
   reference [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: iPlanet WebServer Configuration
   Date: Fri, 20 Jul 2001 13:44:39 -0400
   
   easy...goto config manager then content mgmt
   goto add doc dir
   map your jsp directory as a sundirectory from the doc root.
   
   template = jsp
   
   
   - Original Message -
   From: Michael Santos [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, July 20, 2001 1:12 PM
   Subject: iPlanet WebServer

Re: Oracle JDBC Bug?

2001-07-18 Thread Panayotou, Michael

I had a similar problem with Oracle JDBC driver 8.1.7. You have to get
Oracle JDBC driver 8.1.7.1

-Original Message-
From: Mattias Jiderhamn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Oracle JDBC Bug?


 Hi,
   I use Oracle 8.1.7 as my background database, classes12.zip is it's
JDBC driver. It's a type 4
 JDBC 2.0 compatible driver. It's sound good?!
   BUT, I meet a problem on execute SQL clause. When my pass a dynamic
built SQL clause (654
 characters long) to Statement.executeUpdate, the driver report the
clause is wrong. When I run the
 clause in SQL*PLUS, it's correct.
 So, I think the JDBC driver with a SQL clause length limitation?
 It's not mantained in any Oracle document.

Have you made sure you do not end your clause with ";" from inside Java?
I have some weak memory that I ran into that problem sometime (with
Oracle).

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

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

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

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



Re: Need your help on request.getParameter and Chinese encoding.

2001-07-11 Thread Panayotou, Michael

You have to translate the parameter from one character set to another. for
example :

String myparam = new
String(request.getParameter(name).getBytes(iso-8859-1),iso-8859-7);



-Original Message-
From: lancelot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 10:48 AM
To: [EMAIL PROTECTED]
Subject: Need your help on request.getParameter and Chinese encoding.
Importance: High


Excuse me,
I need help. One form field of my jsp contain Chinese Characters. and I
post the form to my servlet, and my servlet insert the imformation into my
Oracle DB. my question is how to get the request.getParameter(name) in
Chinese character encoding and insert it properly into Oracle DB. I need you
help very urgently, Thanks a lot.

Lancelot

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

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

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

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



  1   2   3   4   >