Is there a documentation or a how-to around for CMA support in Struts?
I found this to be helpful, although it is not struts-specific:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html
If you are not using Tomcat, here is a more general explanation from the
JWSDP tutorial
, 28. Februar 2003 00:44
An: Hirschmann, Bernhard
Betreff: Re: AW: AW: Question about html:select (again)
That's funny, I did attach it. Nevermind here it is again.
Hirschmann, Bernhard wrote:
there is not attachment in your mail...
-Ursprüngliche Nachricht-
Von: Peng Tuck Kwok
If you get your values out of the form bean, and this form bean is valid not
only for one request (configured in struts-config.xml), then you don't have
to repopulate.
If you explicitly want to repolulate, then this should be done in your
action. But as I said, this is not necessary if you
Konstantina,
if you want something like in Google, where you can view the first 10 hits,
the clicking on next to see the next 10 hits, then you can use the pager
taglib for this.
http://jsptags.com/tags/navigation/pager/
Greetings to Greece!
Bernhard
-Ursprüngliche Nachricht-
Von:
Eric, as far as I know, there has been no changes in this way. Besides,
Struts doesn't create sessions, but your servlet engine does.
Struts recognizes if you deactivated cookies in your browser, in this case
the session id is attachted to the URL.
Regards,
Bernhard
-Ursprüngliche
Hey Pen,
if you could post the JSP code, maybe I could give you a hint.
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. Februar 2003 10:21
An: Struts Users Mailing List
Betreff: Question about html:select (again)
Could you post the JSP code snippet for the link you're creating?
As far as I know, no filter is used for creating the link. But as you
described, it seems that the is transformed in HTML encoding. You may try
the attribute filter=false in the html:link tag.
Bernhard
-Ursprüngliche
:37
An: [EMAIL PROTECTED]
Betreff: Re: Questions about html:link and a m p ;
Hi,
Unfortunately, there is no 'filter' in the html:link tag.
My code looks like this:
html:link forward=sell styleClass=LargeBoxHeadersell/html:link
Kind regards,
Morten Raahede Knudsen
Hirschmann, Bernhard [EMAIL
-
Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 10:02
An: Hirschmann, Bernhard
Betreff: Re: HELP - SOS - Single Form Bean Problem
hi again :)
I went through the tutorials, every time the sope is set to session, and
same form bean is used.
i have
You can pass one or more arguments to the constructor of ActionError. This
argument could be your stack trace.
In the resource string you have to handle the first argument as a {0}, the
second as {1} etc.
i.e. in you ApplicationResources.properties:
error.msg=An error has occured. Stack trace:
Good morning Shabbir!
try this:
html:image page=/images/enter.gif property=submit value=Enter/
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. Februar 2003 09:15
An: Struts Users Mailing List
Betreff: How to Show
Do you also have the form tag in your JSP?
Bernhard
-Ursprüngliche Nachricht-
Von: Loren J. Erickson [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Februar 2003 08:59
An: [EMAIL PROTECTED]
Betreff: Really dumb struts question...
Like probably thousands of others, I'm trying to
Do you have the taglibs included in the header of your JSP?
Bernhard
-Ursprüngliche Nachricht-
Von: Buics [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Februar 2003 09:36
An: Struts Users Mailing List
Betreff: Help in html option tag
anybody could help me this one,
it takes me 2
You can pre-populate your form in an action, which you have to call before
showing the JSP. You then forward to the JSP from your action.
Calling a action is done using ...yoururl.com/actionName.do in the browser
url.
Bernhard
-Ursprüngliche Nachricht-
Von: Peng Tuck Kwok
=success path=/tpinterfaceinfo.jsp/
/action
I hope that helps...
Bernhard
-Ursprüngliche Nachricht-
Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Februar 2003 10:13
An: Hirschmann, Bernhard
Betreff: Re: Really dumb struts question...
have
help man .. it worked :)
btw where did u read this stuff .. please point me to the documentation for
1.1. beta related help
so that I will stop sending queries like this :)
Chetan
- Original Message -
From: Hirschmann, Bernhard [EMAIL PROTECTED]
To: 'Chetan Sahasrabudhe' [EMAIL PROTECTED
Könntest Du bitte endlich aufhören, die Struts Mailingliste mit diesem
OT-Kram vollzumüllen?!
Langsam nervt es wirklich!
Bernhard
-Ursprüngliche Nachricht-
Von: Simon Kelly [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Februar 2003 10:36
An: Struts Users Mailing List
Betreff: Re:
Hey Ferran,
I think the problem is the path you're using:
/do/admin/AdminPreCreateUserentity=rolamp;action=findamp;reference=rol
The syntax is not correct. I can't see where the URI ends and the arrtibutes
start, but a correct syntax would be:
and
with both set to true.
If it works with 1.1.b3 could you inform me?
Bye
Toby
-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 7:15 PM
To: 'Struts Users Mailing List'
Subject: AW: bean:message problems with i18n
James
once been Actions.LOCALE_KEY, I
could imagine that something is mixed up now because of this. Is that
possible?
Ted, Craig? :-)
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 14. Februar 2003 13:42
An: Hirschmann, Bernhard
We have big problems with the use of the i18n messages, used with the
bean:message tag. But the problems encounter only in a special scenario:
1.) A German user loggs in - a German locale is set using
Action.setLocale()
- exploring some JSPs, all messages are in German, that's good.
2.) The
I forgot: we use the struts version 1.1b3
-Ursprüngliche Nachricht-
Von: Hirschmann, Bernhard
Gesendet: Donnerstag, 13. Februar 2003 18:41
An: Struts User Mailing List (E-Mail)
Betreff: bean:message problems with i18n
We have big problems with the use of the i18n messages, used
: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 11:41 AM
To: Struts User Mailing List (E-Mail)
Subject: bean:message problems with i18n
We have big problems with the use of the i18n messages, used with the
bean:message tag. But the problems encounter only
Vikas, we use the jar from .jdom.org to create JDOM objects firstly as
representatives of the beans. They can then be transformed to a XML string
with the XMLOutputter class, if this is what you want.
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL
Soren,
to do that just create a Locale object with the language/country of the user
who is loggin in, and in your action, call setLocale().
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Soeren Dalby [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. Februar 2003 22:53
An: 'Struts
Hello all!
this is still an open thread for me. It's horrifying...
Any help highly appreciated!
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Hirschmann, Bernhard
Gesendet: Donnerstag, 13. Februar 2003 19:15
An: 'Struts Users Mailing List'
Betreff: AW: bean:message problems
now, I don't know in which layer the problem is... If I have more
time, I will try to find it. Maybe someone has a clue?
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Hirschmann, Bernhard
Gesendet: Freitag, 14. Februar 2003 08:18
An: 'Struts Users Mailing List'
Betreff: AW
Does somebody know how it is possible, to define a request parameter, while
submitting a form via the JavaScript command submit() ???
I'm doing a submit() in a event handler of a html:select box and have to
set also a request parameter.
Regards,
Bernhard
-Original Message-
From: Hirschmann, Bernhard
Sent: terça-feira, 11 de Fevereiro de 2003 12:36
To: Struts User Mailing List (E-Mail)
Subject: setting a request parameter in JavaScript
Does somebody know how it is possible, to define a request parameter, while
submitting a form via
:53 dátummal Hirschmann, Bernhard ezt írtad:
Thanks for the hint, this seems to be a good work around.
But just because I'm curious: is there a way to set a real request
parameter for a submitting request?
Like: .../myAction.do?parameter1=theValueparameter2anotherValue
window.location =
'http
On Tue, 4 Feb 2003 08:32:30 -0500
[EMAIL PROTECTED] wrote:
I have socket write error when using tiles.
I suppose it is because users click on other action
before the last tile is
displayed. I have so many of these that I suspect this
can cause performance
issues. Anyone can
Ashokd, a Hashtable is not a Collection, so this can't work. You may use a
HashSet or something.
See http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate for
the syntax.
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: ashokd [mailto:[EMAIL PROTECTED]]
Gesendet:
emmanuel,
vielen Dank für diese aussagekräftige Nachricht.
Freundliche Grüße,
Bernhard Hirschmann
-Ursprüngliche Nachricht-
Von: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. Februar 2003 14:24
An: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Betreff: Re: easy
.
-emmanuel
--- Hirschmann, Bernhard [EMAIL PROTECTED] a écrit :
emmanuel,
vielen Dank für diese aussagekräftige Nachricht.
Freundliche Grüße,
Bernhard Hirschmann
-Ursprüngliche Nachricht-
Von: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. Februar 2003 14:24
;/td
/tr
/logic:iterate
I forwarding this, if any one faces same problem, they can use this.
Thanks Regards,
Ashok.D
- Original Message -
From: Hirschmann, Bernhard [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 6:58 PM
Subject
Mark,
I guess this is one of the mostly asked questions... Have you ever searched
the mailing list about that topic?
The solution is:
You just have to set the filter=false in the bean:write tag.
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]]
Jesus! So much work for that purpose? :-)
Have you tried to use UTF-8 for your JSPs? Then all that transforming to
HTML encoding is not necessary anymore. It works great at my project, and I
have to use more special characters than in German. (27 languages in fact)
See
for only one language.
Or does it help to save all jsps in UTF8. Guess my Eclipse won't let me
do that, too.
Any other or more ideas?
Thx.
Michael
-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 4. Februar 2003 11:51
To: 'Struts Users Mailing List
Hey Risika,
we also use WS4 with Tiles and we don't have any problem with it.
I suppose you're having syntax problems...
could you post some JSP snippet?
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Risika RANDRIANASOLO [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. Februar
Firstly:
bean:write filter=true doesn't transform ü into uuml;
it only transforms , , and into its HTML encoding.
You can see that in the source code of
org.apache.struts.util.ResponseUtils
Secondly:
If you're using charset=ISO-8859-1 your German special characters are only
displayed
Cannot retrieve mapping for action /submit means,
that in your struts-config.xml you don't have a action configured
for the URI /submit.
I hope this helps...
Regards,
Bernhard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
/
forward name=failure path=/submit.jsp/
/action
/action-mappings
And I verified that the SubmitAction does exist.
Jefferson
Em Ter, 2003-02-04 às 11:07, Hirschmann, Bernhard escreveu:
Cannot retrieve mapping for action /submit means,
that in your struts-config.xml
Joni, if you want to change the locale depending on the user logging in to
the application, you can use the
setLocale (javax.servlet.http.HttpServletRequest request, java.util.Locale
locale)
in your Struts action class. This overrides the default locale of the
browser.
Regards,
Bernhard
Sheldon,
it is important for IE to the the length of the stream.
response.setContentLength(byteArray.length);
That was the solution in our case.
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Jarnot Voytek Contr AU HQ/SC
Gesendet: Montag, 3. Februar 2003 19:55
An: 'Struts Users
encoding
On Tue, 14 Jan 2003, Hirschmann, Bernhard wrote:
Date: Tue, 14 Jan 2003 17:31:03 +0100
From: Hirschmann, Bernhard [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: AW: Transforming a String to valid HTML
The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html
pages. And if a ü appears in the ISO-8859-1 characterset in the
browser,
What is wrong with utf-8?
Nothing is wrong with utf-8. Maybe it would be the best to use it, even
though everything is much more complex while
Nothing is wrong with utf-8. Maybe it would be the best to use it, even
though everything is much more complex while handling stuff like the html
form entries, which have to be converted.
No, as far as you are using the SetCharacterEncoding filter coming with
the
example application of
Sadly this doesn't solve the problem!
Does your browser use a http proxy? Maybe this is the reason.
Bernhard
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How can I encode Strings to HTML content. including the special
caracters (é, è), because I have bzzarre outpouts.
I have the same problem and didn't find a proper solution for it.
As far as I understand you have two possibilities:
1.) You use utf-8 as the character set of your JSPs, so the
Do you really know what you're talking about?
-Ursprüngliche Nachricht-
Von: Mark Galbreath
Gesendet: Mittwoch, 15. Januar 2003 16:32
An: 'Struts Users Mailing List'
Betreff: RE: String , html encoding
This is really a luzer question, dude. Even negative effort could have
given you:
I still have the problem to transform a String containing national special
characters to the appropriate HTML encoding.
i.e.: schön reich -- schouml;n amp reich
The class org.apache.struts.util.ResponseUtils only transforms the 4
characters , , and into their html representative.
Is there
Hi Joao,
technically it is no problem to use one action for multiple tasks. You can
use a request attribute to determine which use case you want to work
through.
But on the other side it appears cleaner to have a single action for a
single use case.
In our projects, we try to have separate
I wonder if this problem is too easy or too hard - may please somebody
comment this?
Craig?
Thank you very much
- original message -
I still have the problem to transform a String containing national special
characters to the appropriate HTML encoding.
i.e.: schön reich --
I still have the problem to transform a String containing national special
characters to the appropriate HTML encoding.
i.e.: schön reich -- schouml;n amp reich
The class org.apache.struts.util.ResponseUtils only transforms the 4
characters , , and into their html representative. But in an
Is there a smooth way to use regular expressions in the input validation?
i.e. to allow only [A-Z|a-z|0-9]
Regards,
Bernhard
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hello!
Is there a parser around, which is able to parse a String with special
characters (like in the German language), and can transform them into valid
html encoding?
(like schouml;n for schön)
Best regards
Bernhard
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
I still have trouble with mixed up pages.. Sometimes there is output from
form beans visible - see the screenshot here: http://www.boeny.de/Bug1.jpg
Used is WebSphere - maybe this causes the trouble, I think.
Any hints highly appretiated!!
Best regards,
Bernhard Hirschmann
--
To unsubscribe,
Might help if you post the JSP code responsible for rendering the page. The
resulting html would also help.
-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 16:29
To: Struts User Mailing List (E-Mail)
Subject: mixed up pages
I
Hey abhishek,
we're running it on the same platform which works great.
Just make sure, not to use the conventional Xalan an Xerces, but the one
comming with WebSphere. So in the Library path of your project, don't add
the JARs, but the variable WAS_XALAN and WAS_XERCES. Then the special
Hi group!
I wonder if it's possible with a logic tag, to check if a List in a form is
empty.
This doesn't work, it just checks if the attachmentsList is null:
logic:present name=document property=attachmentsList
Regards,
Bernhard
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
2002 18:25
An: Struts Users Mailing List
Betreff: RE: checking a empty list
Use logic:empty, not logic:present.
-Original Message-
From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]]
Hi group!
I wonder if it's possible with a logic tag, to check if a
List in a form is
empty
Hello struts user!
Second try with my problem. Maybe someone has a clue?
-Ursprüngliche Nachricht-
Von: Hirschmann, Bernhard
Gesendet: Freitag, 22. November 2002 13:35
An: '[EMAIL PROTECTED]'
Betreff: [OT] strange connection problem
Hello!
I have a strange problem with a socket
Hello!
I have a strange problem with a socket write error from time to time with
our application, which occures not reproducable, but maybe once or twice a
day.
In the browser I may see then besides parts of my regular view some toString
results of my beans in the form.
When I go back in the
Hey Jim,
I'm not sure if this helps, but maybe something is mixed up with your files,
when you edit the
myApp/Web-inf/classes/org/comp/ApplicationResources.properties
You shouldn't use the classes path, but the src path for editing.
Usually your IDE will copy the ApplicationResources in the
There's a menuitem refresh from local on the context menu of package or
class. Use this to get changes recognized in Eclipse.
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: edgar [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 22. November 2002 18:01
An: 'Struts Users Mailing List'
Hey Yadnesh,
that's pretty easy. You just keep a List in your form bean, containing the
java beans, which keep the data for each line. In the JSP you just iterate
over that List, accessing the beans. I'm doing that all the day...
Did you take a look in the tutorials?
Regards,
Bernhard
HOW do you set the charset?
You should do it this way:
%@ page contentType=text/html; charset=utf-8 %
...instead of this way:
meta http-equiv=Content-Type content=text/html; charset=utf-8/
At least, this is my experience. Websphere on Solaris only with the first
variant.
Regards,
Bernhard
Huy, you may provide a code snippet for more details about your problem.
Bernhard
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Hey Denis,
I'm not sure if I got you right, but you surely can access a nested bean in
a form.
i.e.:
html:text name=aForm property=aBean.aData /
...is that understandable?
(Do you have a nested taglib?)
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Denis Wang
You should always populate aBean to the form in the action.
But you should also populate a empty aBean in the constructor of the form,
to avoid a NullPointerException.
regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Denis Wang [mailto:dwang;brandmuscle.com]
Gesendet: Dienstag, 12.
Hello!
I use the onchange event handler to submit a form if a value in the select
box is changed.
However, the value doesn't get updated in the form before the submit
occures. The form-bean doesn't get the actual selected value.
html:select property=selectedLocation onchange=submit()
Hi Andrew,
thanks for your help!
The problem was really a inproper use of the form, so the right setter
wasn't found.
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Andrew Hill [mailto:andrew.david.hill;gridnode.com]
Gesendet: Montag, 11. November 2002 10:30
An: Struts Users Mailing
Hello Struts user!
I use a html:checkbox for setting a boolean value. But after submit, the
boolean value in the form bean isn't set correctly.
Do I have to use a String value for that in my form bean? I tried this, but
without success.
Regards,
Bernhard
--
To unsubscribe, e-mail:
Thanks for your comment, but I'm not sure if that's the problem.
Here is the scenario:
1.) While populating the form, the value is true.
2.) Then the user disables the checkbox - for setting the value to false.
3.) Submit occurs.
4.) In the action I check the value and I see that it is true.
Hi Deepank,
I don't use a JavaScript function for this.
I use a simple submit button.
You missunderstood. It shouldn't be unchecked, if it is true. I didn't write
that. But it may sounds a bit confusing what I've written:
4.) In the action I check the value and I see that it is true
means:
Betreff: Re: AW: checkbox problem
2002. november 11. 14:42 dátummal Hirschmann, Bernhard ezt írtad:
Thanks for your comment, but I'm not sure if that's the problem.
Here is the scenario:
1.) While populating the form, the value is true.
2.) Then the user disables the checkbox - for setting
An: Struts Users Mailing List
Betreff: Re: AW: AW: checkbox problem
2002. november 11. 15:01 dátummal Hirschmann, Bernhard ezt írtad:
Hey Tib,
if I get you right, then the boolean value in the form will NOT be set to
false, if I uncheck the cb and hit submit? Is that right?
Yes. The cb sends
77 matches
Mail list logo