Re: Extending Struts 2 Tags

2008-09-18 Thread Alberto Flores
I believe that at some point in your quest you are going to learn that Struts2 tags delegate to a component (which you'll have to extend/use). So a few questions (if overriding the label setter doesn't work). - Are you using the "key" attribute on the tag (it's used to generate the label). -

Re: 2 newbie questions about Struts and JSP

2008-09-23 Thread Alberto Flores
If you are developing using Tomcat (hopefully you are), consider reading the comments (and documentation) on the Jasper 2 JSP Engine. Particularly look here: http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html Specifically, trying the flags "keepgenerated" will bring some light to your

Re: Is my struts.xml never read?

2008-09-23 Thread Alberto Flores
I just tried both on my own terminal and these work just fine. Here is a layout of my war: foo - WEB-INF -lib struts2-core.jar (and the other 3 minimum jars you need) -classes -struts.xml -jsp -page -home.jsp -web.xml you said you have a classpath folder? Em

Re: Is my struts.xml never read?

2008-09-24 Thread Alberto Flores
, build/classes/struts.xml recieves the same change. What's strange about all this is that struts reads name="struts.devMode" value="true" /> and goes into devMode, but doesn't find my actions... /Emil Dave Newton wrote: You never answered the question about

Re: Extending Struts Tags

2008-09-24 Thread Alberto Flores
Assumming you are talking about Struts 2, I would recommend checking out the source code and trace how the UIBean delegates to the Component class (super class). All Struts2 ui objects are subclasses of "Component". Additionally, UIBean adds a set of methods that are very useful (particularly t

Re: "Preparable" influence hibernate transaction management when using "OpenSessionInViewFilter"

2008-09-25 Thread Alberto Flores
All the Preparable Interface does (along with the prepare interceptor) is to use reflection to call the prepare method) at some point in time (depending on which order you configured it). It you don't have any code in the prepare method, then, nothing should occur with your transaction. It se

Re: Unexpected Action processing

2008-09-25 Thread Alberto Flores
"result input" typically means that an Exception has been thrown in your execute method (default one) and you dont' have a mapping for it in your struts.xml. Try adding something like: /WEB-INF/error.jsp Where error.jsp has something meaningful such as: and also Hope this helps! [EMAI

Re: How to call javascript function on onload in struts-tiles

2008-10-07 Thread Alberto Flores
Use validation Sulabha Walavalkar wrote: Hi, I have a requirement as - on click of submit button call should be made to database to check if any batch processes are running or not. If any batch process is running then a message should be displayed on the same screen else the data should be

Re: devMode

2008-10-08 Thread Alberto Flores
A few questions: - Try to set devMode=false and see if you get the same logs. - Do you have a struts.properties with devMode=false/true. If so, this file will override struts.xml. Adam Hardy wrote: I fully expect that there's a simple answer to this one but I can't find it in the wiki or the

Re: Struts 2 CRUD Question

2008-10-10 Thread Alberto Flores
Don't you mean scope="request" and not "prototype"? [EMAIL PROTECTED] wrote: No. Hibernate will not affect Struts's action creation. You don't by chance have your action is Spring do you? If so, make sure the scope is prototype or you will see the same action instance over and over. Scott O

Re: Struts 2 CRUD Question

2008-10-10 Thread Alberto Flores
"request" scope. Please correct me if I'm missing something. Dave Newton wrote: --- On Fri, 10/10/08, Alberto Flores <[EMAIL PROTECTED]> wrote: Don't you mean scope="request" and not "prototype"? No, "prot

Re: any resolution on your struts2 Spring Security issue in June?

2008-10-28 Thread Alberto Flores
Jon, May I suggest that you try a simple app (Shouldn't take you more than 5 minutes to setup in Eclipse using WTP) where you examine how filters behave. This is how I caught my problem. I basically created a simple app (two jsp pages, one posting to the other one using a form) with three fil

Re: Struts 2 + Tiles 2

2008-10-30 Thread Alberto Flores
Please notice that your error has to do with the common.jsp and not the tiles framework... Carlos Curotto wrote: Which versions of Struts and Tiles are you using? Thanks! On Thu, Oct 30, 2008 at 8:49 AM, Carlos Curotto <[EMAIL PROTECTED]>wrote: Hi Marcio, First of all, thanks for the respon

Re: Programming help for a "print" function

2008-11-06 Thread Alberto Flores
Are you aware that you can control what is printed with CSS (media="print")?. This is a good trick (depending on what you are trying to do). Only food for thought! Guojun Zhu wrote: Hi, I am new to struts and using Struts 1.2.9 (old version, but not my decision). I have a view page in jsp

Re: Use Same JSP Page For Several Modes (View, Edit, Approve, Create)

2008-11-19 Thread Alberto Flores
The way I did was to override the backing components of the struts tags. I added logic there to simple control which template is used (depending on the role). I felt that I could use the Components (and Tag objects) as controllers for this purpose. Mississippi John Hurt wrote: Does anyone ha