Hi, Carline.
You answered the question already. As a database is out of the question, and the files
must be downloadable (no database, no WEB-INF subdirectory) you need the filesystem,
preferrable inside your webapp but outside of WEB-INF. Just pick a directory.
If your superior does not
Hi, guys.
Calm down a bit. The original question never said that these files need to be uploaded
by the client, or did I miss that bit?
All I know is there are readonly files that need to be served via HTTP without access
restriction and are already there at deployment time so a database is not
Hi, Joe.
I'd rather not add any non breaking spaces to the messages. You don't know how long a
message might become (typically each language needs another amount of words to express
the same, and english is pretty short compared to others). The problem you actually
have is a layout problem,
Hi, Andrew.
I'm not a CSS crack, but perhaps use google with white-space:nowrap to get further.
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax +49-89-54 74 21 99
-Original
Hi, Denis.
To get your servlet loaded after the Struts ActionServlet, simply use
load-on-startup2load-on-startup
(assumed that your ActionServlet is loaded with load-on-startup1load-on-startup=.
This simply tells Tomcat to load your servlet after the ActionServlet.
Hiran
Hi, Tim.
This is right. But also make sure the locale dependent date parsing is done in the
action class then, since
- I'm not sure whether the validator package can cover localized dateformats
- only the controller classes know about the user's locale and therefore the
dateformat that should
Hi there.
I'm working on i18n of a Struts based project. All references I find about this topic
deal with using messages depending on the user's locale. Has anyone ever experienced
problems with national special characters (such as currency symbols for sterling or
euro?
Hiran
Hi, Joe.
I also need an enhancement of Struts. Up to now I did not discuss this on any list
since the need for enhancement came up just two days ago. What I have up to now is a
patched version of a Struts class, which means I can no longer live with the standard
struts release.
My enhancement
Hi, Craig.
You hit the bull's eye. No I claim this not only to be a JSP/Servlet problem.
The way you describe will cause the browser to encode all form data with UTF-8.
Unfortunately the servlet container (Tomcat in my case) does not know about this.
To obtain the correct parameter values,
Hi, Jain.
Use
[EMAIL PROTECTED] contentType=text/html;charset=UTF-8%
to set a HTTP header that tells the browser how special characters are transferred.
Most probably you then get the correct display.
If that is not sufficient, check the fonts your browser is configured to use.
Hiran
Hi, Sebastian.
Seems like Struts cannot create an instance of your FileForm class. Something must be
wrong during (class) construction.
Do your log files reveal some more information?
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
Hi, Sebastian.
It looks like the call to new FileForm() throws an exception.
Have a look at your Tomcat logfiles. There might be more information about the JSP
compiler failing.
If that is not the case, check that the class exists (class name/package name).
If it is the first instantiation in
Hi, Sebastien.
This might be caused since Struts logs what bean it created and is going to populate.
Turn off the RequestProcessor's log4j category and the call to toString() should be
gone.
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße
Hi, O.
Check the configuration of the log facility actually in use (commons-logging can use
several).
Most probably this is log4j. Then have a look at the log4j configuration, which can be
done with a log4j.properties file.
Changes in this file and restarting your application should be all you
Your log4j configuration probably uses a consoleappender.
Change this to be a fileappender instead, and you are done.
This document describes the configuration of log4j in short:
http://logging.apache.org/log4j/docs/manual.html
To see what appenders are available in log4j, see
Hi, L.
Did you upgrade your struts.jar recently?
The new struts action servlet calls a different method on actions, and it's default
implementation is to show an empty page.
Stumbled over this one also.
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Hi, Niall.
Good hint. Somehow the bug reads as work in progress. Just delegating the work to
another class won't solve my problem. I need a way to hook in my own implementation.
But I might add this question to the bug directly
Hiran
-
Hiran
Hi, Jason.
Have you tried using setCharacterEncoding(...)? For me on Tomcat 4.1.30 it showed no
result at all, and other solutions available on the web state that
setCharacterEncoding should work but has problems on many servlet containers.
Therefore all I found refers to creating new strings
Hi, Jason.
Before I had tried to use request.setCharacterEncoding(UTFß8) in a JSP (independent
from Struts) and that did not work.
Now I tried using a filter, as you suggest, and it works like a charm. No more need to
patch RequestUtils, and I can also monitor and write warnings if the
Hi, Erik and Freddz.
I like the idea of having a wizard whose data gets cleaned as soon as it's scope is
left.
How about this: Have all resources for one wizard in a URL subdirectory. Have a
similar naming convention for the resources the wizard leaves in the session. If a
http request comes
-Original Message-
I reported it to [EMAIL PROTECTED] yesterday.
Thank you.
The person has
been notified and will be unsubscribed soon if it doesn't
stop happening.
In my opinion it has been long enough (I think 48 hours is
more than fair). I vote that the user be
-Original Message-
From: Darryl Pierce [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 7. Oktober 2004 12:34
To: Struts Users Mailing List
Subject: Re: bouncing address (if this is you at
standardbank.co.az, PLEASE correct it)
On Thursday 07 October 2004 07:42 am,
[EMAIL
Also sounds good. Especially the decoupling of a resource location and usage is what
Struts tries to do with actions and forwards etc. I see this pattern reused in your
idea. Plus the possibility of sharing resources. I like this idea.
Hiran
-
Hiran
Don't put this example under Apache License then. ;-)
Or have it patented (with the new patent laws in Europe no problem).
Hiran (getting offtopic)
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax
Hi, Freddy.
- Use string properties in your for bean.
- If you use the validation framework, check whether that supports different number
formats (for dates it does)
- parse the number according to the user's locale in your action class and pass that
double on to your delegate
Hiran
Hi, Jean.
Maybe I missed a bit, but do you not always have page flow coded in JSP AND Action
classes?
In the action the server decides what to do with user input and what page to go next.
This page will be presented to the user. There may be several buttons on it allowing
the user to choose
Hi, Jeroen.
That's also the way I'd do it. However with XQuery you can combine the query part and
the formatting (to HTML) in one step.
Information and samples can be found here:
http://tamino.demozone.softwareag.com/demoXQuery/XQueryDemo/reference.jsp
Creating a tag that executes the query and
Hi, Ian.
Have you tried to use a different package (directory name) for your bundle?
The java and javax packages should be sealed by the JVM classloader to prevent abuse
of standard classes.
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße
Hi, David.
Sorry, guy, but you got the wrong setting. A meta tag is maybe used by the browser,
but it is not authorative as you observe.
To tell the webserver how the page is encoded (on the server side only), use
[EMAIL PROTECTED] encoding=...%
To tell the webserver how the page output shall
Hi, all.
I thought about guessing the incoming data's encoding.
How about having a hidden input tag with a default value provided by the server.
When this value comes back, the server could guess the encoding used by looking at the
bytes of this parameter.
I'd somehow like to see this solved
Hi, Rick.
Right, people like Grandma Jones won't use it. But then, they are old already.
For how long can such users be the mayority? And at the same time, computers become
more easy in handling and affect a still growing audience. More and more technique is
integrated from the very beginning,
Hi, David.
If JRun claims to be servlet spec 2.3 compliant, it should work.
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax +49-89-54 74 21 99
-Original Message-
From: David
Hi, Caroline.
Does your application use a database? If yes, is that capable of storing binary data?
I'd go for this, since what you want to store looks like user data, and I'd like to
have transactionality and backups for that.
If not, you might pick a directory inside your web application, but
33 matches
Mail list logo