contentType = this.beanWriter.getContentType();
response.setContentType(contentType);
response.setHeader("Content-Disposition","attachment;filename=\""
+ this.beanWriter.getFileName(request) + "\"");
And have your struts action return null.
-Jacob
-O
My Problem is with the URL presented when i get prompted to save a file.
I am retreiving files/resources from a database and want to let the users
browse them at will.
The code below works except when i get prompted to Save or Open the file.
The name of the file is the name of my Action Mapping. i
Attached is a simple XSL file you can use. You might want to adapt it to
display different Informations, though.
Stephan
Nick Heudecker wrote:
Adrien,
StrutsDoc, my project, does this. You can check it out at:
http://struts.sf.net/strutsdoc
Feel free to contact me with questions or comments
? The validator lets me set rules for the input fields in my forms. So
does XForms. There are already tools to generate the necessary
JavaScript for that (IBM Alphaworks) or to validate the input on the
Server (Chiba) and display errors.
Stephan
Yansheng Lin wrote:
Sorry, I don't get it
What is the future of the Validator, concerning the now finalized XForms
specification? As I understand it, both do about the same. Will there be
a kind of merge?
Stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
You can use JSTL or write your own Date formatter Custom Tag.
Here is a method that does that:
public int doStartTag() throws JspException
{
Date today = new Date();
ServletRequest request
(ServletRequest)pageContext.getRequest();
Locale user = request.getLocale();
Hmh, so it seems. Can't present the result in plain text, but the
results are wrong and the usage of new String(original.getBytes(),
"UTF8"); leads to a different result.
Adam Hardy wrote:
Hi Stephan,
I think the attachment got stripped off by the list server.
On 10/01/2003 1
quot; + original + "UTF-8: ");
out.println(out1);
The result is seen in the attached screener.
I don't understand why the two outputs differ and would like the 'ü' to
be printed as such. It is printed correctly coming from my ressource
files, but not coming from the
wever I can mix them if I write them
like '\u05E9' by hand.
My text strings come from a database and from my ressource bundles. I
could use a Servlet filter to change the Strings before serving them,
just have no idea how to transform them?
Stephan
--
Can anybody point me to a good documentation of the Struts Workflow
extension? The official, so called tutorial, is a little bit short for
my liking .-(
Stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi list,
I wrote a little example on how to handle the filling of a bean divided
over several pages. Early draft version. Comments are welcome.
http://rzserv2.fhnon.de/~lg002556/struts/
Stephan
-
To unsubscribe, e-mail: [EMAIL
Look here:
http://jakarta.apache.org/struts/userGuide/struts-logic.html#greaterThan
Here is an example using "equal":
aaa=aaa
aaa!=aaa
<%
String option = request.getParameter("option");
if (option == null)
{ out.println("JSP:aaa=null");}
else if (option.equals("aaa"))
{ o
WSAD has an extended support for Struts and you can find tutorials
(free) in the IBM Redbooks, including code. If that is what you mean.
Stephan
Martin Gainty wrote:
Hello
I am seeking a suitable IDE to use to build and deploy Struts examples.
Oracle JDeveloper 10 does not have Struts
Sorry I have not been able to send!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This reminds me of a script I have written. It deletes the work
directory for a given context and precompiles the JSPs. No need to fight
with JSPC :-)
I have attached it, simple but effective.
Stephan
Amit Kirdatt wrote:
Different servlet containers have different ways of doing it, but the
just take the first few contacts, can't give it to everybody .-)
Stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(subjektive Entscheidung) kommt mit ins
Dankwort und bekommt ein Freiexemplar des Buchs...
Stephan
Rene Mischak wrote:
Hallo Stephan,
Ich würde gerne etwas Testlesen.
Gruss, Rene
Stefan Werner wrote:
Hi Stephan,
mach ich gerne.
Grüsse aus Koeln
Stefan
Hi Mark,
why would I want to iterate over my data just to put it into an
ArrayList? I thought the use of an Iterator is to prevent me doing that?
I can set move the setRequest to my ActionClass, so now it works for me.
Thanks!
Stephan
Mark Lowe <[EMAIL PROTECTED]> schrieb am 03.08.2003,
Hi message,
I get an "broken link" error :-(
message message <[EMAIL PROTECTED]> schrieb am 03.08.2003,
09:31:21:
>
> You may want to have a look at this page.
> http://developer.novell.com/tech/1126.html.
> It shows, using struts, on how to retrieve and display data from a database.
>
>
> >F
Hi Mark,
that eleminates one of the two scriplets, but leaves me with:
pageContext.setAttribute("bk2", new BuchKatalog().getBuecher());
Anyway I can remove that one too?
Stephan
Mark Lowe <[EMAIL PROTECTED]> schrieb am 03.08.2003, 10:39:28:
> If the list is in an availa
hi list,
I don't manage to use methods from my classes with JSTL.
This is normal Java code:
BuchKatalog bk = new BuchKatalog();
java.util.Iterator i = bk.getBuecher();
How can I achieve the same with JSTL? (tons of examples to
continue afterwards, but none to this point .-()
Hi list, I want to iterate over a number of rows from my database.
I have removed most of my Javacode, but two statements remain.
Any way I can get rid of those too?
<% BuchKatalog bk = new BuchKatalog(); %>
Hi Prashanth,
thanks that did indeed help. Though I don't understand, why I should not
use the actionerrors. There certainly should be a way to display a
selected one, if I can display all?
Stephan
Prashanth.S wrote:
Hi stephan,
For ur problem i recommend that u use action message
Hi Anurag,
your proposal works for me, but how can I recall the value? I can get at
it with but I want to display it by key, not all stored
values?
Stephan
Anurag Garg wrote:
Hi,
U can create the ActionError object and add them in the ActionErrors class
in the action class.
Now
Hi Chirag,
there are a number of possible reasons. The class file doesn't exist,
for example. You need to be more specific here.
Chirag Mehta wrote:
Hello,
I am following the Struts tutorial written by Stephan Wieser to create
my own struts app. I reached the section on forms and am ge
Have not tried but should work with other files as well.
Stephan
Davide Bruzzone wrote:
Greetings all...
I'm trying to load and read a text file (on the server's filesystem)
from within a Struts application. I'd like to be able to put the file in
the WEB-INF, or the WEB-INF/class
Hi Dirk,
did you activate the plugin in struts-config? Maybe a typo? Struts 1.1
already contains the activated plugin and there is an example war where
you might want to copy paste some lines.
Dirk Behrendt wrote:
Hello!
I have a problem in using the Validator framework with Struts.
I want t
book about
Struts published by Galileo around the turn of the year, by the way.
Stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
/tilesAdvancedFeatures.pdf
Go to Page 7.
Insert Attribute works with my complete site
Ciao Axel
Stephan Wiesner wrote:
Hi Axel,
?
"insertAttribute" is not valid.
Axel Sachmann wrote:
<%@ taglib uri="/WEB-INF/struts-tiles.
I have to restart my application when I change a JSP? Tried it again. Even stopped the
Tomcat completely. He clearly recompiled the JSP (I can hear the hard disc work). The
comments are ignored.
I can send you a WAR file, if you want to try it yourself...
Stephan
Yann Cébron wrote:
I'd
Hi Axel,
?
"insertAttribute" is not valid.
Axel Sachmann wrote:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
yes I have.
Axel Sachmann wrote:
Hi Stephan,
has you define the tile-config in your struts-config?
You must define the tile - plugin in the struts-config
CIao
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi Axel,
that did not help. Now I just get "null" as the exception .-(
Axel Sachmann wrote:
[EMAIL PROTECTED] wrote:
Hi list, I have a problem getting tiles definitions to work (using
Hi Stephan,
Struts 1.1).
It works fine, when I use in
my JSP pages,
but not with the XML:
Here is t
Hi list,
I found something weird:
Works fine in a JSP. And it still works if I insert comments:
But not, of course, If I completely remove the body of the tiles-insert.
Caused me quite some pain when I tried to change to using tiles-defs.xml
Hi list, I have a problem getting tiles definitions to work (using
Struts 1.1).
It works fine, when I use in
my JSP pages,
but not with the XML:
Here is the code in my tiles-defs.xml
And here is Layout.jsp:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"
tName().
My JSP looks like this:
After clicking the submit button I've got the Exception. That's wrong?
Thank you very much!
Regards
Stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
role attribute on the forward tag of the
action but it does not.
Thank you for your input.
Stephan
on the role?
Thank you.
Stephan
using WSAD and WebSphere.
Thank you.
Stephan
-
[Servlet LOG] : Error Page Exception: :
com.ibm.servlet.engine.webapp.WebAppErrorReport: Connection reset by peer:
socket write error at
com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.ja
You are closing your starting tag.
Remove the / at the end of your starting tag
...pPage.currentImage"> instead of
...pPage.currentImage"/>
-Message d'origine-
De : Matthew Meyer [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 13:51
À : Struts Users Mailing List
Objet : Re: log
I have to iterate loops and a link in the middle where I want to use the
index of the first loop.
The index is always equal to zero.
Any idea of what I am doing wrong?
Thank you
Stephan.
e default
logger, it's in the package description at:
http://jakarta.apache.org/commons/logging/api/
> Does anyone know how to confugure the struts-config or/and web.xml?
>
> Thanks
> Stephan
>
Craig
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
ogging on for my own code. I have put the debug and detail init parameter
> to 0 in web.xml but I receive debug messages from digester, sax, beanUtils
> and others.
>
> Does anyone know how to confugure the struts-config or/and web.xml?
>
> Thanks
> Stephan
>
or/and web.xml?
Thanks
Stephan
eally prefer a container managed security plus my
exploitation group requires it.
Thank you
Stephan
-Message d'origine-
De : Eddie Bush [mailto:ekbush@;swbell.net]
Envoyé : vendredi 1 novembre 2002 11:38
À : Struts Users Mailing List
Objet : Re: url problem when 2 mapping redirect to st
, submit a
request with a *.go.
How come the extension of my url is changed?
Thank you.
Stephan
Nested form validation
I would like to know
1) Did anyone succeeded in validating nested form?
2) Do you have a validation.xml example?
I have a form , one simple property but another property is a form
with a property .
Everything works fine except for the validations. I tried the followin
We are attempting to define a phone.key format of ###- for use with
We are using formats like
dollar.format=$###,###,##0.00
decimal.format=###,###,##0.00
successfully but for some reason the phone.key isn't working. Any clues?
Thank you
I am not sure but I think I have seen this. Did you changed your version of
Struts? I had to change to plug-in in struts-config.
Stephan
-Message d'origine-
De : Vincent Stoessel [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 16 octobre 2002 15:53
À : Struts Users
Objet : anyone
In the HtmlRadioTag, the idName indicates the name of the bean to get the
value from.
I dont think that is what you are looking for.
Stephan
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 15 octobre 2002 14:21
À : Struts Users Mailing List
Hi,
Is the idName field supported in the NestedRadioTag? I do not see it in the
TLD but the documentation says so.
Is there another way of getting the value from another property?
Thank you
Stephan
I really don't like the design of map-backed. I really like nested forms and
they work perfectly for what I want to do. So thanks for your inputs but I
am looking form help on populating nested forms from value objects.
Stephan
-Message d'origine-
De : David Graham [mai
s.
Thanks
Stephan
e-resource under Struts 1.0.2 yet.
Best regards
Stephan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
I wrote on 17.09.02, 08:04 :
> I would like to use the "bundle"-attribute from the "html:errors"-Tag,
> but I didn't find out how to define a "context attribute key" for a
> message-resource under Struts 1.0.2 jet.
>
> On the web I found [...
cation
path.to.strutsresource
errorsresource
path.to.errrorsresource
[...]
...it didn't work either :-(
Anyway - this thing has to work somehow with Struts 1.0.2. Finally the
attribute "bundle" is in the "html-errors"-Tag under 1.0.2, too.
Any ideas
se the second solution.
Any ideas, comments, confirmations?
Thanks a lot!
Stephan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Hi,
I have following problem:
I have an application which works fine, if only one users is active.
If two users act at nearly the same time I always get following error:
Unexpected Exception: java.sql.SQLException message given: Communication
link failure: java.net.SocketException.
It seems to m
#x27;t worked out for me :-(
How can I put your tip into practice?
Thanx
Stephan
- Original Message -----
From: "Sann, Stephan" <[EMAIL PROTECTED]>
Date: Tuesday, July 9, 2002 4:05 pm
Subject: html:text initial value
> Hello all,
>
> is there a way to give an initial
not allowed any more in our
applications.
Thanx for any hints, tips, RTFM(with URL)
Stephan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
s Guide: Forward into the Past!
Best regards
Stephan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
unately I didn't manage it to feed the tag with the value of
the request-parameter jet.
With a scriptlet it's easy, but with struts we don't wont scriptlets
any more!
Best regards
Stephan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
our application-structure and there is not chance to deploy the same
application for two times (besides there are applications with four or more
customers).
So there is no way for a "customized forward"?
Best regards
Stephan
--
Stephan Sann
BHW Bausparkasse AG
Anwendungsentwicklu
ion + mapping.findForward("success"));
(I know this wouldn't work - I'm not stupid ;-) - just to show what I mean).
Thanx a lot for your answers!
Best regards
Stephan
--
Stephan Sann
BHW Bausparkasse AG
Anwendungsentwicklung - Abteilung AEW CR -
Lubahnstraße 2, 31789 Hameln
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
2.fhnon.de/~lg002556/struts/
Stephan
Does anyone have Struts documentation designed for those who would modify
the View layer only, for style, etc. I doesn't seem like it would take much
-- a SIMPLE explanation of Struts, how to get information on tag attributes
and behavior, what kind
No, it is not really that hard. Fastest way.
But there is a GUI: Struts Console
http://www.jamesholmes.com/struts/
Stephan Wiesner
---Original-Nachricht---
Von: Struts Users Mailing List
Datum: Freitag, 12. April 2002 18:46:54
An: Struts User Mailing List; LA Java
Mark? Hey, he just praised me (Stephan) ;-)
Stephan
- Original Message -
From: "Nicolas Parisé" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 12:16 AM
Subject: Re: Struts Tutorial
> Gre
).
Stephan
---Original-Nachricht---
Von: Struts Users Mailing List
Datum: Dienstag, 9. April 2002 15:36:31
An: Struts (E-mail)
Betreff: Re: Stephan's Struts Tutorial
A few constructive comments, Stephan for the first 5 chapters:
1. Clean up your spelling and grammar (e.g.,
Hi, I'm writing a Struts tutorial. The actual version (30 pages at the
moment) can be found
at:
http://rzserv2.fhnon.de/~lg002556/struts/
It is written in englisch. And intended as an easy, step by step
introduction.
Stephan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECT
69 matches
Mail list logo