Hi,
make the following your motto:
Everything you validate in JavaScript must be validated again on the server-side.
and
Code your app the way it would run also with Javascript off, even though it might
result in less comfort for the user, or longer response times (because it must
go back to
As I understand it (from the javadoc): The ServletConfig contains
configuration of the current servlet, the ServletContext contains
configuration for the entire webapp. The see also is often used for
something that is like this, which might interest you also. e.g. the
javadoc for Map has a see
ServletConfig and ServletContext are two different things (even if the
documentation is not so clear about it all the time)
ServletConfig init parameters are valid only for your one servlet
ServletContext init parameters are valid for all things / servlets / jsps
in your context, i.e. web
have a look at logic:iterate ...
tomK
-Original Message-
From: Gupta [mailto:[EMAIL PROTECTED]]
Sent: zondag 6 januari 2002 19:21
To: [EMAIL PROTECTED]
Subject: Iteration logic solution
Hi Guys,
I Have little problem with struts iterate tag lib.
My code is below and just
Hi Michael - this is how I do it - with a special class to manage the options in the
list.
Mine has hard coded non-internationalized values (terrible really).
Sorry about absurdly long names - I wasn't in an abbreviating mood that day!
hope it helps - Keith.
hello,
I know we had some similar questions. But I couldn't make it run.
I know we can use scriptlets inside of any struts tag. here is what I wrote:
form:text
readonly=%=true %
property=kontofuehrung1data.knelimitregion1
styleClass=N100
/
And I got an error of
try using single quotes the readonly attribute and double quotes inside the
scriptlet thus-
snip -
form:text
readonly='%=true %'
property=kontofuehrung1data.knelimitregion1
styleClass=N100
-snip
HTH
Jin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday,
:)
:) Thanks guys, it is working.
:) But still I couldn't believe such a simple solution can solve this.
:)
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Monday, January 07, 2002 12:50 PM
An: [EMAIL PROTECTED]
Betreff: RE: JSP scriptlet
Hi
I'm running Struts 1.0 on Tomcat 3.2.2, and would like to remove the verbose
console output on startup.
Is there a simple way on doing this ?
I've tried setting web.xml and server.xml values with no success.
Here's an example:
[java] Pop org.apache.struts.action.ActionMapping
You probably missed the right entry in web.xml:
init-param
param-namedetail/param-name
param-value0/param-value
/init-param
removes all startup logging (and not debug).
hth,
tomK
-Original Message-
From: Patrick Liardet [mailto:[EMAIL PROTECTED]]
Sent: maandag
Platform: iAS 6.0 SP4 on Solaris 8
I get the following exception when I enable versioning in iAS 6.0 SP4. With
versioning enabled, I cannot use Struts. Simply disabling seems to avoid
this and Struts and iAS 6.0 seem to behave OK together. This is troubling
because to have JSPs automatically
Hi,
You can specify action URIs like this in the frame src:
frame name=updateBean src=updateBean.do?action=showThisPage
HTH,
Vaughan.
-Original Message-
From: Charles Tse [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 10:57 AM
To: Struts Users Mailing List
Subject: Use
Is there a recommended method for performing normal date validation of struts form
date property?
It seems like I am doing a lot of work that may already be done (parsing date text,
catching exception in multiple places, maintaining both text and date properties, etc).
Thanks in advance for
I'm getting the following familiar error when running the scaffold sample on
Tomcat 4.0.1:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
I can build and dist from the nightly build. Cannot run the tests task, b/c
I get the following
Now that Struts has passed its 1.0 birthday
I would like to suggest something that I think
would help the many users it is attracting.
When I have lead development groups I have
explained one of the differences between a
prototype and a product as programming for
more that the narrow path.
In case anybody else runs into this, it's evidently a bug in the SUN 1.3
JDK.
http://groups.google.com/groups?th=dd4229956bceb2f4rnum=1
Lee
-Original Message-
From: Torrence, Lee
Sent: Sunday, January 06, 2002 10:38 AM
To: 'Struts Users Mailing List'
Subject: custom tags: IBM 1.3
This has just been answered by Ted Husted -- check the archives (time:
20020106T1652)
hth,
tomK
-Original Message-
From: Gupta [mailto:[EMAIL PROTECTED]]
Sent: maandag 7 januari 2002 17:56
To: Struts Users Mailing List
Subject: Using 2 different actions from one form without java
One possible route to skirting the problems you correctly outline, and many
others, is to use a framework which implements Struts, such as, but not limited
to, the Expresso framework, where much of the plumbing is done for you.
Taking this one step further, using a code generator, such as, but
Hi,
To check if an object is null or not in MVC2 model I followed below code,
Object obj1= new Object();
if(obj1==null){
//do some
}else{
//do some
}
How do i exactly use logic tag lib in above case.I tried with empty/notEmpty
and present/notPresent tags but I got
Hi,
Could anybody advise a DESIGN PATTERN for implementing internationalized
struts-form:options (when using a Collection) that would use internally
struts-bean:message (or similar) mechanism ?
Use case:
- draw content for a combo box (names and values) from a database
= options
You might have a look at the following document for ideas for your
presentation material to your engineering staff as it is a technical
presentation that discusses the Struts/Expresso architecture. The pdf slide
show can be found at:
I realize that this has not been commented on, but as I was reading from old
messages, I came across this one and thought I might ask a design question.
It seems to me that there are two different kinds of information, and that
each kind of information should properly be handled in its own,
Hi all,
First let me say that I know absolutely nothing about HTML. However that
doesn't deter me.
I'm trying to create a wizard framework in struts, you know the sort where
the are a number of pages linked by next' and 'back' buttons.
So I have these buttons on my forms and need the action bean
just wondering if anyone has experiences with
using struts on iplanet web server 6.0 sp1?
thanks
yan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
Has anyone looked into the area of using (transaction) tokens
to detect out of order requests, for web apps that use frames?
We have previously developed a web app that relied on the Struts
token generation mechanism to detect out of order requests. This meant
that we could intercept
Laurent
I came across this very issue yesterday, this is how I solved it (probably
straying too much from design into implementation):
I couldn't find a way to easily (or quickly) access the internals of the
messages class so I created my own.
Each varying option set (e.g. coutries, states,
Frank,
Your logging suggestion makes sense to me, I have hit
every one of these myself at least once. I hadn't thought
of them as bugs, but I it may be helpful to add them to the
Apache Software Foundation Bug Database so that they
can acted on or rejected. I will try to do the same. The URL
Hi All,
I need to develop a Generic JSP using struts framework.I would explain you my problem.
We have few links on page that represents the Objects corresponding to which we
already have some classes built.
We also have tables in the database corressponding to each and every class and
Thanks Ted,
Would you recommand for each JSP call to have an associated PreJspAction
that forwards control to that JSP?
Cheers,
Antoine
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 5:41 AM
David Bolsover wrote:
I think I need a mechanism to force a reload of Frame1 when Frame2 is
updated with welcomeback.jsp but I am unsure how to do this.
Any help?
One solution would be to use Javascript in Frame2 to reload Frame1.
-Mark
--
To unsubscribe, e-mail: mailto:[EMAIL
I'm trying to get access to the MessageResources object that, according to
the docs, is an application scope bean. I need to build an href in this
manner:
a href=%=refstart + bean:message key=footer_locale/ +
/refend.html%Click here
/a
Of course, this doesn't work (with single quotes,
Group,
With Struts Nightly build and Tomcat 4.0.1:
Why does struts have to be in the WEB-INF directory structure?
I can see that the root of this requirement is the class loader. Now
that I am experimenting with the nightly Struts 1.1 build I also have
to put the Commons jars in the WEB-INF
I have some old HTML code that I am placing into the Struts framework. The
HTML code relies on the NAME attribute in form elements in order to run
Javascript validation. If I try to use the NAME attribute with the
html:text tag, for instance, Struts is trying to use that for the
attribute name
Hi,
I am new to Struts.
Same problem as described using:
RH Linux 7.2
07-jan Struts and Torque
06-Jan Tomcat 4
If someone comes up with a working combination, I'd be interested in hearing
it. In the meantime back to Struts 1.0.
-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent:
You might check that the commons jar files are in the same directory
as struts.jar. I assume WEB-INF/lib.
David Morris
[EMAIL PROTECTED] 01/07/02 05:34PM
Same problem as described using:
RH Linux 7.2
07-jan Struts and Torque
06-Jan Tomcat 4
If someone comes up with a working combination,
Yes, they are there. Same problem.
-Original Message-
From: David Morris [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 4:46 PM
To: [EMAIL PROTECTED]
Subject: RE: Struts Validator Load Failure
You might check that the commons jar files are in the same directory
as
I must be missing something. I want to do something like this:
print header.jsp
print a.jsp or b.jsp
print footer.jsp
If an Action can only forward to another action, it can't both print header.jsp
and decide whether to pass control over to a.jsp or b.sjp, can it?
Ted Husted wrote:
There
If you look at the template taglib, you can setup a template jsp which
always includes the header, footer, and a body section. Hence you don't need
to worry about the header and footer, just the main content in the body
section. Thus your action doesn't need to be concernered with header or
Mark,
I am a newbie. But, maybe this will help.
1. The control jsp decides beforehand whether a.jsp or b.jsp will be
printed and saves this value in session.
2. Forwards to print header.jsp which after printing forwards back to
your initial control jsp.
3. Control.jsp calls the print a.jsp
We got around this by retrieving the lists from the database and store them
in the application scope. We created a servlet that preloads all the lists.
In each JSP, you can use the STRUTS tags to assess the lists from the
application scope and hence use them in your form.
This only works
Robert Parker wrote:
If you look at the template taglib, you can setup a template jsp which
always includes the header, footer, and a body section. Hence you don't need
to worry about the header and footer, just the main content in the body
section. Thus your action doesn't need to be
[EMAIL PROTECTED] wrote:
1. The control jsp decides beforehand whether a.jsp or b.jsp will be
printed and saves this value in session.
2. Forwards to print header.jsp which after printing forwards back to
your initial control jsp.
Exactly. How do I accomplish this step? I see how I can
- Original Message -
From: Mark Woon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 1:19 PM
Subject: Re: Questions on Actions
[snip]
You're basically saying I don't need to use Struts. And you're right, I
already
have everything
- Original Message -
From: Mark Woon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 08, 2002 1:21 PM
Subject: Re: Questions on Actions
[EMAIL PROTECTED] wrote:
1. The control jsp decides beforehand whether a.jsp or b.jsp will
be
printed
Hello,
On Sun, 6 Jan 2002 17:24:08 -0600
George White [EMAIL PROTECTED] wrote:
This isn't exactly a struts question but I have seen comments about JavaScript
often enough I was hoping someone could answer this very general question.
The people I work use struts but are avoiding JavaScript
Hi,
How are you doing? My article on view component organization with Struts
and Tiles is published in JavaWorld:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html?
Here is the summary:
Every Web application developer must organize view components, such as
header, body, and
Hi All,
I am hoping someone might be able to shed some light on this.
1) Suppose two users log in to the server
2) Each user/client gets a web page that will call an action after either client does
a submit causing the action to be called
3) Suppose the two clients submit the page at the same
Hi,
As you can see in the Root Cause exception the form tag is being processed
when the exception occurs. So there's probably some typo in one of your form
tag attributes.
Freek
on 03-01-2002 21:40 you wrote:
Root Cause:
javax.servlet.jsp.JspException: Cannot find ActionMappings or
Hi,
If you want Struts to handle the field and populate and store its value in
some Form bean, you can use the property attribute:
html:form action=myAction
html:text property=myProperty/
/html:form
This tells Struts that it should store and retrieve the value of the text
field using the
50 matches
Mail list logo