RE: Struts UML Diagrams

2002-12-11 Thread Bartley, Chris P [PCS]
-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

RE: Struts UML Diagrams

2002-12-11 Thread Bartley, Chris P [PCS]
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

RE: Graph of Struts Growth.l

2002-11-06 Thread Bartley, Chris P [PCS]
-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].

RE: javascript help

2002-10-10 Thread Bartley, Chris P [PCS]
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,

RE: javascript help

2002-10-10 Thread Bartley, Chris P [PCS]
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

RE: struts 2.0 naming conventions?

2002-09-27 Thread Bartley, Chris P [PCS]
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

RE: struts 2.0 naming conventions?

2002-09-27 Thread Bartley, Chris P [PCS]
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

RE: struts 2.0 naming conventions?

2002-09-27 Thread Bartley, Chris P [PCS]
*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

RE: [OT][WORKFLOW] Any best practice for back, save, continue b uttons?

2002-09-24 Thread Bartley, Chris P [PCS]
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

RE: dynamic use of ApplicationResources.properties

2002-09-24 Thread Bartley, Chris P [PCS]
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

RE: Backtracking Breadcrumbs

2002-09-20 Thread Bartley, Chris P [PCS]
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:

RE: Getting the current page's form name from within a JSP page?

2002-09-20 Thread Bartley, Chris P [PCS]
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=%=

RE: Re-using JSP pages -- Follow-up

2002-09-20 Thread Bartley, Chris P [PCS]
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=%=

RE: message checking

2002-09-20 Thread Bartley, Chris P [PCS]
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

RE: Re-using JSP pages -- Follow-up

2002-09-20 Thread Bartley, Chris P [PCS]
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

RE: message checking

2002-09-20 Thread Bartley, Chris P [PCS]
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

RE: Logic tag

2002-09-20 Thread Bartley, Chris P [PCS]
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

RE: message checking

2002-09-20 Thread Bartley, Chris P [PCS]
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

RE: Please help ...

2002-09-20 Thread Bartley, Chris P [PCS]
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,

RE: Re-using JSP pages -- Follow-up

2002-09-20 Thread Bartley, Chris P [PCS]
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

RE: dynamic img src attribute

2002-09-19 Thread Bartley, Chris P [PCS]
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

RE: [OT] Newbie Design best practice question

2002-09-17 Thread Bartley, Chris P [PCS]
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

RE: Action without a form

2002-09-12 Thread Bartley, Chris P [PCS]
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