Hi,
Maybe something like this:
logic:messagesPresent name=%=Globals.ERROR_KEY%
table width=480 id=ErrorsTableId class=ErrorsTable
html:messages id=error name=%=Globals.ERROR_KEY%
tr
tdbean:write name=error //td
/tr
/html:messages
/table
/logic:messagesPresent
logic:messagesPresent
Thanks all.
I found the problem.
Actually, the tag html:errors / can display any ActionError found. But I
confused my ApplicationResources.properties file, that is, the error I want to
display was not defined in that file. So it will never be displayed until being
defined.
Further more, I
2008/3/19, Chen Chunwei [EMAIL PROTECTED]:
Hi all,
Can anyone tell me that the real value of constant
ActionErrors.GLOBAL_ERROR? Or where to find it?
Actually, I want to use the tag html:errors / to only display the error
defined with ActionErrors.GLOBAL_ERROR.
You don't need it! Read
I found the problem. Its working for me now.
The s:a tag did not have theme=ajax.
After adding ajax theme, the result page was loaded in correct tab.
Thanks for the help everyone.
--
View this message in context:
I am using struts and have an upload.jsp and its associated UploadForm.java
and UploadAction.java. The jsp's form has an enctype=multipart/form-data and
contains an html:file field to upload a file as well as a bunch of text
fields for metadata associated with the file. If an error occurs during
In struts 1. I have basic.jsp page with form:
html:form action=/basic
...
/html:form
When I open basic.jsp it is autamatically created basicForm (which is
configured at the basic action) And thanks this values in the form are
automatically filled.
Know anybody how to simulate this in Struts 2?
--- bugs_ [EMAIL PROTECTED] wrote:
Can me anybody give a simple example: How to use an POJO object in Struts 2
(instead of ActionForm)?
http://struts.apache.org/2.x/docs/hello-world.html
See the form creation/using the form bits.
Dave
Hi all,
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works nicely for ...canceling. But I couldn't find anything similar
for
2008/3/19, Dimitris Mouchritsas [EMAIL PROTECTED]:
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works nicely for ...canceling.
Antonio Petrelli wrote:
2008/3/19, Dimitris Mouchritsas [EMAIL PROTECTED]:
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works
2008/3/19, Dimitris Mouchritsas [EMAIL PROTECTED]:
Antonio Petrelli wrote:
2008/3/19, Dimitris Mouchritsas [EMAIL PROTECTED]:
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without
If you don't want to add another form element to the page you could take a look
at LookupDispatchAction's getKeyMethodMap() method. Extend LookupDispatchAction
in your action class. Override the getKeyMethodMap in which you can map your
button's keys to methods you create. You could create a
Is this the standard JSP syntax?
On Mon, Mar 17, 2008 at 3:08 PM, Dave Newton [EMAIL PROTECTED] wrote:
--- GF [EMAIL PROTECTED] wrote:
...unless you use the XML syntax available from JSP 2.0 and later ;-)
And in this case, how can you resolve the div id=s:property... ?
div
It is standard Expression Language (EL), which is much preferred over
scriptlets.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: GF [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Wed, 19 Mar 2008 14:44:08 +0100
To:
--- GF [EMAIL PROTECTED] wrote:
Is this the standard JSP syntax?
JSP 2.0 EL.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Wed, Mar 19, 2008 at 5:19 AM, udaykumar [EMAIL PROTECTED] wrote:
I am using struts and have an upload.jsp and its associated UploadForm.java
and UploadAction.java. The jsp's form has an enctype=multipart/form-data and
contains an html:file field to upload a file as well as a bunch of
I noticed that since some version of Struts2 it is now forbidden inside s:
tag attributes.. right?
On Wed, Mar 19, 2008 at 2:54 PM, Dave Newton [EMAIL PROTECTED] wrote:
--- GF [EMAIL PROTECTED] wrote:
Is this the standard JSP syntax?
JSP 2.0 EL.
Dave
Hello, i am new to this list. I am trying to develop an application based on
struts 2 + jsf plugin + portlet. I am using struts 2 support for portlet. As
appl server i am using weblogic.
Now i have reached a point were i am getting an error, but i have no idea
how to pass it. I have managed to
Hi Dave
Hi all
Finally i got it working the spring-way, meaning, when also delegating the
instantiation of action classes to spring. The default way, meaning
letting struts2 creating the action instances still doesn't work and i
really don't understand why.
Thanks to everyone that help me
--- GF [EMAIL PROTECTED] wrote:
I noticed that since some version of Struts2 it is now forbidden inside s:
tag attributes.. right?
Yep. Inside S2 tags use OGNL.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Since 2.0.11. But you can still use it outside of Struts tags.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: GF [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Wed, 19 Mar 2008 15:09:16 +0100
To: Struts Users Mailing
Sorry for this test. I have subscribed to this list and i have sent an
email. But apparently the email didn't got to the users, i haven't received
it.
2008/3/19, Daniel [EMAIL PROTECTED]:
Sorry for this test. I have subscribed to this list and i have sent an
email. But apparently the email didn't got to the users, i haven't received
it.
In fact we received it.
-
To
The problem is with line 10 starting somewhere around character 64. This
doesn't look good to me:
action name=index class=com.mycompany.HelloAction
interceptor-ref name=basicStack/
interceptor-ref name=jsfStack/
result name=success type=jsf/
My last attempt was like this :
package name=default extends=struts-portlet-default namespace=/view
action name=index class=com.mycompany.HelloAction
interceptor-ref name=basicStack/
interceptor-ref name=jsfStack/
result name=success
It seems to me that you will need to create an interceptor stack that has
both portlet support and jsf support. Even though your package extends
struts-portlet-default the action in question does not since you have
defined interceptors specifically for the action.
Regards,
Randy Burgess
Sr. Web
I use DailyRazor and have had great experience.
On Tue, Mar 18, 2008 at 11:42 AM, maitre [EMAIL PROTECTED] wrote:
Hi,
I'm trying to find a decent hosting company that supports STRUTS 2. Are
there any recommendations?
Thanks,
Ed
--
View this message in context:
email. But apparently the email didn't got to the users, i haven't received
it.
That's how it works! You will don't get your emails back, but any else
will get ;-)
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
I set the file upload max size in the struts.properties to 15MB. When
I upload a file over 15MB my action returns input. Is there any way I
can check to see if the file is over the max size set in the
properties file and handle what result I want to happen myself? I
seems that it returns input
The reason I am asking this is bacuase when I upload a file over 15MB
I get no result mapped for INPUT exception in my error log. When I
do map a result for input the app hangs. I looked at the file upload
in the struts showcase and it returns an error message when the file
you upload is too big.
Hi,
You can subclass FileUploadInterceptor and override acceptFile(File
file, String contentType, String inputName, ValidationAware
validation, Locale locale) method
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
Does your action implements ValidationAware interface?
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Greetings,
Using Struts2, 2.0.11 and Java 5, and having problems with custom type
conversion when I type invalid data in a field. I want to convert times in
military format (0700, 2205) to equivalent java.util.Date, with the date
fields set to 1-1-1970. I am using the defaultStack, which
Thanks for the reply. I did try nesting a s:date tag within a s:url but
no dice. This is what I tried:
s:url action=date/
s:date name=starts /
/s:url
I didn't even think this would, but it actually did render the following
result
http://localhost:8080/myapp/2007-05-12 day/
I was expecting
Hi,
I would like to initialize and share an object when my application deploy
but I'm not sure on the best way to do it.
The idea is to access something like ServletContext() and then initialize my
object in it in a synchronized way.
I know the ActionContext is ThreadLocal so If i put my object
Hi
I asked the same questions just some days ago.
Please read
http://mail-archives.apache.org/mod_mbox/struts-user/200803.mbox/%3c20080313
[EMAIL PROTECTED] You will find all information there
(have a look at the first and the last message in the thread).
Frank
-Original Message-
Hello
i have a textfield with the name=firstName
and a textfield with the name=address.city etc..
the action is model driven where firstName is the property of model.
Since address is a property of action (not property of model)
how come address.city does not get set it doesn't eve go to the
Thanks for your quick answer.
2008/3/19, Frank Fischer [EMAIL PROTECTED]:
Hi
I asked the same questions just some days ago.
Please read
http://mail-archives.apache.org/mod_mbox/struts-user/200803.mbox/%3c20080313
[EMAIL PROTECTED] You will find all information there
(have a look at the
Is anybody else getting a lot of dupes today?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Dave Newton wrote:
Is anybody else getting a lot of dupes today?
Dave
Nope
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Dave Newton wrote:
Is anybody else getting a lot of dupes today?
Dave
Nope
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:p
--- Jeromy Evans [EMAIL PROTECTED] wrote:
Dave Newton wrote:
Is anybody else getting a lot of dupes today?
Dave
Nope
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Emil.I wrote:
Hello
i have a textfield with the name=firstName
and a textfield with the name=address.city etc..
the action is model driven where firstName is the property of model.
Since address is a property of action (not property of model)
how come address.city does not get set it doesn't
mojoRising wrote:
Thanks. That's interesting. I am using Weblogic9.2, and I seem to have no
problem using the request object in the jsp( for getParameter at least). I
am wondering what type of request object manipulation, as you are referring
to, may cause issues?
I don't recall
Hi All,
I am successfully able to use S2 validators using validation.xml file and
also able to display field error messages on the page. But I want to
customize the error messages. For example, by default s:fielderros/ tag
will put errors using html ulli tags. but instead I want to wrap the
Hi Niral,
Go through following url it will be useful for creating ur own templates for
errors.
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme
Read it thoroughly it would turn out useful for u.
*Manish*
On 3/20/08, Niral Trivedi [EMAIL PROTECTED] wrote:
Hi All,
I am
Hi,
I have something like this in JSP :
html:radio property=gender value=male/MALE
html:radio property=gender value=female/FEMALE
1) i want to know how to make Male to be default selected when page is
loaded
2) I would set the value in form bean and on second page i would display
radio buttons
47 matches
Mail list logo