Hello!
There are tools for automatic testing the Struts application?
Dirk
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
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
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
;
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
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
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
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
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
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
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)
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
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
...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
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
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);
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
Hello!
What is necessary to show errors from validation not in a JSP , but in a
dialog?
Dirk
!')
/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
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
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
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
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
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
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!
]
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
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
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
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
29 matches
Mail list logo