Replace scriptlet in a JSP page

2003-07-24 Thread Dirk Behrendt
Hello! I have read the discussion about tag libs. No logic should be in a JSP page to fullfill the MVC concept. But I dont know how to replace the following scriptlet in my JSP. <%SetUpLanguages l = new SetUpLanguages(request);%> It is absolutely necessary form e application. Thank you!

Problem in using Validator Framework with Struts

2003-07-29 Thread Dirk Behrendt
Hello! I have a problem in using the Validator framework with Struts. I want to check textfields. When I start Tomcat, I got a lot of parse erros like this: element type "plug-in" must be declared. org.xml.SAXParseException I looked at other validation examples, but I did the same like in thes

AW: Problem in using Validator Framework with Struts

2003-07-30 Thread Dirk Behrendt
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. > >

Validator Framework: Can not evaluate regular expression

2003-07-30 Thread Dirk Behrendt
Hello! I want to check login and password fields. If I submit with empty textfields, the errors are shown correct ( required). But my regular expression was ignored. (see code below). What is necessary to check regular expressions? Dirk Struts-config.xml - form-bean na

AW: Problem in using Validator Framework with Struts

2003-07-30 Thread Dirk Behrendt
Hi! No, the code was not cut and paste... Dirk If your code is a direct cut-n-paste, you've got an extra '>' in your first regular expression? >^[a-zA-Z0-9_.-]*$ -jeff On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: > >^[a-zA-Z0-9

Validator Framework: Can not evaluate regular expression

2003-07-30 Thread Dirk Behrendt
te, you've got an extra '>' in your first regular expression? >^[a-zA-Z0-9_.-]*$ -jeff On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: > >^[a-zA-Z0-9_.-]*$ Hello! I want to check login and password fields. If I submit with empty textfields,

AW: Validator Framework: Can not evaluate regular expression

2003-07-31 Thread Dirk Behrendt
not evaluate regular expression Password fields are only run against the "required" validation in the client side javascript for security purposes. Password fields are validated with all rules on the server side though. David --- Dirk Behrendt <[EMAIL PROTECTED]> wrote: > Hi!

How to show GLOBAL ERRORS in a JSP

2003-07-31 Thread Dirk Behrendt
Hello! I my ActionClass I set a Global Error. How can I display this error in my JSP? ActionErrors errors = new ActionErrors(); ActionError loginError = new ActionError("error.login.failed"); errors.add(ActionErrors.GLOBAL_ERROR, loginError); saveE

How to show GLOBAL ERRORS in a JSP

2003-07-31 Thread Dirk Behrendt
Can you give me a code fragment? The same way you display any other struts error in a JSP page: Dirk Behrendt wrote: >Hello! > >I my ActionClass I set a Global Error. How can I display this error in >my JSP? > > >ActionErrors errors = new ActionErrors(); >

Show validation errors in an dialog

2003-07-31 Thread Dirk Behrendt
Hello! What is necessary to show errors from validation not in a JSP , but in a dialog? Dirk

AW: Show validation errors in a dialog

2003-07-31 Thread Dirk Behrendt
t_ for a window      ul> logic:messagesPresent>       Dirk   -Ursprüngliche Nachricht- Von: Dirk Behrendt [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 31. Juli 2003 19:21 An: '[EMAIL PROTECTED]' Betreff: Show validation errors in an dialog   Hello!   What is necessary to show errors from validation not in a JSP , but in a dialog?   Dirk

AW: How to realize forward to the same page?

2003-08-06 Thread Dirk Behrendt
...I have tried this and now I get an internal server error Do I have to add something to my struts-config.xml?? java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr ocessor.java:441) at org.apache.struts.action.RequestProcesso

How to realize forward to the same page?

2003-08-09 Thread Dirk Behrendt
Hello! I want, that the user can switch the language from a drop down menu at runtime. When he chose a language, an action class is called and sets the locale. I want, that there is no forward to another page. The current page should be maintained. When I do it without the tag, an empty page cam

Convert scriptlets into Tags

2003-08-14 Thread Dirk Behrendt
Hello! I have to write a session variable in a JSP <%session.setAttribute("name","value");%> How can I convert this scriptlet into Struts Tags to fulfil the MVC concept? Dirk

AW: Convert scriptlets into Tags

