RE: Question about File downlods and letting users save a downloaded file. I am losing the original file name.

2004-03-01 Thread Stephan Jones
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

Question about File downlods and letting users save a downloaded file. I am losing the original file name.

2004-03-01 Thread Stephan Jones
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

Re: Apply an Xslt to the struts-config.xml

2003-11-12 Thread Stephan Wiesner
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

Re: Validator vs. XForms

2003-10-15 Thread Stephan Wiesner
? 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

Validator vs. XForms

2003-10-15 Thread Stephan Wiesner
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

Re: internationalized date

2003-10-02 Thread Stephan Wiesner
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();

Re: Character Encoding

2003-10-01 Thread Stephan Wiesner
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

Re: Character Encoding

2003-10-01 Thread Stephan Wiesner
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

Character Encoding

2003-10-01 Thread Stephan Wiesner
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 --

Struts Workflow Docu

2003-09-23 Thread Stephan Wiesner
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

Multi Form Tutorial

2003-09-22 Thread Stephan Wiesner
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

Re: Struts "greaterThen" with 2 propertys

2003-09-22 Thread Stephan Wiesner
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

Re: IDE for Struts Examples

2003-09-22 Thread Stephan Wiesner
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

[OT] Test

2003-09-05 Thread Stephan
Sorry I have not been able to send! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: force precompilation of JSPs

2003-08-14 Thread Stephan Wiesner
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

German Testreaders needed

2003-08-14 Thread Stephan Wiesner
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]

Re: German Testreaders needed

2003-08-09 Thread Stephan Wiesner
(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

Re: Re: Call methods from JSTL

2003-08-03 Thread stephan
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,

Re: Re: Call methods from JSTL

2003-08-03 Thread stephan
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

Re: Re: Iteration without Javacode

2003-08-03 Thread stephan
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

Call methods from JSTL

2003-08-02 Thread stephan
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 .-()

Iteration without Javacode

2003-08-02 Thread stephan
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(); %>

Re: How to add action errors from action class's execute method

2003-07-30 Thread Stephan Wiesner
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

Re: How to add action errors from action class's execute method

2003-07-30 Thread Stephan Wiesner
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

Re: Newbie - error Location

2003-07-29 Thread Stephan Wiesner
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

Re: Opening/reading a file from a Struts application...

2003-07-29 Thread Stephan Wiesner
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

Re: Problem in using Validator Framework with Struts

2003-07-29 Thread Stephan Wiesner
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

Re: Tiles: attribute 'head' not found in context [Solveed]

2003-07-19 Thread Stephan Wiesner
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]

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
/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.

Re: tiles: Comments are ignored

2003-07-19 Thread Stephan Wiesner
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

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
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]

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
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

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
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

tiles: Comments are ignored

2003-07-19 Thread stephan
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

Tiles: attribute 'head' not found in context

2003-07-19 Thread stephan
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"

html:select and html:options example?

2003-06-15 Thread Stephan Niedermeier
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]

Setting up dynamic help with configuration files

2003-02-19 Thread Roy . Stephan
role attribute on the forward tag of the action but it does not. Thank you for your input. Stephan

Tile definition with a role attribute.

2003-02-18 Thread Roy . Stephan
on the role? Thank you. Stephan

"socket write error" when using tiles

2003-02-04 Thread Roy . 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

RE : logic:empty AND logic:notEmpty Both executing?

2003-01-30 Thread Roy . Stephan
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

indexId of a link in nested iterate tags

2003-01-29 Thread Roy . Stephan
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.  

RE : setting debug level for digester, sax, beanUtils...

2002-11-27 Thread Roy . 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]>

RE : setting debug level for digester, sax, beanUtils...

2002-11-27 Thread Roy . Stephan
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 >

setting debug level for digester, sax, beanUtils...

2002-11-26 Thread Roy . Stephan
or/and web.xml? Thanks Stephan

RE : url problem when 2 mapping redirect to struts

2002-11-01 Thread Roy . 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

url problem when 2 mapping redirect to struts

2002-11-01 Thread Roy . Stephan
, submit a request with a *.go. How come the extension of my url is changed? Thank you. Stephan

Nested form validation

2002-10-29 Thread Roy . 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

formatkey

2002-10-18 Thread Roy . Stephan
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

RE : anyone seen this startup error?

2002-10-16 Thread Roy . Stephan
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

RE : idName of NestedRadioTag

2002-10-15 Thread Roy . Stephan
In the HtmlRadioTag, the idName indicates the name of the bean to get the value from. I don’t 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

idName of NestedRadioTag

2002-10-15 Thread Roy . Stephan
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

RE : Nested form and value object conversion

2002-10-15 Thread Roy . 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

Best practices using value objects

2002-10-14 Thread Roy . Stephan
s. Thanks Stephan

AW: Nothing? Rien? Nichts? Null? (was: How to define a "context attribute key" for a message-resource under Struts 1.0.2?)

2002-09-19 Thread Sann, 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]>

Nothing? Rien? Nichts? Null? (was: How to define a "context attribute key" for a message-resource under Struts 1.0.2?)

2002-09-19 Thread Sann, Stephan
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 [...

How to define a "context attribute key" for a message-resource under Struts 1.0.2?

2002-09-16 Thread Sann, Stephan
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

Bugreport(?): html:checkbox

2002-09-04 Thread Sann, Stephan
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]>

ConnectionPooling / java.net.SocketException

2002-08-19 Thread Christopher Stephan
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

AW: html:text initial value

2002-07-09 Thread Sann, Stephan
#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

html:text initial value

2002-07-09 Thread Sann, Stephan
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]>

AW: Using the value of a request-parameter for the attribute of a custom tag

2002-06-20 Thread Sann, Stephan
s Guide: Forward into the Past! Best regards Stephan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

AW: Using the value of a request-parameter for the attribute of a custom tag

2002-06-18 Thread Sann, Stephan
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]>

AW: A customized Struts

2002-06-13 Thread Sann, Stephan
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

A customized Struts

2002-06-13 Thread Sann, Stephan
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]>

Betreff: Struts Doc for Web Designers

2002-04-16 Thread Stephan Wiesner
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

Betreff: Any Framework with GUI Administration - Ryan Norman

2002-04-12 Thread Stephan Wiesner
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

Re: Struts Tutorial

2002-04-10 Thread Stephan Wiesner
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

Answers to the Tutorial

2002-04-09 Thread Stephan Wiesner
). 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.,

Struts Tutorial

2002-04-09 Thread Stephan Wiesner
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