Re: request dispatcher problem

2002-06-08 Thread Rick Reumann
On Sunday, June 9, 2002, 12:48:51 AM, Duffey, Keven wrote: DK> However, I love to "propose" the MVC approach, like Struts or my DK> own mvc framework, theseus (www.theseus.org). It is quite a bit DK> easier to have everything go through a single controller servlet, DK> which dispatches to an appr

odd behavior of JSP output to Word in IE ?

2002-05-23 Thread Rick Reumann
Are any of you aware with any peculiarities in way HTML content would display in Word (within IE) on some machines and then in others it ends up trying to render the html as just source code with the html tags showing. The odd thing is on some of these machines they said it used to work, which mak

Re: R: R: R: What are the advantages of the servlets and JSP pages?

2002-05-11 Thread Rick Reumann
On Thursday, May 9, 2002, 5:44:47 AM, Luca Ventura wrote: LV> Yes, I understand exactly what you say: Presentation in JSP and LV> Business in Servlets. LV> The problem is: let's suppose I want to implement a servlet for Business LV> logic. How can I recall it in a JSP page? Actually the bus

really stumped

2001-09-05 Thread Rick Reumann
This is weird. I have a servlet that forwards me to a page. Normally the page was working fine. However now I have some hidden form elements (actually a long list of them) that are created dynamically from an array populated in the servlet. The weird thing is that unless I slow down the loop that

Re: How to show a directory structure on my JSP

2001-08-28 Thread Rick Reumann
To get the list of all files in a directory import java.io.* and then in a try/catch: File directory = new File( "directoryPath" ); String[] listOfFilesInDirectory = directory.list(); Now you have a String array of all the files and directories within the directory passed into the new File() con

Re: Copying files in java