2003-08-14 Thread Dirk Behrendt
Hello! I found a possibility: The Session Tag library from Jakarta. You need: taglibs-session.tld and taglibs-session.jar <%session.setAttribute("name","value");%> can replaced by value Dirk -Ursprüngliche Nachricht- Von: Dirk Behrendt [mailto:[EMAIL PR

AW: How to realize forward to the same page?

2003-08-14 Thread Dirk Behrendt
realize forward to the same page? Try putting forward as the same page. Regards Rohit -Original Message- From: Dirk Behrendt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 5:13 PM To: [EMAIL PROTECTED] Subject: How to realize forward to the same page? Hello! I want, that the

Forward to the same page

2003-08-14 Thread Dirk Behrendt
Hello! I am still searching for a possibility to forward to the same page. I want, that the user can switch the language at runtime. After choosing the LanguageAction Class is called and switches the Locale. But it is necessary to give a forward. Example: (before forward --> after forward) site

Layout Struts with XSLT

2003-08-14 Thread Dirk Behrendt
Hello! There are two possibilities. (1) stxx http://stxx.sourceforge.net/ (2) StrutsCX http://it.cappuccinonet.com/strutscx/index.php Can anybody give an advice, which one is "the better" one? Dirk

Automatic forward to an action when entering a JSP

2003-09-09 Thread Dirk Behrendt
Hello! There are a possibilty to forward to an action if a JSP is called? The action should be processed automatically when the user enters the JSP. (user should not press a button or klick a link). That means without declaring a action=".." or Thanx Dirk ---

How to fill textfields from FormBean?

2003-09-16 Thread Dirk Behrendt
Hello! I have made a registration JSP (name, address, zip, ) and I want that the user can modify his account. So I have an action class and a form bean for the registration. Now I want to implement an action class which shows the registration JSP and fills automatically the textfields with th

Problems in usage of tag

2003-07-21 Thread Dirk Behrendt
Hello! I want, that the user can switch the language at runtime and he can chose the language without pressing the "submit" button. The selection of another item should replace the pressing of the "submit" button. Can anybody help me? --> there are another possibility to mapp the

Use ApplicationRessources.properties values in tag

2003-07-21 Thread Dirk Behrendt
Hello! I want to use some values from the properties file in my JSP page. ApplicationRessources.properties file: language.german = Deutsch language.english = Englisch Normally such values are used within a JSP page like this: But how I can use this value within a tag? "> does not w

AW: Error Using select tag To Create Drop-Down Menu

2003-07-21 Thread Dirk Behrendt
Hello! I had the same problem... You have to include the tag into tags. Look: I have an ActionBean and a FormBean for the action "/language". Without that you will get the exception "Cannot find bean under name org.apache.struts.taglib.html.BEAN" Hope, that will help!

AW: AW: Error Using select tag To Create Drop-Down Menu

2003-07-22 Thread Dirk Behrendt
able to see the drop-down menu in the browser. --- Dirk Behrendt <[EMAIL PROTECTED]> wrote: > Hello! > > I had the same problem... > > You have to include the tag into > tags. Look: > > > > > onchange="javascript: submit ()&quo

Change the ".do" extension

2003-09-29 Thread Dirk Behrendt
Hello! Is there a possibility to get rid of the .do extension in the actions? For example: http://localhost/login.do should be --> http://localhost/login Ist this possible? Thanks! Dirk - To unsubscribe, e-mail: [EMAIL

Change the ".do" extension

2003-09-29 Thread Dirk Behrendt
Hello! Right, but I dont want an extension. http://localhost/myProject/login.do --> sould be http://localhost/myProject/login I have tried action /* But it does not work. Only this works: Then I have no extensions in the action but "aName" in the URL http://localhost/myProject/aName/logi

Change the ".do" extension

2003-09-29 Thread Dirk Behrendt
-----Original Message- From: Dirk Behrendt [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 8:09 AM To: [EMAIL PROTECTED] Subject: Change the ".do" extension Hello! Is there a possibility to get rid of the .do extension in the actions? For example: http://localhost/

No forward after action processing/restrictions for manipulating "response"?

2003-10-02 Thread Dirk Behrendt
Hello! I wrote an action for downloading a file. It is necessary to access the response variable (see code below). I found out, that this manipulation of "response" makes trouble. Normally after the action is processed a forward will happen. In my case I want to forward to another page. But I

Tools for Testing

2003-10-07 Thread Dirk Behrendt
Hello! There are tools for automatic testing the Struts application? Dirk