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
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
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
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
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
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 {
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
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
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
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
, 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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
> >
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
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
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
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
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
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 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
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
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",
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
35 matches
Mail list logo