Tools for Testing

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

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

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 servlet-mapping servlet-nameaction/servlet-name url-pattern/*/url-pattern /servlet-mapping But it does not work. Only this works: Then I have no

Change the .do extension

2003-09-29 Thread Dirk Behrendt
; charset=iso-8859-1 Yes this is possible. I use a filter mapped to /* and perform logic to lookup all the actions and attempt a match, then forward to the action if it's found. http://www.raibledesigns.com/page/rd?anchor=vanity_urls_in_struts HTH, Matt -Original Message- From: 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

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 html:form action=.. /html:form or html:link forward=. /html:link

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 sess:setAttribute name=namevalue/sess:setAttribute Dirk -Ursprüngliche Nachricht- Von: Dirk Behrendt

AW: How to realize forward to the same page?

2003-08-14 Thread Dirk Behrendt
Mailing List Betreff: RE: How to 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

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)

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

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 forward tag, an empty

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

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! No, I do not have

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

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: html:errors/ 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
!')    /ulhr /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

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. I want to check

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

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? var-value^[a-zA-Z0-9_.-]*$/var-value -jeff On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: var-value^[a-zA-Z0-9_.-]*$/var

Validator Framework: Can not evaluate regular expression

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

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 these

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!

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

2003-07-22 Thread Dirk Behrendt
] Gesendet: Dienstag, 22. Juli 2003 01:20 An: Struts Users Mailing List Betreff: Re: AW: Error Using select tag To Create Drop-Down Menu Hi, Dirk: Thanks for your help. My code works now. I am able to see the drop-down menu in the browser. --- Dirk Behrendt [EMAIL PROTECTED] wrote: Hello! I

Problems in usage of html:select 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? html:form action=/language method = GET html:select

Use ApplicationRessources.properties values in html:options value=.... 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: bean:message key= language.german / But how I can use this

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 html:select tag into html:form tags. Look: html:form action=/language method = GET html:select property=language onchange=javascript: submit () html:option value=Deutsch/ html:option value=Englisch/ /html:select /html:form