I assume you are using your-ftl-file.ftl
..i had no problems passing an extra param to the tag and accessing it in
the custom theme FTL
On Fri, Sep 18, 2009 at 10:39 PM, Slonim, Greg (USAEO) <
greg.slo...@usdoj.gov> wrote:
> Hello,
>
> Setup: struts2 (2.1.6) with Spring (2.5)
>
> I Refer to the
hmm..i remember getting the warning even for doubles..as the error message
says, OGNL fails when trying to set a String array (all request parameters
are Strings ) into the BigDecimal field since it cannot find an appropriate
setter.
In connection to this, can anyone let me know how to suppress th
Are you using Spring to wire up the Action ? -- just a wild guess that the
bean scope may be Singleton (the default value) and that causes the data
sharing ?
2009/9/10 Paweł Wielgus
> Hi,
> i don't know if it will help but You can try same thing i did here [1]
> i was trying to force pages not
Yeah, i dont want to change to DB backed bundles. My question is if the
s:select tag can take a list from a resourcebundle directly and use it . If
so, how should the list be specified ?
On Sat, Sep 5, 2009 at 3:59 AM, Tommy Pham wrote:
> - Original Message
> > From: j ale
Hi,
Normally, we use the resource bundles to store Strings like field labels,
error messages etc. But how about things like dropdown display values ? . I
need to i18n-ize an app that has a lot of such dropdowns and the lists are
currently referenced like where dropdownmap is loaded
into ServletCo
hi,
I've a form where the user can add fields dynamically by clicking an "Add"
button , and these are stored as a Map in the model , like :
dynamicfields[0].firstname
dynamicfields[0].lastname
dynamicfields[1].firstname etc.
The first instance (i.e dynamicfields[0]..) will always be present an
Done - https://issues.apache.org/struts/browse/WW-3138 . I've mentioned
about the method name not being picked up as well.
Thanks,
Joseph
On Mon, May 18, 2009 at 11:34 PM, Martin Gainty wrote:
>
> thats a bug ..
>
> xwork version 1.2.3
> com.opensymphony.xwork.ActionProxyFactory
>public abs
Rajeev, i just took your JSP and made some changes (attached, changes marked
with comments) - it renders w/o any errors for me..basically, followed
Dave's suggestion of changing s: to sx:
HTH
Joseph
On Sun, May 24, 2009 at 8:10 PM, Dave Newton wrote:
> rajeevP wrote:
>
>> Please help me in thi
I meant that there is a problem with DWRValidator.java , not the
documentation.
Referring to
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dwr/src/main/java/org/apache/struts2/validators/DWRValidator.java?revision=670170
(hope
this is the latest?) , the line :
ActionProxy proxy = acti
as an alert box on the page,
but that's a different story.
Should i open a JIRA for this ?
Thanks,
Joseph
On Fri, May 15, 2009 at 6:41 AM, j alex wrote:
> Hi Martin,
>
> I had seen the configs in the struts-showcase, and used all of them as-is ;
> just added a javascript fn. t
tliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> le
> > > destinataire prévu, nous te deman
responsabilité pour le contenu fourni.
>
>
>
>
> > Date: Thu, 14 May 2009 23:55:34 +0530
> > Subject: Re: DWRValidator not working in Struts 2.1.6
> > From: strutstwou...@gmail.com
> > To: mgai...@hotmail.com; user@struts.apache.org
> >
> > Just
Hi,
I'm stuck wtih a problem where the valueStackFactory is null, and this
causes DWRValidator to fail. I had posted the stacktrace earlier, but didn't
get much responses.
Please confirm some of my assumptions reg the initialization process, so
that i can do some meaningful debugging:
1. Dispatche
Just wanted to make sure my email reached the full users' list. I
still havent been able to make any progress on this. Has anyone got
the DWRValidator working in Struts 2.1?
On 4/24/09, j alex wrote:
> Martin,
>
> I want DWRServlet to handle only the Action validations, not Acti
Hi,
I need to implement an use case where the data needs to be saved in DB, even
though all the submitted form fields aren't valid. The rule is to make those
fields empty and insert whatever is good into the DB (there are few
non-nillable fields that need to be valid as a prerequisite). I don't wa
I used a custom validator to loop thru each element , validate it and add
errors if present . The # of elements could vary per user, and was not known
upfront. Really want to know if this can be achieved via validation xml
On Feb 7, 2008 8:24 PM, Hodgins, Grant <[EMAIL PROTECTED]>
wrote:
> I have
aram2")},
This gives the following exception :
java.lang.ClassCastException: [Ljava.lang.String; incompatible with
java.lang.String
can't figure what's going on here..
On Feb 10, 2008 2:10 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- j alex <[EMA
Hi,
What's the best practice to refer to request and session within an S2 Action
without tying it to HttpServletRequest or HttpSession ?
Assume that we need to capture values from certain request parameters and do
some processing based on them, and set session attributes :
Currently, i'm doing i
2, 2008 9:57 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- j alex <[EMAIL PROTECTED]> wrote:
> >
> >
> > but this doesn't look clean ; is there a way to get rid of the @
> > com.abc.util.AppConstants [import?]
>
> No; that's how OGNL a
Hi,
What's the best way to check constants in jsp using the s:if tag.
I've constants defined in a file like :
public class AppConstants {
public static final String APPLICATION_CODE = "MYAPP";
public static final String APPLICATION_VERSION = "1.2";
Now, in the JSP we need to use these
Were you able to solve this yet ? . If not, please let me now the exact
exception trace-- i had implemented it, and may be able to help
Also, if you solved ..pls post the solution too.
On Jan 29, 2008 9:27 AM, Julien RICHARD <[EMAIL PROTECTED]> wrote:
> I need some help with DWR.
>
> I have find
I'd implemented this by overriding the strutsValidator.onErrors function ;
basically getting the list of errors and calling custom function to show the
errorbox to the right of the field. Also, i needed to show only 1 error at a
time - not all the errored fields ; and this was done using the DWR
va
Thanks guys..yeah, i hit upon s:url few hrs after i had posted this :-)
On Dec 19, 2007 1:59 PM, Maxx <[EMAIL PROTECTED]> wrote:
> On Dec 19, 2007 6:45 AM, j alex <[EMAIL PROTECTED]> wrote:
> > Ideally, i would want the entire incoming query string be passed on to
> th
Hi,
I need to access certain url parameters and pass them on as the query string
to an iframe within the jsp
So, if the incoming url is :
http://localhost:9080/myapp/searchForm.action?mainObj.childObj=xyz&abc=123
i need to pass to iframe as :
I can access the abc param as ,
but the same doe
Have the "Add Address" button submit to a different method - say,
addAddress() on personSave action itself.
ie
For suppressing validation for this method alone, but allowing for other
methods on the action, use the wildcard action mappings -- see earlier posts
for the same.
Thanks,
Joseph
On
>> Struts 2 (I think) will recreate your session when it times out.
I assume that you mean Struts 2 will create a fresh session, but not have
any values in it.
Did you find why this is happening and any workaround ? - seems i'm facing
the same issue.
What's the best way to detect that the sessio
>From the code you've provided it's failing at
request.getAttribute("buttonLabel").equals("Simulate"))
Can you please specify how/where "buttonLabel" is set in the code.
The only thing i can think of is that validation is stopping the flow to
execute() and some variable set there may not be visi
Hi,
In my app, i need to override some Jasper Report exporter parameters'
default only for certain actions. For example, i need to set :
exporter.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,true); for
a report where the data columns can be very long and need to break ; while
this need
Can you paste the entire struts.xml ; ensure that you have :
On Nov 7, 2007 8:51 PM, carmi_cd <[EMAIL PROTECTED]> wrote:
>
> hi actually i tried using that tutorial and got a pdf with no data in it
> only
> page and column titles.
> i dont know why..
>
> Stacktrace of my sun application serve
Hi,
What's the optimal way to pass in extra parameters to customize report
generation. For ex : i want to show a paginated view of a report and need to
set JRExporterParameter.PAGE_INDEX ; can this be done without modifying the
actual source?
Thanks,
Joseph
I guess you need to have reportData as a field in the Action and do
setReportData(reportData) in execute() after populating it.
On 10/26/07, carmi_cd <[EMAIL PROTECTED]> wrote:
>
>
> i'm new in integrating JasperReports and Struts 2..my problem is its
> always
> saying that my datasouce is
> nul
Hi,
I just started using the S2 - Jasper plugin ; new to Jasper as well ; but
not able to get a simple report to show.
Below is my struts xml entry :
/jasper_compiled.jasper
ds
PDF
Hi,
Within a custom validator for field1, i need access to another field, say
field2 to perform some comparison. getFieldValue("field2", object) does not
help. Please advise.
Thanks,
Joseph
I'm not able to use the key within an s:if condition though..
Code :
It prints out the correct value in else condition but the comparison fails ;
please help!
-Joseph
On 9/12/07, Cory D. Wiles <[EMAIL PROTECTED]> wrote:
>
> That worked perfectly. Thanks everyone for all the help.
>
> -
Can you please explain a bit more on this issue ? - i'm also using WAS
6.1and fear i might run into this down the line. We'll need to use
jsp:forward/include etc. a lot in our app.
-Joseph
On 9/17/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> Shepherd,
>
> As you know, you can configure a filt
Hi,
For properly handling true/false radio buttons and checkboxes, we've to
define the domain objectsas Boolean, and to prevent numerics being populated
with 0 (if nothing is entered), the domain object must be Integer. Is there
any performance overhead by having to define it this way? --- For the
). But
> if you are writing an Interceptor, you would use ActionContext to get
> access to the Session data.
> (*Chris*)
>
> On 9/11/07, j alex <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > In the Struts 2 docs, it's recommended to implement SessionAw
Hi,
In the Struts 2 docs, it's recommended to implement SessionAware for
accessing session within Action, but looking at some Webwork documentation,
http://wiki.opensymphony.com/display/WW1/SessionAware+Actions - it seems to
convey the opposite message .
Please clarify :
1. Why accessing via Ac
The fieldexpression validator would handle most dependent checks, but i
think there's no out-of-the-box solution if we want the expression to act as
a guard condition alone and not as a validation. Please check the archives
for comments on this.
-Joseph
On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[E
Gary,
I think your syntax is right - just pasted from your email into my JSP
and it works.
Let me know if you are able to move the static map to a properties
file and get it working from there ; i'm still trying to get the
syntax right on that!
-Joseph
On 9/10/07, GaryD <[EMAIL PROTECTED]> wr
hris Pratt <[EMAIL PROTECTED]> wrote:
>
> On 9/7/07, j alex <[EMAIL PROTECTED]> wrote:
> > In Struts 1, we were having an init servlet to load the application-wide
> > properties like dropdown values (from property files) into application
> > context and access
Hi,
In Struts 1, we were having an init servlet to load the application-wide
properties like dropdown values (from property files) into application
context and accessing these within JSP. Is there a better way of doing this
in Struts 2, and do we require an initialization servlet at all ? .
Thank
Please let me know if the following behavior is an issue or not :
I've a form where validation needs to be enabled/disabled dynamically based
on some condition. So, instead of having "validate" attribute within s:form,
i'm having it as an s:param , like :
... ... ... ...
In th
Ted,
Regarding field validations, can you provide any reason why the validwhen
validator is not provided in Struts 2? . I think this is a step backwards
from Struts 1 where we could easily manage conditional validation (validate
fieldb only if fielda & fieldc meet some condition)
Also, the valida
if validate=true , js function (pure client side) onsubmit is invoked on the
form in xhtml theme ; and in ajax theme it adds and onblur validate() to
every field element and validates it using ajax. Both of these use the rules
defined in your validation xml file.
So setting validate=true is for i
Sounds very similar to the problem i had but no straightforward solution yet
; i've put this for enhancement on JIRA -
https://issues.apache.org/struts/browse/WW-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41901
Can you please check if this is what you need as
Pavel,
Are you sure you pasted the right validation xml entries for username and
password
** As you can see for userName and password we have this attribute called
page ** -- i'm not able to understand this.
On 8/29/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote:
>
> Hey guys I have posted be
Oleg,
If you don't mind can you please paste the
I copied over all the FTL files in "simple" theme to a new directory
"mytheme" and modify the ones i need to ; don't think this is technically
extension, but does the job .
-Joseph
On 8/29/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
>
> j alex wrote:
> &
theme="ajax"
I replaced with the equivalent javascript includes,
and it seems to work fine ;are there any specific server-side
(Action/interceptors etc.) that rely on the theme being ajax which i may be
missing ?
-Joseph
On 8/28/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
>
It turned out to be as simple as
..thanks to case sensitivity :-) , oops - i just noticed the code i pasted
was messed up but as you would have guessed it was a typo
On 8/28/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> j alex wrote:
> > Hi,
> >
> > How do i ac
How can i get some insight into the js functions invoked for Ajax
validation? ; unless i know what they are i cannot override them :-) .
Looking at the example showcase, i only see the and
seems it does all the magic
On 8/28/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
>
> j alex
g
the references from the JAR directly.
On 8/28/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
>
> j alex wrote:
> > I'm using Websphere and am still stuck with using Ajax for validations ;
> > since i'm not able to install the right patch etc.
> >
> > The p
Hi,
I'm using Websphere and am still stuck with using Ajax for validations ;
since i'm not able to install the right patch etc.
The performance tuning tip says "copy the static content from the Struts 2
jar when using the Ajax theme" . Can someone please give me the steps to do
this ? . I need to
Struts 1 ; if validate=true, it looks for a method called validate() in
ActionForm (ie value_add_form) , Action ( ie MyAction) or if you've
configured validation xml, validations are run using that
On 8/27/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> type="com.s
Hi,
How do i access params defined in web.xml in the FTL ? ; In my app, all the
images are located at a particular path which is defined as
GLOBAL_IMAGES_ROOT
www/abc/def/images
and i want to show an icon from this directory within the FTL . How would i
make GLOBAL_IMAG
I don't think there's an equivalent tag, see if *helps
8/24/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote:
>
> Hey does anyone know which tag in struts2 would be equivalent to the tag
> in struts1. Thanks.
>
> --
> Pavel Sapozhnikov
> xFact, Inc
> [EMAIL PROTECTED]
>
It's not clear what you are trying to do ; as long as validate=true, the
form should get validated. You an have an action mapping , and on hitting the save button,
change the 's action to "editForm" using javascript so that the right
action-mapping is invoked
On 8/25/07, Meenakshi Singh <[EMAIL
On 8/20/07, j alex <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Can anyone please help me with loading a tag with a OGNL
> list that's been configured in globalMessages.properties as follows :
>
> list.states = 'AL':'Alabama', 'AK':'Alask
rectly, but
> off the top of my head I don't know how to do that.
>
> ___
> Adam Crume
> Computer Information Technologist II
> Central Technology Services
> (573) 634-5600 ext. 1693
>
> -Original Message-
> From: j alex [mailto:[EMA
Hi,
How do we make variables set by struts tags available to scriptlets? . In
Struts 1 , we could set an object using bean:define and access it within a
scriptlet ? ; what's the equivalent for S2 ?
In the app i'm converting to S2, there's a lot of scriptlet code and we are
trying to retain that a
/login_entry-body.jsp">
>
>
> And this is the contents of page_layout-defs.jsp
>
> @ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %>
> <%@ taglib prefix="s" uri="/struts-tags" %>
>
> tem
Please paste relevant portions on your web.xml, tiles-config and struts xml
files , so we can take a better look . I'm assuming you are using
Tiles 2along with Struts 2 .
On 8/23/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote:
>
> Hello everybody. I am getting this error when I am trying to use t
Resend
On 8/20/07, j alex <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Just checking one more time if someone has an answer to my below email. We
> decided to go with XML validation, and as i understand it, we cannot have
> validation files based on action methods, but ca
Resending...
On 8/20/07, j alex <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Just checking one more time if someone has an answer to my below email. We
> decided to go with XML validation, and as i understand it, we cannot have
> validation files based on action methods, but ca
John,
The problem is not very clear from your email . Are you losing the dropdown
items when the JSP reloads after submit ?
The list of items in the dropdown must reside in a separate bean, and the
item you select from it should be in another bean attribute -- i'm assuming
you've taken care of th
each
action method, and also change the buttons/links in jsp accordingly.
It'll be great if someone can provide inputs before i embark on this huge
refactoring.
Thanks,
Joseph
On 8/17/07, j alex <[EMAIL PROTECTED]> wrote:
> Dave,
>
> How do we use the action-alias XML approa
Hi,
Can anyone please help me with loading a tag with a OGNL
list that's been configured in globalMessages.properties as follows :
list.states = 'AL':'Alabama', 'AK':'Alaska'
In the JSP, i'm having :
but this doesnt show me the list, but renders a single with
the list coming up as a String
-
the value from session is obtained, not the one which was submitted in
the previous request.
-Josph
On 8/18/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
> I haven't used the Scope interceptor, so I may not be 100% correct, but
> the following answers are based on my interpretat
Are u using Struts 1.x or 2 ? -- please paste the code from struts xml
and how you are doing the redirect? ; will attempt to answer after
that.
-Joseph
On 8/17/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
> If you switch domains or ports, you will lose your session. Sessions are
> usually tied to
Can you paste the entry from validator xml -- and the line which is
flagged with the error?
>From the error message, it just looks like an ordering problem -- ie
we must have param tag before the message tag ; but i may be
oversimplifying things..
On 8/18/07, stanlick <[EMAIL PROTECTED]> wrote
Assuming that Add, Back , Fwd are different methods in the same
Action, you could use s:submit method="Add" to post to Add method, and
define the validations for that method using annotation . I havent
tried if the non-field level validators get executed at this point
On 8/17/07, Sandro Giessl <
, but how will
it differentiate b/n methodA and methodB?
i tried myAction-methodA-validation.xml ; but it didn't seem to work.
Thanks,
Joseph
On 8/15/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- j alex <[EMAIL PROTECTED]> wrote:
> > ex : if an Action has multiple meth
Hi,
I need help regarding correct usage of Scope interceptor
(http://struts.apache.org/2.0.9/docs/scope-interceptor.html)
Before going into details i had couple of qns :
#1. Is this usable we have multiple actions sharing the same model
object ? - i.e each page of the app posts to a different Ac
try changing @RequiredFieldValidator to @RequiredStringValidator
the RequiredFieldValidator only looks for "not null" and even if the
field is not entered, but is present on the form, it'll be populated
with "" (empty) and not a java null.
-Joseph
On 8/16/07, David Copeland <[EMAIL PROTECTED]> w
I think annotations give you more flexibility than XML .
ex : if an Action has multiple methods and only certain fields are
tied to each method, we can bunch together validations for each method
using annotations, but this is not possible using XML
On 8/15/07, Laurie Harper <[EMAIL PROTECTED]> wr
Hi,
Is there a way we can override the implementation of certain
interceptors from the default stack, without copying over all the
definitions to struts.xml ?
ex : i want to change the behavior of workflow interceptor in the way
it handles errors and routes to input page. I defined :
I'm still wondering how to do a pure flag check alone using validators
- i.ei need to check a guard expression before firing actual
validations on the
field ; and if the guard expression fails - the validations must simply be
skipped (as if the field didn't exist) and move on to next page - without
t the flexibility to validate addressline1 when called from another
Action, and the error message should be different in this case.
dunno if this is asking for too much, or there's something wrong the way i'm
thinking abt it!
-Joseph
On 8/11/07, j alex <[EMAIL PROTECTED]> wrote:
&g
sn't make
> sense
> to me. Are you sure?
>
> Paul
>
> On 8/10/07, j alex <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > This is somewhat related to Matt's post on conditional validation at
> > http://www.nabble.com/Re:-Conditio
Hi All,
This is somewhat related to Matt's post on conditional validation at
http://www.nabble.com/Re:-Conditional-validation-p11990883.html ; i dont
have the original email on struts-user (joined the group only last week!) to
reply to :
I need some help regarding the extent to which we can apply
Hi,
I need to store the label values in the resource bundle ; and to support
screenreaders these values may have some tags
ex : label.primaryapp.firstName=First name of
applicant
Now, in s:label tag ; i'm using using it as :
Note that it's a custom theme with the escaping set to false.
<#if
Hi,
Is there a way to declaratively restrict validations depending on the method
within the Action? - this could be useful for wizard-like forms where each
step of the wizard has a set of fields ; corresponds to a different method
but all of them share the same Action.
I can think of having an ex
Also, if you dont specify any path for the tiles def ; it default to
WEB-INF/tiles.xml (Tiles 2.0.4 onwards i guess)
On 8/9/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
>
> 2007/8/9, George Dadulescu <[EMAIL PROTECTED]>:
> > Hi. I've just started using struts 2 and I need a little help from you
Hi,
Is there a way to customize the error message with multiple keys provided
from the resource bundle, using the XML/annotation approach ?
In S1, we could do :
In S2 ; we use to denote the error message ; but to what level can
we cus
ror.
I know this can be done easily in XML by having separate entries for primary
and coapp and using params to manipulate the error message accordingly.
Thanks,
Joseph
On 8/7/07, Ian Roughley <[EMAIL PROTECTED]> wrote:
>
> And you can place them on the domain objects and use a vis
gt;> 4. Both approaches share the disadvantage that it's easy to mistype
> >> field names. Annoyingly the annotation doesn't help as you need to
> >> hand-type each fieldName when its applied to an action method. The
> >> benefit of annotations is lost.
>
Hi,
I am about to migrate a S1 app to S2 and need to decide which route to take
regarding validations - XML or annotations? . Our app has a lot of custom
validators involving rules dependent on multiple fields. Is there a specific
benefit to using annotations vs XML ?
Thanks,
Joseph
88 matches
Mail list logo