-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 3:23 PM
To: [EMAIL PROTECTED]
Subject: Struts UML Diagrams
Hi guys,
Does any one know where I might find the complete or partial
UML diagrams of struts??
Not really UMLish, but
Here are two more:
Struts 1.0.2:
http://rollerjm.free.fr/pro/Struts.html
Struts 1.1:
http://rollerjm.free.fr/pro/Struts11.html
(I have no association with them and dunno how accurate they are--i found
'em just by doing a Google search on Struts UML diagram)
-Original
-Original Message-
From: Eddie Bush [mailto:ekbush;swbell.net]
Sent: Wednesday, November 06, 2002 3:08 PM
To: Struts Users Mailing List
Subject: Re: Graph of Struts Growth.l
I just can't imagine there being so danged many emails - and such a
large percentage of them [OT].
Perhaps it's because your script tag isn't closed? Maybe try:
SCRIPT language='JavaScript' src='../scripts/formscripts.txt'/script
or
SCRIPT language='JavaScript' src='../scripts/formscripts.txt'/
-Original Message-
From: kiuma [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Or, if that's not it, try changing the file extension to .js and/or
specifying the type:
SCRIPT language='JavaScript' type=text/javascript
src='../scripts/formscripts.js'/script
-Original Message-
From: Bartley, Chris P [PCS]
Sent: Thursday, October 10, 2002 12:10 PM
To: 'Struts
I'd add that even Form could be confusing to some. Based on the number of
posts to this list, there appears to be a large percentage of new users who
don't understand that both GET and POST requests can populate a form bean
(and that you don't need a form.../form to do it).
I'm not sure what a
for this.
(
.. and then you could do:
- DynaActionFormBean
- DynaValidatorFormBean
- ...
I know it kind of belabors the point, but it's probably easier
understood to use such nomenclature.
)
Bartley, Chris P [PCS] wrote:
I'd add that even Form could be confusing
*look* at the javadocs.
I'll agree to disagree if you will ;-)
Bartley, Chris P [PCS] wrote:
No, my point is that any use of the word form in the name
of the class is
potentially confusing because apparently sometimes people
mistakenly think
Oh, i have to use a form.../form in the page
I'd strongly recommend not doing this kinda trick with the session (we
briefly tried a prototype, and bailed on it because it created more problems
than it solved).
Here are a few gotchas:
* By using the session, you eliminate the possibility that the user can view
your app with more than one
The Action class has a getResources() method you can use to get the
MessageResources.
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 1:53 PM
To: Struts Users Mailing List
Subject: RE: dynamic use of ApplicationResources.properties
See my other post in this thread why it's a Really Bad Idea to store the
previous URL in the session. I promise you, you're only gonna cause
yourself more pain.
chris
-Original Message-
From: John Sherlock [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 4:09 AM
To:
Something like this might work:
bean:define id=actionMappingForThisScreen
name=org.apache.struts.action.mapping.instance
type=org.apache.struts.action.ActionMapping/
bean:define id=formName name=actionMappingForThisScreen property=name
type=java.lang.String /
bean:define id=formBean name=%=
Something like this might work:
bean:define id=actionMappingForThisScreen
name=org.apache.struts.action.mapping.instance
type=org.apache.struts.action.ActionMapping/
bean:define id=formName name=actionMappingForThisScreen property=name
type=java.lang.String /
bean:define id=formBean name=%=
A couple notes:
* Mark's suggestion will only work if you've already put the message in the
session under the key attribute.
* The mix of double quotes in Mark's code probably won't work...i believe it
should instead read:
logic:equal parameter='%= session.getAtribute(key) %' value=true
simple
JSPs, or a small number of more complex JSPs. It's nice to know that,
using your solution, I at least have the option.
-Original Message-
From: Bartley, Chris P [PCS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 12:19 PM
To: 'Struts Users Mailing List
single
quotes won't work within a Struts tag (na-na-na-na-na!!); the
key quotes
have to be escaped.
-Original Message-
From: Bartley, Chris P [PCS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 1:04 PM
A couple notes:
* Mark's suggestion will only work if you've
This sort of approach...
logic:isPresent property=mytaglib:getvalue name=cost /
FREE
/logic:isPresent
...will not work because you can't nest XML tags like that (a tag within an
attribute). Most JSP compilers blow up when they see stuff like that.
Since yours apparently didn't AND
that cast
But I also use WLS 6.1SP2 and the single quotes throw an
exception every
time. Strange.
-Original Message-
From: Bartley, Chris P [PCS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 1:31 PM
To: 'Struts Users Mailing List'
Subject: RE: message checking
And plain ol' company.getId() doesn't work? Like this:
logic:iterate id=company name=company_list type=blah..CompanyView
%
HashMap map = new HashMap();
map.put(company,company.getId());
map.put(method,view);
pageContext.setAttribute(map, map,
switching over is extremely easy.
--
Martin Cooper
Don't get me wrong -- your solution to my original problem is very
useful, and it's nice to know that I have the option to do
it that way
if I choose.
-Original Message-
From: Bartley, Chris P [PCS] [mailto:[EMAIL
That symptom usually indicates that you forgot to import the bean taglib.
Dave Weis's suggestion is correct. I do similar stuff all the time, e.g.:
link rel=stylesheet type=text/css href=html:rewrite
forward=forward.stylesheet/
(This works because the JSP parser doesn't care about the HTML
Tiles can also help you separate JSPs by role--all you need to do is provide
your own definition factory. In my current app, I created a definition
factory to take the user's role into account. Then in my struts-config, I
just forward to, say, template.home and Tiles does all the hard work of
Note that the html:link tag will do URL rewriting for you. So, to take
advantage of that in your case, you might consider using the html:rewrite
tag in your link, like this:
a href=html:rewrite forward=forward.foo/my link/a
Where you've defined forward.foo in your struts-config.xml like
23 matches
Mail list logo