paramName (in your case viewcontactlist) is the name of the bean in the
request (paramScope="request"). You need to have a paramProperty
="beanProperty" also.
>From the docs:
Specify both the paramName and paramProperty attributes - The specified
property getter method will be called on the JSP
Sounds like you need to add a custom handler like so:
Your "EJBCreateHandler" class would extend from ExceptionHandler and
override execute. In there you can then create the custom parameterized
messages you want. In the execute method of a ExeceptionHandler you have
references to the
Your link could look like this :
Link Text
The javascript could look like this :
linkClicked() {
document.forms[0].myHiddenField.value = 'something';
document.forms[0].action = '/differentAction.do';
document.forms[0].submit();
}
You could pass the "something" value into the
Does anyone know what version of Commons is with Struts 1.1b2 in WSAD 5?
Or what version of Commons Validator was distributed with Struts 1.1b2 in
general?
I read the release notes for 1.1b2 and while they mention using commons
they do not specify versions.
Thanks,
Tim
---
I am using WSAD 5 and am having a problem enabling the Tiles plugin in the
struts-config.xml file.
I put this entry into the file:
and I get validation errors on the first 2 set-property lines
The error messages are:
"Invalid data for attribute "property" in part defi
I am looking for the Tiles version that works with Struts 1.0.2. Google,
the Tiles site, etc have not helped. I have seen mention of a file called
tilesForStruts1.0.jar but I cannot find anywhere. (Of course I would love
to upgrade to the latest of everything Struts/Tiles/etc but VAJ is holding
You could
I tend to do that to get away from calling getters, plus if you use it in
the jsp more than once you already have it defined.
Tim
ntains the
'tilesForStruts1.0.jar'
you mention and also a 'tiles-blank-struts1-0.war to help you get started.
g
Esther
> -Original Message-
> From: Tim T. Young [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 24 juli 2002 18:04
> To: Struts Users Mailing List
> Sub
I am converting a couple of test pages from templates in Struts 1.0.2 to
use Tiles. My question is, how do I do something like this:
Can I use "extends" to turn the "sidebar" off? From a couple of quick
tests this seems not to work (it tries to load a file
You will want to add the path of that resource file to your webapp's
classpath. (Or put the resource file, with any corresponding directory
structure, into a path that is already in the classpath.)
Tim
Is anyone else getting this bounce when posting to the list? Is it
possible to remove the offending address?
Tim
"AutoReply,
Just hang around this list and you will get more information than you can
process in any given day about Struts, DBs, J2EE containers, beer, design
patternsand stick around for casual Fridays too!
Tim
Couple of ways I have handled this...
1) Don't go to a page directly (*.jsp), go to an Action (*.do) first to
prep the form and put it in whatever scope you have it configured for
(request, session, etc). Some people don't care for these "preparing"
actions, though. Like any design you have to
I think in this case you will need your onchange to set a flag (hidden
field) indicating which list was used, then submit the form. In your
actionform you would need a corresponding property.
Then in the servlet you then could ask the actionform for the flag.
Tim
"vk vk"
I tend not to mix my ActionForms and any "business" type classes at all.
I keep the forms lightweight, even "dumb" by having only string data (this
also supports redisplay properly) In the action I take the data out of the
form and give it to the business layer. This is 2-way separation - Struts
Hi Tracy. Your code looks correct, so you might try tracing through the
iterate tag and the write tag to get a better idea of the problem. I had
to do that several times before when I get those types of errors that
aren't obvious. Start at the write tag to see what it is getting (and what
it i
I get that error when I add a property to a bean (with, in my case,
Websphere still running) and then try to add that new property to a tag,
and then run it. Struts caches the PropertyDescriptors and so I end up
having to restart Websphere to pick up the changes.
Tim
Refactor mercilessly! :)
Tim
"nathan
I would be curious to see if anyone has a design for this. I fixed it by
moving to Tiles, as it handles errors much better. It is a little more
complex than straight templates, but it is worth it once you do your first
"extends" definition and realize the possibilities...
Tim
Hello and welcome!
HTML Tags --> http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html
Bean Tags --> http://jakarta.apache.org/struts/doc-1.0.2/struts-bean.html
Logic Tags -->
http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html
Template Tags -->
http://jakarta.apache.org/struts/
Why is it that everytime I read Agile/XP related material, I feel
energized, inspired and positive, but everytime I am asked to fill out a
Project Definition Report/Architecture Diagram/Test Planblahblah(TPS
Report)blahblah, I feel drained, suffocated, and wasteful? From the
resources on the art
Dan,
That is a great diagram. It will save me LOADS of time explaining or
training people on Struts...
Thanks for the contribution,
Tim
Someone please correct me if I am wrong, but ...
works doesn't it? I think I remember doing that before.
Tim
"Aiken,
I need to create a page that will have links on the LH navigation bar to
anchors in the current page.
I would like to know if this first scenario is possible. I have browsed
some anchor info in the archives but did not see anything that addressed
this exactly.
1. Step One ( /page.do#step
My fear with another list is that good information will be available in
both, and I will have to process 300+ emails a day (2 lists x 150 a list).
Tim
Common guys, keeping up is hard enough without having to babelfish
everything!
"Galbreath,
Not tested or anything, but from
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image ...
Ashish Kulkarni
You could just make a link in the jsp instead of going through an action.
If you have to go through an action, mmm, does having redirect="true" make
you able to go to "external" sites?
Tim
This was sorta mentioned before, but...why not have and index.do instead of
an index.jsp? Does index.jsp show something to the user or does it just
do some logic and then call the server?
If it does the latter, make it a .do
Tim
I see nothing wrong with what you are doing. You don't even need the name
="" in the xml. You might want to look at in case you need to
do anything more with maintaining session, etc.
Tim
|+->
|| "Piper, James D CECOM SEC |
|
Great resource, keep up the good work.
Tim
John Yu
including some drugs used to treat hypertension and some mood
altering drugs.
I hope beer is not on that list...
wbchmu
I would agree that your model should not be manipulating ActionError(s).
If your requirement is that you MUST send multiple errors back from the
model then perhaps a custom exception (with a list of other exception,
errors string, or keys to i18n, internal to it), that you can pick apart in
the A
Database connections (ie jdbc) are usually done through connection manager
classes or container managed data sources. Our infrastructure provides a
PoolManager which does db, ldap, custom, etc pooling. When we want a
connection we just "PoolManager.getCurrent().getConnection(...). The
connecti
You will want to use a tag to display properties of a bean,
plus the tag (you are already using) to keep the data.
Tim
"Smith,
It's way too productive for my taste...
raghuramudu.v@pol
Are you using Websphere? If you are, when null String objects get written
to a jsp
they produce a "null". Early versions of Websphere did not do this but we
had problems
starting with version 3.5.3.
I just put a errors.header= and errors.footer= in the properties file and
it takes care of it,
I am using a subclass of DispatchAction to route multiple operations (add,
delete, etc) to methods
of the same name. I have named all of the buttons the same and used that
name in the parameter
entry of the action mapping (not concerned with i18n). The quirk I have
found is that since my button
I am preparing technical and business information to deliver to a
technology group
at my firm. I know the issue of licensing and copyright will come up and
of course I
have read and studied the Apache license. One question I know will be
asked is this:
How does the Apache process (with its comm
In your ApplicationResources.properties file put errors.header= and
errors.footer= lines with either something meaningful or just nothing and
they will go away.
Tim
Retain Until: 07/26/2002
Retention Category: G90 -
Information and Reports
On Wed, 26 Jun 2002, Tim T. Young wrote:
> Date: Wed, 26 Jun 2002 10:44:25 -0500
> From: Tim T. Young <[EMAIL PROTECTED
Yes VAJ/WTE is a pain, but it is ok to have the same configuration in the
webapp file and the web.xml file.
Like this...
action
*.do
and the actual servlet definition, etc. If you deploy WAS 3.5.x running
in compatibility mode you have to do the same kinda thing in that
environme
42 matches
Mail list logo