Port access from a web application

2002-03-15 Thread Phil Swenson
Is there a way within a web application (not a servlet or JSP) to find out what port the application is configured to run in Tomcat (without parsing the server.xml file)??? This is for the purpose of building links that will be embedded in an email (http://blahblah.com:8080)

Struts output in Tomcat Console Window

2002-03-04 Thread Phil Swenson
Whenever you use Struts you get all this messy output in the console window when you start Tomcat Stuff like: Pop org.apache.struts.action.ActionMapping New org.apache.struts.action.ActionMapping Set org.apache.struts.action.ActionMapping properties New org.apache.struts.action.ActionForward

Re: using session information across different web applications

2001-02-26 Thread Phil Swenson
what about sessions across webservers? Is this possible? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some

Re: handling Query strings

2001-02-24 Thread phil swenson
go to servlets.com and download the oreilly servlet package. it has a nice parameter parser that will handle the cases you are looking at. - Original Message - From: "Venkat" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 24, 2001 5:41 PM Subject: handling Query strings

Include Page Performance - GURU question

2001-02-24 Thread phil swenson
I ran a quick test on the performance of using the "include page" tag versus "include file" tag. Using ServletExec I found include files to be about 200 times faster Include pages are a much more elegant approach than include files, but the question is does the elegance outweigh the

session/servlet container question

2001-02-01 Thread Phil Swenson
Do any of the appserver or servlet container products support maintaining sessions across multiple webservers???...that is, I would set up our load balancer so it didn't need to maintain the connection/session on one specific machine, it could bounce around to the fastest one at that moment. To

Serving images from a database

2001-01-17 Thread Phil Swenson
I have images that are stored in a database which I wish to serve over a web page. Someone want to point me in the right direction? Surely I don't need to pull the image from the DB and save to diskit seems I should be able to use a JSP or servlet to retrieve and display.

Re: Performence about Resin

2000-12-19 Thread Phil Swenson
Do you have any problems with the IIS service not restarting when using resin? We are using ServletExec and IIS hoses about 20% of the time when I restart the service. ServletExec requires an IIS restart when you change java class files. You using IIS 4.0 or 5.0? THanks - Original

Webservers/Servlet Contianers on NT

2000-12-18 Thread Phil Swenson
Any advice on which is the best webserver/Servlet container combo to run for Win2K? We are running ServletExec 3.0 on Win2K with IIS5.0 right now. We aren't satisfied with the results. I don't know whether it's SE or IIS, but the stinkin' IIS service hangs way too often when we have to restart

Re: help on CallableStatement

2000-12-18 Thread Phil Swenson
Uhh, this is not a JSP question, it's a database question. You really shouldn't be embedding SQL in your JSPs. Write a bean and call the bean from your JSP. That will make it much easier to debug as well... I personally don't recommend using stored procs anyway. Embedding SQL in Java code is

POSTing to a JSP from a Java class - Getting desperate!

2000-05-25 Thread Phil Swenson
This is actually close to being OT, but I think many are interested in how to do this. I'm trying to post to a JSP from a Java class. I absolutely can't get the thing to work. The post is always completely empty. Here is my code: URL url = new URL("http://www.blah.com/blah.jsp");

Synchronizing static methods called from JSPs? Do I need to?

2000-04-28 Thread Phil Swenson
If I have a static method I'm calling from a JSP such as: public static String cleanString(String s, String validCharSet) Do I need to synchronize it? I'm assuming I don't unless it accesses static data. Is this correct? Thanks!

calling a JSP form a JSP

2000-04-15 Thread Phil Swenson
What is the best method for calling another JSP from a JSP? I don't want to redirect and I don't care about the output. The following works, but I thought there might be a simpler method: URL url = new URL("http://blah.com/cp/blah.jsp?parm=" + param); URLConnection connection =

Testing MultiPart Request U/L

2000-03-27 Thread Phil Swenson
Anyone know of a tool that can be used to stress test a multipart request upload?? I'm using Jason Hunter's library. Thanks! And in general, anyone have recommendations on web site stress testing tools (must support posts)???

Validation patterns

2000-03-21 Thread Phil Swenson
I'm curious as to what kind of patterns people are using for data validation in JSPs? I assume most would have beans to the validation... say you are taking credit card information for an order (CC #, CC Expiration date, billing address, email). Would you have the bean throw an expection to the

Reporting with JSPs

2000-03-09 Thread Phil Swenson
I'm curious - what are the common ways of doing HTML reporting against java classes? The type of data I want to display on my reports can change a lot so it seems like creating a bunch of classes to hold all the data for a specific report is not the way to go...but what is? I'll use a very

Re: MS SQL Server JDBC Driver

2000-02-05 Thread Phil Swenson
You definitely don't want the SQL Server 7 JDBC/ODBC driver for serious apps. It is single threaded so performance quickly degrades. It's also pretty buggy. I had a lot of problems with it and switched to a type 4 driver. We use the inet driver, but there are many out there: jturbo, weblogic,

Re: SSL

2000-02-01 Thread Phil Swenson
- Original Message - From: Richard Vowles [EMAIL PROTECTED] To: Phil Swenson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 01, 2000 12:59 AM Subject: Re: SSL What web server are you using? - Original Message - From: Phil Swenson [EMAIL PROTECTED] To: [EMAIL

Re: SSL

2000-02-01 Thread Phil Swenson
Sorry, there was a typo in my original msg so it may have been a bit unclear... I want to do an HTTPS POST to the bank's credit card server. I don't think my web server (IIS) does anything for me on this... We can use the web server's SSL capibility to take the order, but we also have to

SSL

2000-01-31 Thread Phil Swenson
What do people reccommend for SSL (ie posint to a credit card system at a bank for credit card auth) on a web site? Sun has a reference implementation of SSL - I guess it's the same thing you get when you buy J2EE, right? Of course I can't find any info on J2EE pricing on Sun's site. RSA wants

Forms with ENCTYPE=multipart/form-data - new ?

2000-01-24 Thread Phil Swenson
Has anyone dealt with stopping posts on ulta-low speed uploads? We've seen 200 bit per second upload transfers before - that takes a LONG time on a 5 meg upload. does the class deal with the post being cancelled in the middle well? Thanks to Jason for writing the classshould save a lot of

Re: null in HTML fields plus other stuff

2000-01-21 Thread Phil Swenson
I personally don't allow nulls for most things...I have a little utility method that blanks nulls (StringUtil.blankNull(String s)) that I call in all my "set" methods in my Java classes. Using this method you will just be printing empty strings and won't see any "null" in your presentation.

Session mechanism

2000-01-14 Thread Phil Swenson
For JSP/servlet sessions, what is the mechanism? Is it setting a cookie to do the sessions? (I'm using JRun if that matters) === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be

import problem

2000-01-10 Thread Phil Swenson
I have code in a package that I'm trying to import into a JSP using JRun on IIS. The class I'm trying to import is "com.cafepress.util.StringUtil". Here is the code: HTML BODY %@ page import="com.cafepress.util.StringUtil" % % String b = "hello"; b = StringUtil.doubleChar('h', b);

Re: import problem

2000-01-10 Thread Phil Swenson
OK, forget it. All I had to do was stop the JRun service and restart it and then it picked up the class path. Stupid me - Original Message - From: Phil Swenson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 10, 2000 3:24 PM Subject: import problem I have code

Re: ODBC error

1999-12-16 Thread Phil Swenson
You've probably got a "ResultSet result" and are calling something like "result.getInt ("INT_COL")you need to call "result.next()" before the first time you try to access the data. - Original Message - From: Rathinam Manikodi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Hackers - how to stop?

1999-12-07 Thread Phil Swenson
Hackers can write bots to, for instance, hit an order page and submit false data over and over using a session for every hit. Eventually the system will run out of sessions. I'm thinking of using JSPs calling beans that use JDBC for the database interaction...how do I deal with the problem I

Servlet deployment

1999-12-03 Thread Phil Swenson
This isn't a strictly JSP question: if you have multiple web servers for scalability, where are you storing your JSPs and Servlets (or for that matter your HTML data)? Are you duplicating the files across all your servers? Do you store your files on a network drive that all the web servers

JRun - Simple Question.

1999-12-02 Thread Phil Swenson
I'm a servlet newbie and am trying out JRun on IIS. I got a simple JSP with inline Java running, but I haven't been able to get a servlet to run. I took a simple example from a servlet book(Java Servlets by Karl Moss), copied the servlet into my www.blah.com/servlet directory. I copied the

Jrun/IIS - Figured it out

1999-12-02 Thread Phil Swenson
Ok, I called Allaire and we figured out the problem. I didn't have the virtual Scripts directory for my site. It was that simple. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP