Well, I believe that you are not allowed to mix static and dynamic text
within a JSP, so something like
alert(Error message: bean:write name=msg/);
should fail. I read once that enclosing the dynamic text in single quotes
whould work (never tried it though). One solution that I do know
nice one, didn't even occur to me to do this.
Andreas
-Ursprüngliche Nachricht-
Von: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 24. März 2004 16:05
An: Struts Users Mailing List
Betreff: RE: html:javascript question
var myMessage = bean:write name=msg /;
Wow, I'm confused. If javascript was disabled, the onSubmit trigger was
ignored, but the button onClick trigger was honored? I'll have to try that
out.
Andreas
-Ursprungliche Nachricht-
Von: Dmitrii CRETU [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 23. Marz 2004 11:09
An: Struts Users
hi sam
first off, javascript is not really fun, but here goes.
your form should have the same name as the formbean you associate with it.
you can check this in the html code generated from your jsp. the html:form
tag does not supply an attribute for setting/overriding the name of the form
Hi Uma,
Did you reference the RequestProcessor with its fully qualified class name
in struts-config? I guess you must have, otherwise you wouldn't have gotten
that great error msg. Anyway, it might look something like
snip
controller processorClass=a.b.c.ClassName
debug=0
I guess if one really, really wanted to, one could perform the validation in
java using something along the lines of the SimpleDateFormat class. Though I
do see the advantage of letting the validator handle the chore for you.
Andreas
-Ursprüngliche Nachricht-
Von: Anderson, James H [IT]
Yo Dan,
I'm sure you meant RTM?
Andreas
-Ursprungliche Nachricht-
Von: Daniel Lipofsky [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 17. Marz 2004 03:22
An: Struts Users Mailing List
Betreff: RE: non-ascii characters
I have a database with ISO 3166 country
names and codes that I use
Hi Andrew and Shobhana,
As far as I know, you cant mix static text and dynamic text within a JSP. If
I remember correctly, something like the following code should work.
%
String tempString=javascript:find( + value + \;; // Not sure about
the semicolon...
%
and then:
html:text size=20
Hi guys!
Just something I believe to be true:
Aren't most systems compromised by incorrect configuration? I believe the
second most common weakness must be the postponement of patches to buggy
software - see for example the whole alphabet of worms working their way
through IIS and Outlook
Yeah, you're right, its just a name. Something similar can be said for the
following slogans:
1. Electrolux (vacume cleaners / hoovers) tried to enter the American market
with the ingenious slogan Nothing sucks like an Electrolux (I'm so not
kidding)
2. Chevrolet tried selling Chevy Nova's in
Hi Mohamed!
Damn, that was a cryptic post. Now you've gone and sparked my curiosity:
what rules didn't you follow while snipworking in Actuate the Reporting
tool and in J2EE/snip?
Regards, Andreas
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet:
Hi Erol,
I suppose you have already visited
http://jakarta.apache.org/struts/learning.html, so I'll tell you how I
started. First I installed tomcat, then I deployed the example application
(by putting the .war file in the webapps directory of tomcat). After
clicking around a little I started to
directory of tomcat. (which war
file?)
If you have a free time, please tell me setup step by step
Thanks.
Erol
Andreas Solarik [EMAIL PROTECTED] wrote:Hi Erol,
I suppose you have already visited
http://jakarta.apache.org/struts/learning.html, so I'll tell you how I
started. First I installed tomcat
Just a guess, but if the method field of the form is set to GET, then you
can only transfer a limited amount of data.
If you have set the method to POST, then I'm at a loss.
Andreas
-Ursprungliche Nachricht-
Von: as as [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 11. Marz 2004 14:46
,
Thanks for the quick reply.
I am using struts form tag as follows.
wondering ,syntax wise, how I can mention form method as GET...in this tag.
Thanks in advance,
Sam.
html:form action=teacherDisplay name=teacherForm
type=com.model.TeacherForm
Andreas Solarik [EMAIL PROTECTED] wrote:
Just
Hi Kumar,
when you look at the documentation for bean:write
(http://jakarta.apache.org/struts/userGuide/struts-bean.html#write) you can
find that it allows formating. Bean:message looks like it does not support
this feature - which kind of makes sense when you consider what its used for
(lookup
Ah, I guess I misunderstood your previous post. Maybe this will help you
along?
snip
Use the formatKey attribute if you want to pull it from message resources.
Have
a look at java.text.DecimalFormat for an explanation of formatting patterns
for
decimal numbers.
/snip
The above code came from
Quoting Ted from a forum on JGuru:
snip
Re[2]: More info: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Topic: Struts
Ted Husted PREMIUM, Feb 10, 2003
Under b3 and later, you may need to specify the messages resources in the
struts-config:
message-resources
So, is it just me, or are licensing and copyrighting rather unrelated
issues?
-Ursprungliche Nachricht-
Von: Kevin Wang [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 09. Marz 2004 16:31
An: Struts Users Mailing List
Betreff: Re: copyrighted documents in Struts package
If those files
Hi Manish
If it doesnt have to be an 'ant tool', then I can recommend TogetherJ, or
argouml (argouml.com) if it has to be free.
andreas
-Ursprungliche Nachricht-
Von: Manish Singla [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 25. Februar 2004 04:36
An: [EMAIL PROTECTED]
Betreff: [OT]
Ages ago, while using JBuilder5, we found a similar problem. Any editing of
text files belonging to the war (web.xml, app.properties...) was lost if it
was performed while the integrated tomcat was running (copied an old version
of the file from some cache over the original files when it was
21 matches
Mail list logo