Re: passing attributes to tiles

2005-03-02 Thread brenmcguire
If you mean HTTP request parameters, then they are accessible from all JSP pages included in a Tiles definition, since they share the same HTTP request. But remember that it is not a good practice. It is better to use an Action that, eventually, puts some beans in the request scope and then you acc

OT: Tool for detecting unclosed resources

2005-03-02 Thread Yves Sy
Anybody know a tool for scanning unclosed JDBC resources? I've done a simple logging facility in my app to keep track of connections in the pool at runtime but I'm just wondering if there's a less eye-straining way to do it.. something like a code analyzer of some sort... Br, -Yves- -- A bus sta

RE: How to get web.xml to ActionForm via struts?

2005-03-02 Thread David G. Friedman
Scott, You could obtain the parameters from within the ServletContext.getInitParameter() method. This can be accessed from an Action or PlugIn class and stored by you. Then, you could pull the values into your ActionForm. How could you store it? In a JNDI context, in a class, etc. Inside a Pl

RE: inserting and getting attributes

2005-03-02 Thread David G. Friedman
Jonathan, Check the list archives for this solution. The trick had something to do with attributes having to be nested to be seen in any included tiles. To be more clear, does nav.jsp actually do a tiles:insert or does it just try to do the tiles:getAsString tag by itself? I vaguely remember t

RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
I would do this... assuming I have no form needed for the page I would just use Struts Forward action class. Assuming the tile def is ".mynewBody" then do Al -Original Message- From: Daniel PC Leung [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 9:13 PM To: Struts Use

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
Thank you, Allen. I have tried your advice. But I do not know how write that entry in struts-config.xml if change it to because I do not have a form to associate the link On Wed, 2 Mar 2005 22:06:14 -0500, Fogleson, Allen <[EMAIL PROTECTED]> wrote: > But why would you do an html:link to a jsp? >

RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
But why would you do an html:link to a jsp? Link to an action. (even if it is just a ForwardAction) and then forward to the definition now you only need to write the layout.jsp that can be "standardized" across the site, and put different bodies and such in it as needed. Al -Original Messag

inserting and getting attributes

2005-03-02 Thread Jonathan M Z
I have the following tiles definition file in a.jsp I am trying to put title in: in nav.jsp I have when a.jsp is rendered I get: [ServletException in:/co

RE: How to get web.xml to ActionForm via struts?

2005-03-02 Thread David G. Friedman
Scott, You should be able to open the web.xml with the commons digester. Do you have an example of your "context-param" from your web.xml and whatever "xml" objects you nested it inside? Is it at top-level (directly under "" or inside another component? I've never used a context-param in web.xm

Re: tiles definition overload

2005-03-02 Thread Daniel PC Leung
The email name of Jonathan "wo_shi_ni_ba_ba" means "I am your father". Is it appropriate to be on list and let other "child" to answer Jonathan's question? On Wed, 2 Mar 2005 17:31:21 -0800 (PST), Jonathan M Z <[EMAIL PROTECTED]> wrote: > It will be 5. You can overwrite the value of the var > in y

Re: tiles definition overload

2005-03-02 Thread Jonathan M Z
It will be 5. You can overwrite the value of the var in your jsp page. if you don't specify var1 in your jsp, it defaults to 10 --- draegoon Z <[EMAIL PROTECTED]> wrote: > if I do this: > > > > path="/tiles/SOME_TILE.jsp"> > > > > > > and then: > > (or is

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
Yes, I am using tiles-def.xml If mylayout.jsp is defined in tiles-def.xml, do I have to write a mylayout.jsp? If yes, then I have to write 2 jsp files for each change of body layout. Can I write only 1 jsp file for each change of body layout? On Wed, 2 Mar 2005 18:21:44 -0500

passing attributes to tiles

2005-03-02 Thread Jonathan M Z
I am using tiles as the following: However I wish to pass parameters to nav.jsp. how do I do this? thanks __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com

tiles definition overload

2005-03-02 Thread draegoon Z
if I do this: and then: (or is it beanName?) what will be the value of var1? Or will this work at all? I basically want a default value in the definition, but a way to change the value in a JSP page. --

Re: problem with logic:iterate

2005-03-02 Thread Jonathan M Z
pageContext.setAttribute("bar",projects,PageContext.PAGE_SCOPE); it's an attribute in the page scope, not session, does it have to be in a session? I am only using it for the current page... --- Eric Lemle <[EMAIL PROTECTED]> wrote: > Is bar in the session? > > >>> [EMAIL PROTECTED] 3/2/2005 12

RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
Eric is correct. If you use the tiles-def.xml file you can get rid of a lot of duplication. In this case you could do exactly what you want by creating definitions in the xml that extend the original and only change the body portion. To me it is a lot easier to use the tiles-d

user@struts.apache.org

2005-03-02 Thread Eric Lemle
HELP? The only thing that I can think of is that the statement ...is doing something that the javascript childWindow=window.open( 'AttachmentAction.do?attachment_id='+id, name, 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,wi

Tiles Controllers and Unit Testing

2005-03-02 Thread Ara Vartanian
Is there any convenient method of unit testing Tiles controllers? While controllers can double as actions, I'd rather not include create forwards for each of these "view" controllers in order to make them accessible by a URL. What mock objects might I need to initialize and correctly collaborate wi

Re: Any traffic simulator/profiler tool available???

2005-03-02 Thread Leon Rosenberg
In fact we have this kind of tool, but it's special to our website, so it will not help you much. However, it wasn't a big deal to write such a tool using Jakarta Http Client and some multithreading. You should also look at Jmeter and HttpUnit, they provide similar functionality out of the box (yo

Re: Any traffic simulator/profiler tool available???

2005-03-02 Thread Leon Rosenberg
In fact we have this kind of tool, but it's special to our website, so it will not help you much. However, it wasn't a big deal to write such a tool using Jakarta Http Client and some multithreading. You should also look at Jmeter and HttpUnit, they provide similar functionality out of the box (yo

RE:

2005-03-02 Thread Eric Lemle
HELP? The only thing that I can think of is that the statement ...is doing something that the javascript childWindow=window.open( 'AttachmentAction.do?attachment_id='+id, name, 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,wid

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Eric Lemle
I think if you use the tiles-defs.xml configuration properly you can eliminate lots of files. But I don't use that file yet. -Eric >>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>> I do not think it's possible... I hope someone can prove me wrong. --- Daniel PC Leung <[EMAIL PROTECTED]> wrote: > I

Re: problem with logic:iterate

2005-03-02 Thread Eric Lemle
Is bar in the session? >>> [EMAIL PROTECTED] 3/2/2005 12:45:03 PM >>> thanks I am running into a related problem with radio buttons: when rendered it says: [ServletException in:/calc/ProjectManagerMain.jsp] Cannot find bean under name org.apache.struts.tagli

Using multiple resource-bundles - extending message resources

2005-03-02 Thread Per Lovdinger
Hi there, I'm using struts 1.1. Problem: I would like load multiple resource-bundles. Examples would be: adaResources.properties adaResources_sv_SE.properties bedaResources2.properties bedaResources_sv_SE2.properties I've tried to configure struts.config different ways but it seems it

AppFuse Questions?

2005-03-02 Thread Matt Raible
I heard there were some questions regarding AppFuse on this mailing list. Just wanted to let you know that I'm listening, so feel free to ask any questions you have. Matt AppFuse Lead Developer - To unsubscribe, e-mail: [EMAIL

Re: Migration to Tomcat 5.5

2005-03-02 Thread Bernd Schiffer
Hi Antonio. [EMAIL PROTECTED] schrieb: I had a similar problem with jdk 5.0, but with tomcat 5.0.28. In that case I was using Apache Forrest (as a webapp). Under my Struts webapp I put Apache Xerces (the latest version) under WEB-INF/lib, because it seems that the parser under jdk 5.0 is buggy (it

Any traffic simulator/profiler tool available???

2005-03-02 Thread Konstantinos Provatas
Dear all, I wanna ask if there exists some kind of tool/application that simulates user traffic to a web site. For example a tool that lets you set up 50 users that make certain requests, post certain form data etc and of course profile these actions (maybe show charts, too). Anyway, if no such

RE: Need Help Deciphering Error:

2005-03-02 Thread Scott Piker
You have a typo there... valudate="true" -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 2:43 PM To: user@struts.apache.org Subject: Need Help Deciphering Error: Hello, I am getting the following error and I cannot quite figure out what

Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Jonathan M Z
I do not think it's possible... I hope someone can prove me wrong. --- Daniel PC Leung <[EMAIL PROTECTED]> wrote: > I have a standand Tiles layout. > ie. it has header, Left, Body and footer. > In one of the body, I have this. > > > > key="securityMaint.userAccountMaint"/> >

Re: problem with logic:iterate

2005-03-02 Thread Jonathan M Z
thanks I am running into a related problem with radio buttons: when rendered it says: [ServletException in:/calc/ProjectManagerMain.jsp] Cannot find bean under name org.apache.struts.taglib.html.BEAN' What's wrong? thanks --- Eric Lemle <[EMAIL PROTECTED]>

Need Help Deciphering Error:

2005-03-02 Thread Scott Purcell
Hello, I am getting the following error and I cannot quite figure out what I am doing wrong? Can anyone give me some insight into this? Here is the circumstance: I have a jsp page that does a href to this action: "/action/uploadAssets" This will display a simple JSP page that shows a html form w

Re: Resolved problem with logic:iterate

2005-03-02 Thread Jonathan M Z
Ok it's a trivial mistake, didn't actually put anything in the Vector. --- Jonathan M Z <[EMAIL PROTECTED]> wrote: > hi folks, > I am trying to iterate a through a Vector of object > of > class Project where project has getter and setter > getDescription(),setDescription(),etc > In the jsp page

Re: problem with logic:iterate

2005-03-02 Thread Eric Lemle
I think this is what you are looking for -Eric >>> [EMAIL PROTECTED] 3/2/2005 12:09:49 PM >>> hi folks, I am trying to iterate a through a Vector of object of class Project where project has getter and setter getDescription(),setDescription(),etc In the jsp page I first created bean o

problem with logic:iterate

2005-03-02 Thread Jonathan M Z
hi folks, I am trying to iterate a through a Vector of object of class Project where project has getter and setter getDescription(),setDescription(),etc In the jsp page I first created bean of name bar. Vector v=new Vector(); Project p1=new Project(); p1.setName("project1"); p1.setDescription("des"

RE: One last ATTACHMENT issue

2005-03-02 Thread Eric Lemle
I noticed this too, but putting the '/physrcrtadmin' in there doesn't matter, it still doesn't work...??? But I do think it might be some kind of path or reference issue. Thanks, -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Salt L

Re: One last ATTACHMENT issue

2005-03-02 Thread Eric Lemle
Doesn't matter if the & sign is there or not, already tried that. Works both ways, I only put it there because the struts framework tags were putting it in the first one when using... -Eric Eric D. Lemle Senior Programmer / Analyst Intermountain Health Care 36 South State Street, Suite 1100 Sa

RE: Validator 1.2.6 + NaN

2005-03-02 Thread BLOOMFIELD, TOM F [AG-Contractor/1000]
Disregard this - DoubleRange does match NaN. -Original Message- From: BLOOMFIELD, TOM F [AG-Contractor/1000] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 12:14 PM To: 'Struts Users Mailing List' Subject: Validator 1.2.6 + NaN If I use DoubleRange: min 0

Validator 1.2.6 + NaN

2005-03-02 Thread BLOOMFIELD, TOM F [AG-Contractor/1000]
If I use DoubleRange: min 0 max 1000 And the number I'm validating is NaN, the number passes validation. I realize NaN is a valid double and thus I would expect it to pass "required" and even "double" tests, but fail the range above. How can I test for

RE: Spring Framework Good or Bad

2005-03-02 Thread Fogleson, Allen
This is probably a personal opinion based on my having more experience with Struts but we recently did 3 fairly large sized apps 2 of which we used struts/spring and the third (which was actually the first) used just struts. All three have the potential to use EJB or POJO Facades. We originall

Re: AppFuse - Impressions?

2005-03-02 Thread Craig McClanahan
On Wed, 2 Mar 2005 11:33:13 -0500, David Johnson <[EMAIL PROTECTED]> wrote: > Related question. Isnt spring sort of an alternative to Struts? Can > they work together? How? :) Spring is more than one thing :-). There is indeed "Spring MVC" which is a framework designed to solve the same problems

Re: Spring Framework Good or Bad

2005-03-02 Thread Brandon Mercer
Mathew, Manoj wrote: Hi guys I am in the design face of a huge J2ee web application. Though my application is a very good candidate to go for EJBs, I am so reluctant to go with it, based on my previous bad experiences. I was looking at "Spring". What you guys think about that? Spring is great.

Re: AppFuse - Impressions?

2005-03-02 Thread Brandon Mercer
David Johnson wrote: Related question. Isnt spring sort of an alternative to Struts? Can they work together? How? :) Yes, struts+spring is the default for the appfuse toolkit. And they play together WONDERFULLY. For instance, lets say that you have a view you'd like to use... Jasper Reports

Re: AppFuse - Impressions?

2005-03-02 Thread Emmanouil Batsis
David Johnson wrote: hi all I have been meaning to doeanload AppFuse after reading about it on this list (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse) but I havent yet. Has anyone used it? + you can use a set of constantly evolving best practices without having to figure/work them out y

Re: AppFuse - Impressions?

2005-03-02 Thread David Johnson
Related question. Isnt spring sort of an alternative to Struts? Can they work together? How? :) Do you feel like AppFuse is bloatware in any way? How is performance? On Wed, 2 Mar 2005 10:20:52 -0600, Steven Leija <[EMAIL PROTECTED]> wrote: > Hey David, > > I've used this project for a while now

Spring Framework Good or Bad

2005-03-02 Thread Mathew, Manoj
Hi guys I am in the design face of a huge J2ee web application. Though my application is a very good candidate to go for EJBs, I am so reluctant to go with it, based on my previous bad experiences. I was looking at "Spring". What you guys think about that? thank in advance Matt -Messa

Re: Struts and EJB integration question?

2005-03-02 Thread leonnewsgroup
Thanks for your reply. It is better to use a delegate or a manage layer than use a Struts Action class. And I want to make sure that when I implement the delegate or manage layer, I shouldn't use J2EE instead of POJO, it is correct? Tim - Original Message - From: "Erik Weber" <[EMAIL PRO

RE: AppFuse - Impressions?

2005-03-02 Thread Steven Leija
Hey David, I've used this project for a while now and it's outstanding. You can literally get the foundation for a webproject setup and deployed to a tomcat server in a matter of a minutes. There is continuous work being done on it for additional functionality and improvements. It is consi

Re: html:form complains of bean missing

2005-03-02 Thread Bill Siggelkow
Gunther, Is there a reason you didn't do this using a servlet filter instead of a custom request processor? IMO, servlet filters are less intrusive, support filtering for JSPs and static pages as well as Struts actions, and its easier to selectively apply them using URL patterns. Also, I notice

AppFuse - Impressions?

2005-03-02 Thread David Johnson
hi all I have been meaning to doeanload AppFuse after reading about it on this list (http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse) but I havent yet. Has anyone used it? -- -Dave [EMAIL PROTECTED] - To unsubscribe, e-ma

RE: html:form complains of bean missing

2005-03-02 Thread Günther Wieser
hi scott, well, i'll try my best. here's the code from the execute method of MyRequestProcessor (that's the one included in the struts-config.xml): public class MyRequestProcessor extends TilesRequestProcessor { public void process(HttpServletRequest req, HttpServletResponse res)

How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
I have a standand Tiles layout. ie. it has header, Left, Body and footer. In one of the body, I have this. Whenever it is clicked, only the body portion is changed. I have to use 2 jsp files to make it happen, UserAccountMaint.jsp: Can I use only 1 jsp file so t

Re: slight off topic

2005-03-02 Thread Frank W. Zammetti
What precisely do you mean by "design a web site from scratch"? If you are looking for an HTML editor only, then have a look at this page: http://www.thefreecountry.com/webmaster/htmleditors.shtml There's quite a few listed there, one of them is bound to serve you well. In fact, some of what is

slight off topic

2005-03-02 Thread Mathew, Manoj
Anybody know a very good free tool to design a web site from scratch? Sorry for this off topic question. But I believe that people in here are experts of UIs. Any body has any suggestions? Also wondering if there is any free tool to design a Letter pad and a logo. thank you Matt -Mess

RE: One last ATTACHMENT issue

2005-03-02 Thread David Suarez
In addition to not needing the ampersand, the first and second href seem to point differently. The first points to: /physrcrtadmin/AttachmentAction.do The second to: AttachmentAction.do Which may be the same place already if whatever page you got this from is in the same directory tree but it's

RE: html:form complains of bean missing

2005-03-02 Thread Scott Purcell
Hello Gunther, I read last night about the tiles tempating functionality, so I have a little better handle on it today. It actually is a nice way to create some parts of my app, so I will revisit it today and try and prototype a couple of pages together. But as far as handling the session expir

Re: Speaking of the Wiki, what lang is this?

2005-03-02 Thread Sebastian Hennebrueder
Yes it is, but it is rather nonsense. It is a kind of listing words Regards Sebastian Hennebrueder http://www.laliluna.de Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB David G. Friedman wrote: http://wiki.apache.org/struts/LocalSpellingWords Is that German? Do we have many ot

Accessing current Tiles definition name from Controller

2005-03-02 Thread Jonathan Gordon
How can I access the current Tiles definition name from the execute method of a custom Tiles Controller class? Thanks, Jonathan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts tiles definition in jsp

2005-03-02 Thread brenmcguire
Take a look at this: http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292375 And remember that a definitions-config MUST BE an XML that follows the Tiles configuration DTD. Ciao Antonio Petrelli Jonathan M Z wrote: >I am a bit baffled by creating tiles definitions in >jsp(not XML) >her