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.

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: Validator vs. XForms

2003-10-15 Thread Stephan Wiesner
it. It has nothing to do with the Validator Any pointers appreciated! -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED] Sent: October 15, 2003 11:49 AM To: Struts Users Mailing List Subject: Validator vs. XForms What is the future of the Validator, concerning the now

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();

Character Encoding

2003-10-01 Thread Stephan Wiesner
Hi, I have a web application that needs to support arabic, so I use UTF8 for encoding: %@ page language=java contentType=text/html; charset=UTF-8% This leads to some characters beeing displayed wrong (works fine with Latin-1), like the German 'Ü'. However I can mix them if I write them like

Re: Character Encoding

2003-10-01 Thread Stephan Wiesner
Hi Remke, thanks for the link to the tool, quite useful. The header is correct in my case, though. Here is a simple source example: String original = new String(A'lü[\u05E9]); String out1 = new String(original.getBytes(), UTF8); out.println(Original: + original + br /UTF-8: );

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 11:12 AM 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

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

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: logic:equal value=aaa parameter=option aaa=aaa br /logic:equal logic:notEqual value=aaa parameter=option aaa!=aaa br /logic:notEqual hr % String option =

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

German Testreaders needed

2003-08-14 Thread Stephan Wiesner
I am currently writing a book about Struts (in German) and would like to find a handfull of Germans (or German speaking) to read a chapter or two, see if you understand it. It is (another) beginner book, so if you just started with Struts, you are very welcome. Just contact me. Oh, and, I will

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

Re: German Testreaders needed

2003-08-09 Thread Stephan Wiesner
Hi Stefan, hier findest Du die ersten Kapitel und den zugehörigen Source: http://rzserv2.fhnon.de/~lg002556/sbuch/ Sind Worddateien, ist vom Verlag vorgegeben, da kann ich nischts machen .-) Musst Du nach c:\strutsbuch entpacken, sonst werden die Bilder nicht richtig referenziert.

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

2003-07-30 Thread Stephan Wiesner
not actionerrors.. http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages hope the above link helps.. Thanks Prashanth Stephan Wiesner [EMAIL PROTECTED] wrote: Hi Anurag, your proposal works for me, but how can I recall the value? I can get at it with but I

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

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

2003-07-29 Thread Stephan Wiesner
You can load Properties files like this: java.io.InputStream in = baseClass.getResourceAsStream(fileName); Properties props = new Properties(); props.load(in); I use this with my base classes, as the have to work outside my Tomcat, too, that's what base classes for, after all. Have

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 getting

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 tiles:put name=head value=Kopf.jsp / in my JSP pages, but not

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, ? insertAttribute is not valid. Axel Sachmann wrote: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insertAttribute name=head/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

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 guess

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

2003-07-19 Thread Stephan Wiesner
- http://www.lifl.fr/~dumoulin/tiles/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.tld prefix=tiles

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

2003-07-19 Thread Stephan Wiesner
Hi list (or better: hi Axel), thanks for the try to help. Figured it out now and wrote it down (in German, though). Can be found here: http://rzserv2.fhnon.de/~lg002556/Templates.zip (html with screenshots) Just wrote it down, so expect tons of Rechtschreibfehler. Will be part of a book about

Betreff: Struts Doc for Web Designers

2002-04-16 Thread Stephan Wiesner
---Original-Nachricht--- Von: Struts Users Mailing List Datum: Dienstag, 16. April 2002 18:24:52 An: '[EMAIL PROTECTED]' Betreff: Struts Doc for Web Designers My tutorial is supposed to be easy to understand. No special emphasis on the View, though.

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
- From: Galbreath, Mark [EMAIL PROTECTED] Newsgroups: Struts Sent: Tuesday, April 09, 2002 8:10 AM Subject: RE: Struts Tutorial Great initiative! -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 12:58 AM To: [EMAIL PROTECTED

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 PROTECTED] For

Answers to the Tutorial

2002-04-09 Thread Stephan Wiesner
Thanks for all the mails. Yes, for this constructive one, too :-) I will try to work your comments in, that will have to wait a day or two, though. I intend to write another few chapters anyway, so if there are any special needs: Just ask and you might get it (no promises here, though).