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!
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
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.
>
>
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
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
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,
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!
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
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();
>
Hello!
What is necessary to show errors from validation not in a JSP , but in a
dialog?
Dirk
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
...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
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
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
value
Dirk
-Ursprüngliche Nachricht-
Von: Dirk Behrendt [mailto:[EMAIL PR
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
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
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!
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
---
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
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
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
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!
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
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
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
-----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/
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!
There are tools for automatic testing the Struts application?
Dirk
29 matches
Mail list logo