2001-08-27 Thread Rick Reumann
Or you could try something like (note: error handling in this quick example isn't ideal and also if your file is a simple txt file there are other ways to do it more efficiently ) import java.io.*; public class FileMove { public static void main( String[] args ) { try {

A redirect issue?

2001-08-21 Thread Rick Reumann
Has anyone ever experienced extremely slow redirect issues using NS 4.08 the stand-alone browser? It hangs forever on any redirects using JRun app server and JRun's default web server. Works fine under IE and NS full version. I'm not terribly concerned with this unless it's possible I'm doing some

inside of an include

2001-07-20 Thread Rick Reumann
This is a simple question I'm sure and I've checked the archives and it seems like the statement below should work: However the above isn't working. Can you not use scriplets like that inside of includes? Thanks for any help. Rick -- I guess more bad things have been done in the name of prog

cont: Best way to load up a connection pool?

2001-07-05 Thread Rick Reumann
servletContext or would it be gone since the jsp page in step2 did not have the ConnectionManager defined anywhere??? Thanks so much for any help. Rick > Rick Reumann wrote: > > > I apologize if this is too basic a question for this list. If so you feel free to >flame me. &g

Best way to load up a connection pool?

2001-07-05 Thread Rick Reumann
I apologize if this is too basic a question for this list. If so you feel free to flame me. First off, if the design issues are bad here to start with please tell me. Anyway say I have a connection pool ( ConnectionManater.java ). Then I also have several different classes that have methods tha

Re: stumped on this redirect

2001-03-20 Thread Rick Reumann
, at 20:30, Jeff Sahol wrote: > Is getContentLength() returning -1 by chance? That's what it's > supposed to do when the length is unknown. You may have to > getInputStream and read it in or something to determine the actual > length. > > > 3/19/2001 1:09:17 PM, Rick Re

stumped on this redirect

2001-03-19 Thread Rick Reumann
I'm really stumped here and would love some help I have a form that is submitting multipart/form-data. (user browses and selects a file from his/her drive). The problem is in this servlet it sumbits to. All I want to do is test for the content length and if greater than a certain size, cause

continued problem. why redirect in this catch not working?

2001-03-08 Thread Rick Reumann
olve your problem then create one test html > page (in same directory) and redirect request to that page... > > Nishit > > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 08, 2001 4:49 PM > To: [EMAIL PROTECTED] > Subject: w

why redirect in this catch not working?

2001-03-08 Thread Rick Reumann
This is puzzling me. This happens be in a servlet that I modified. In the code if a user tries to upload a file that is larger than the max file size that is set in the servlet it throws an IO Exception. The problem is in the catch I can't seem to redirect the user to a new page (or print to the s

SAP / Talk ?

2001-02-15 Thread Rick Reumann
Is anyone out there using the SAP Buisness Connector to bring their SAP data into Java web applications? If so, what do you think of it? Also,has anyone tried Backsoft's Talk ? Thanks for any info, Rick === To unsubscribe: m

Re: syntax checker

2001-01-10 Thread Rick Reumann
When you run the code sweeper in JRun studio it will format the HTML and leave the JSP alone. You could download it at allaire.com. On 10 Jan 2001, at 8:28, Daniel Lynn wrote: > In an attempt at some quality control, my company recently picked up a > program that runs through HTML and checks syn

Re: request.getParameter

2000-08-30 Thread Rick Reumann
In the page you are calling: String B = null; if ( request.getParameter("B") != null ) { B = request.getParameter("B"); } This will keep String B as null in your page if nothing is passed over for the value of "B". Rick On 30 Aug 2000, at 13:55, sumit shah wrote: > Hi, > i am passing

from one server to another ???

2000-08-30 Thread Rick Reumann
I'm stumped here. I want to be able to run this class from a jsp page that will pull a file from one server and ftp it to another server. I can get the following code to work fine when I simply want to read a file from the server where this java code is located and upload it to a new server. For s

Re: (Ignore / solved )getProperties (more help)

2000-08-23 Thread Rick Reumann
all set. I was an idiot. Vishu helped me. don't bother replying. On 23 Aug 2000, at 9:41, Rick Reumann wrote: > This still is not working. In the following you'll see three very > short pieces of code. What I don't understand is how come I can not > use to pull >

getProperties (more help)

2000-08-23 Thread Rick Reumann
This still is not working. In the following you'll see three very short pieces of code. What I don't understand is how come I can not use to pull stuff out of a session bean? It pulls the information out of the bean but these values were not correctly updated from the previous page that has reque

request/session ?

2000-08-22 Thread Rick Reumann
This is really puzzling me.. Is there a way I can use the JSP/bean shortcut of doing, for example: so that the session bean is also updated with the information? It seems like in order to do the above I had to set the bean scope to "request" which means even when I do the following, a

bean question

2000-08-18 Thread Rick Reumann
Without using Enterprise Beans, what is the best way to accomplish the following situation ... When a user first comes to a jsp page certain database information will populate the users session bean as a collection of objects (in this case a vector of 'project' objects). While the session is act

non EJB udpated when database altered?

2000-08-16 Thread Rick Reumann
Without using Enterprise Beans, what is the best way to accomplish the following situation ... When a user first comes to a jsp page certain database information will populate the users session bean as a vector of objects (in this case a vector of 'project' objects). While the session is active

Re: Text Files

2000-08-15 Thread Rick Reumann
I'm doing something like that with a file I have open now. You could do this in the actual jsp page where the form is submitted to or you could have this in a java bean. In this case I have a vector that stores PhoneInfo objects and i read the data from there. I posted what I think you want after

Re: session/request question?

2000-08-15 Thread Rick Reumann
you tried using include instead of forward()? > Do you have this: > > > > > in the included/forwarded page, too? That of course should be the > case. > > -hendrik > > Rick Reumann wrote: > > > I was wondering if it is possible to give a bean scope both > >

session/request question?

2000-08-15 Thread Rick Reumann
I was wondering if it is possible to give a bean scope both "session" and "request"? I have a page called process.jsp which is called after the submission of a form. In this page I would like to be able to use the jsp shortcuts of getting the parameters by (this example:).. text.addLine( text.get

giving scope both session and request?

2000-08-14 Thread Rick Reumann
I was wondering if it is possible to give a bean scope both "session" and "request"? I have a page called process.jsp which is called after the submission of a form. In this page I would like to be able to use the jsp shortcuts of getting the parameters by (this example:).. text.addLine( text.get

gathering jsp output using an input stream

2000-06-08 Thread Rick Reumann
I'm trying to gather the html output that is generated from a jsp page that we have reside on another server. We want to do this by just streaming in the output from that other page. What I set up so far is: URL url = new URL("http://webdev.valpak.com:84/projectutility/filesaffected.jsp?file s_a

using URLConnection

2000-06-07 Thread Rick Reumann
I need to be able to access a jsp file on another server and read the html information that will be presented when the jsp page executes. Currently, with the code I have now, what I get back is the text that makes up the actually jsp page. I just want the html that should be produced after the cal

curious. Getting database info

2000-05-09 Thread Rick Reumann
I'm curious on opions on the fastest/best way to retrieve information from a database using java/jsp. For example say you have various people in a database and have their name, phone number, address, etc. stored in there. Where I work we don't do the database select statements in the jsp pages bu

sql/ getInt(??)

2000-04-25 Thread Rick Reumann
I keep getting a "java.sql SQLexception: no current row" error from the code posted below. The problem is coming in when trying to do a rs.getInt(column) on a column that is created as sum of the scores from various table columns. The sql is being done on an informix database. I've tried even sett

[sorry] ignore post date/file last..

2000-04-20 Thread Rick Reumann
Sorry I didn't realize I could just add extra 'M's' to the MM part of the simple date format method to create "text" instead of the number representation. Ignore my last question to the list. I apologize. Rick === To unsubscr

date/file last modified question

2000-04-20 Thread Rick Reumann
The following code works fine in my page to convert the last modified date into a mm-dd- format. <%@ import="java.text.*, java.io.*, java.util.*;" %> <% String logFileDate = null; File logFile = new File( "/app/webdocroot/insidectm/logs/coxdirect/2000/cdcor2000report.ht m" ); if( logFile.exis

sorting a hashtable array

2000-04-17 Thread Rick Reumann
I created a hashtable array.. Hashtable Scores[] = new Hashtable[Max]; for ( int i=0; i < Max; i++ ) { Scores[i] = new Hashtable(); } and then each Scores[i] is populated with while loop start through database { if ( rs.getInt( "og_id" ) != null ) { Scores[counter].put( "og_id",

long to date?

2000-04-13 Thread Rick Reumann
I'm trying to use file.lastModified() to get the last mod date of a file and then print on the screen as a string. The problem is it looks like lastModified() returns a long? Do I have to covert my long to a string and then use SimpleDateFormater to format it how I want or is there a way to go rig