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).
-
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
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
, 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
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
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
"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
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
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
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
"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
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
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
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
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
15 matches
Mail list logo