Does struts2 handle the css-styling of action errors and messages the same
as struts1? In struts 1, i defined some keys in the message bundle
errors.prefix and errors.suffix that were automatically used to style the
html generated by the actionerrors. Is this enabled in struts2?
Thanks,
Brian
A few more minutes of experimenting and i answered my own question ...
anyone else who wonders, instead of using
i used
and then changed the action for the form tag to be "template!view"
On 10/26/07, Brian Relph <[EMAIL PROTECTED]> wrote:
>
>
> So I have a with a
So I have a with action = "template" and on this form i have several
submit buttons, with methods = "save", "restore", and "preview".
I also have some links with href action urls - example:
Finally, i have a select box, and i would like the select box to submit the
form to the "vie
Hi, I was hoping to get some help with the date time picker in struts 2.1.
I have added the dojo plugin to my project:
org.apache.struts
struts2-dojo-plugin
2.1.0-SNAPSHOT
My struts.properties declares the 'simple' theme:
struts.ui.theme=simple
I added the
template for my date
picker, or modifying the existing date-picker to be split?
On 10/31/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
> you need to add to your page.
>
> musachy
>
> On 10/31/07, Brian Relph <[EMAIL PROTECTED]> wrote:
> > Hi, I was hoping
I was hoping to get help deploying a struts2 portlet. I have been
developing based on the portlet archetype with the embedded jetty/pluto
portlet container as detailed at http://portletwork.blogspot.com/
This archetype is based on struts 2.1.0, and developing with it has been
great. However, whe
into a plugin. It could
> be related to that. Can you find any exceptions or traces of error in
> the logs somewhere?
>
> Nils-H
>
> On 11/1/07, Brian Relph <[EMAIL PROTECTED]> wrote:
> > I was hoping to get help deploying a struts2 portlet. I have been
> > devel
not in 2.1.1
struts.properties exists in 2.0.12
what other files could possibly contribute to the action mapping
definitions?
On 11/1/07, Brian Relph <[EMAIL PROTECTED]> wrote:
>
> I downloaded and installed the struts2 portlet application 2.1.1, here are
> the logs -
>
>
gt;
> The only real difference I can think of is that portlet support is a
> plugin in 2.1. Is the struts2-portlet-plugin jar file in the classpath
> of the application?
>
> Nils-H
>
> On 11/1/07, Brian Relph <[EMAIL PROTECTED]> wrote:
> > Downloading and install
wrote:
>
> Seems like the 2.1.1-SNAPSHOT portlet app bundles servlet-api-2.3.jar.
> Try removing it and see if that helps.
>
> Nils-H
>
> On 11/1/07, Brian Relph <[EMAIL PROTECTED]> wrote:
> > this is the sample webapp downloaded from
> >
> http://people.a
So i have written a portlet in struts2 that runs on a Websphere Application
Server 6.1. I consume the portlet on Websphere portal v 6.0 through WSRP.
Internet Explorer seems to have some problems with the urls that are
generated - everything runs fun using firefox, opera, safari. I think this
is
e if it still fails?
>
> Nils-H
>
> On Nov 5, 2007 3:54 AM, Brian Relph <[EMAIL PROTECTED]> wrote:
> > So i have written a portlet in struts2 that runs on a Websphere
> Application
> > Server 6.1. I consume the portlet on Websphere portal v 6.0 through
> WSRP.
>
I was wondering if anyone could help with a captcha implementation in
struts2. i have seen plenty of stuff on the acegi + captcha implementation
in appfuse, but i am not using acegi ...
Thanks for the suggestions ... I was able to use the appfuse example and
remove all the acegi-related security stuff
On 11/17/07, Chris Pratt <[EMAIL PROTECTED]> wrote:
>
> On Nov 17, 2007 6:14 AM, Brian Relph <[EMAIL PROTECTED]> wrote:
> > I was wondering if anyone c
Can I reference action errors / messages in a similar way to field errors?
I have a custom validator for a date field that is split into month/day/year
fields, but i want the errors for it to appear next to inputs. Here are my
validators:
^\d{4}$
which i referen
validator by default adds to the actionErrors, is there another
way besides re-writing it and specifying to add to the fieldErrors instead?
On 11/20/07, Brian Relph <[EMAIL PROTECTED]> wrote:
>
>
> Can I reference action errors / messages in a similar way to field
> errors
how would i submit a form to a new window?
for links, i can set target="_blank", and then my result is in a popup.
But, i have 3 submit buttons, 2 of which display things on the same page,
and the last needs to be a popup. any suggestions?
Does anyone have experience using css in portlets, and more specifically,
using css to set background images? I am unable to use css for images since
the url are not portlet urls ...
Hello,
I have a struts2 portlet with a registration page that contains a captcha.
The captcha i generate from a servlet that i declare in my web.xml and map
to /captcha. The captcha's are identified by the session id of the request,
and then are validated in my action using the ServletRequestAwar
ferent "clients". I did find an
> interesting thread [1] that's not really the same as your problem, but
> might contain some interesting information anyway.
>
> Nils-H
>
> [1] http://forums.oracle.com/forums/thread.jspa?threadID=341338
>
> On Dec 12, 2007 6
If you are building with maven2, you might make sure that you are adding the
xml files in your source directory to your compiled output directory. I
know this was something that fooled me at first ...
src/main/java
**/*.properties
**/*.xml
When i turn logging up to debug, i get TONS of the same stack trace when
using my struts2 app ...
Can i get rid of these somehow?
[1/3/08 13:08:13:106 CST] 004c SystemOut O [WebContainer : 1] DEBUG
com.opensymphony.xwork2.util.InstantiatingNullHandler - Entering
nullPropertyValue [target=
AIL PROTECTED]> wrote:
>
> Turn down logging on the stuff you want to ignore.
>
> --- Brian Relph <[EMAIL PROTECTED]> wrote:
>
> > When i turn logging up to debug, i get TONS of the same stack trace when
> > using my struts2 app ...
> >
> > Can i get rid
I have read through the spring plugin wiki page
http://struts.apache.org/2.0.11/docs/spring-plugin.html for struts2.
I want my actions to be completely managed by spring, so i am declaring them
in applicationContext.xml.
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.o
I am having trouble getting a redirectAction to work. I am using
struts2-portlet-plugin-2.1.1-SNAPSHOT, i have also tried using
struts-2.0.11with no luck. Any advice? Here are my configs:
WEB-INF/index.jsp
<%
String redirectURL = "view/index.action";
response.sendRe
tself.
On 1/15/08, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote:
> Are you running this in a portlet container? Your index.jsp and the
> redirect url does not make sense i a portal server (unless you are
> embedding it in some way)? Please provide some more informatio
ave you tried launching in debug mode and step through
> the code? Can you show your portlet.xml file?
>
> Nils-H
>
> On Jan 15, 2008 7:58 PM, Brian Relph <[EMAIL PROTECTED]> wrote:
> > My WEB-INF/index.jsp is used so that i can use the same installation as
> both
>
D]> wrote:
> hi Brian,
>
> was wondering how you were able to use the appfuse example remving all
the acegi-related stuff.I am also trying to implement Captcha in
Struts2,Could y0u please help me on this?
>
> Thanks,
> Arthy
> Brian Relph wrote:
> >
> > Thank
t; >
> > Then make sure you use the "redirectAction" result type only when your
> > action has been executed in the action phase (form submit, or s:url
> > created with the attribute 'portletUrlType' set to 'action').
> >
> > Hope that
Chris, I really love the Unobtrusive Date-Picker Widget at
http://www.frequency-decoder.com/2006/10/02/unobtrusive-date-picker-widgit-update
I had to make some modifications to it to work better for my site (do
not automatically create the object, do not create the inputs or buttons, a
few other t
Has anyone built a java 1.4 compatible struts2 application with maven2 using
the translated jars? I installed the j4 struts2-core and xwork jars in my
repository. But, I am still this error when installing my project using
maven:
...
INFO] war:war
[INFO] Packaging webapp
[INFO] Assembling webapp
Hey everyone, I seem to be coming across two issues when running multiple
jvms with session sharing ... i have not run into this during my previous
testing, since i was not worried about a high-availability environment, and
did not test inside a cluster...
Anyways, i receive this exception when us
be the first thing I would do and generate a serialVersionUID
> for
> the pojo.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
> > From: Brian Relph <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List
&g
Hi, I am concerned about security in my struts2 actions. I am using spring
to auto-wire my actions by name, but this leads me to believe that a
malicious user can set action properties that i do not want them to. For
example, i have a .jsp with a form input of "name". My action has a
getter/sett
So i guess this is a legitimate security concern. Is there a cleaner way to
do this? Is there annotations support for it?
On Thu, Feb 28, 2008 at 10:05 AM, Daniel Baldes <[EMAIL PROTECTED]> wrote:
> Brian Relph wrote:
> > Hi, I am concerned about security in my struts2 actio
ender") ? false : true; --
this is returning false, however, the value is still being set on my object,
am i doing something wrong here?
On Thu, Feb 28, 2008 at 10:35 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Brian Relph <[EMAIL PROTECTED]> wrote:
> > So i guess t
, wouldn't it? I'd
> > strongly suggest not having getters for 'sensitive' internals like that
>
> It's pretty typical to have a service injected like that, though. The
> issue
> here is that a sensitive configuration parameter is being trivially
> exposed
Hello,
I am trying to add a cssStyle to my button - that includes an
:
) no-repeat;" action="cancelPreview"
onclick="skipAlert(this);" />
However, it appears that the tag does not like the inside
the cssStyle property ... if this is the case, could anyone point me to the
where i would modify
view"
> onclick="skipAlert(this);" />
>
>
> not work?
>
> -Original Message-
> From: Brian Relph [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2008 2:33 PM
> To: Struts Users Mailing List
> Subject: s:submit and cssStyle
>
> Hello,
>
39 matches
Mail list logo