Java 11-17

2022-03-28 Thread Daniel J Adams
Hi, Is it safe to use Java 11-17 with Struts2? Thank you, Daniel Adams Senior Software Developer TAG IT - SherColor The Sherwin-Williams Company Cell: 440-897-3601 daniel.j.ad...@sherwin.com

Re: Problem Freemarker struts 2.5.27

2022-01-05 Thread J. Chaplin
Hello Britta. The behaviour you noted using Struts 2.5.27 appears to be equivalent to what was reported in a recent JIRA WW-5160.  A fix for JIRA WW-5117, introduced with Struts 2.5.27, appears to have introduced issues for actions that define a getParameters() method. Unfortunately I do not

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2020-02-05 Thread J. Chaplin
type converter, result page) that reproduces the issue and attach it to a JIRA ticket that would help troubleshooting. If anyone else can reproduce the same behaviour Burton reported (even better if they have a small reproducer app), please advise the struts-user mailing list. Thanks, J

Re: S2.5.22 custom StrutsTypeConverter values parameter has changed?

2020-01-05 Thread J C
Hello Burton. >From your last update it seems you have found a workaround by re-ordering >where the null check was being performed in the getText() expression (being >passed to your custom StrutsTypeConverter). It's good to hear that a >workaround seems to work in your case. The expression wi

Re: Unknown Error From JSON-Plugin

2018-01-07 Thread j...@rodaxsoft.com
Could you share the code of the offending class/interface? Also, is the deployed code being compiled on a Java version that <= to server’s Java version? > On Jan 2, 2018, at 9:06 AM, sreekanth wrote: > > Hi, >I'm using struts2-2.5.14.1 in my EAR deployed in wildfly server, rarely > we are g

Re: Struts2 2.3.16 integration with Spring Boot 1.3.5

2016-10-15 Thread Rodman, Kenneth J
as a WAR file and deployed onto Tomcat, it took me 30 minutes to get it working. Regards, Kenny. On 2016-09-22 12:20 (+0100), "Rodman, Kenneth J" wrote: > Hi,> > > I am trying to wrap Spring Boot 1.3.5 around my Struts2 application [version > 2.3.16]. I have successfully

Struts2 2.3.16 integration with Spring Boot 1.3.5

2016-09-22 Thread Rodman, Kenneth J
Hi, I am trying to wrap Spring Boot 1.3.5 around my Struts2 application [version 2.3.16]. I have successfully received control into my action classes and my action classes are able to access the backend database and retrieve data. However, beyond that the JSP is never rendered. So, is it possib

Fwd: [ANN] Struts 2.3.14.1 GA (fast track | security)

2013-05-23 Thread J. Garcia
FYI -- Forwarded message -- From: Lukasz Lenart Date: Thu, May 23, 2013 at 9:00 AM Subject: [ANN] Struts 2.3.14.1 GA (fast track | security) To: Struts Users Mailing List The Apache Struts group is pleased to announce that Struts 2.3.14.1 is available as a "General Availability

Fwd: [appfuse-dev] [ANN] AppFuse 2.2.1 Released!

2012-12-12 Thread J. Garcia
FYI: AppFuse 2.2.1 released. You can choose among a number of web frameworks, one of them being Struts2 in its latest release version. Cheers, J. -- Forwarded message -- From: Matt Raible Date: Tue, Dec 11, 2012 at 11:24 PM Subject: [appfuse-dev] [ANN] AppFuse 2.2.1 Released! To

Re: Struts2 String ThreadSafe?

2012-11-30 Thread J. Garcia
This is definitely wrong. You can mix data from two different concurrent sessions! On Thu, Nov 29, 2012 at 4:42 PM, Rohit Gupta wrote: > So given the fact that my beans are not prototype, there is a chance that > the same action class may be used for two consecutive requests. > > Regards, > >

release date for new version?

2012-11-19 Thread J. Garcia
Will version 2.3.7 be released any time soon? https://issues.apache.org/jira/browse/WW/fixforversion/12323448 Cheers, J.

Re: 回复:[struts2] 's method attribute doesn't work

2012-11-19 Thread J. Garcia
Good! On Sun, Nov 18, 2012 at 10:39 PM, Lukasz Lenart wrote: > 2012/11/14 J. Garcia : > > Beware of this vulnerability: > > > > > http://www.brucephillips.name/blog/index.cfm/2011/2/19/Struts-2-Security-Vulnerability--Dynamic-Method-Invocation > > I've adde

Re: 回复:[struts2] 's method attribute doesn't work

2012-11-14 Thread J. Garcia
Beware of this vulnerability: http://www.brucephillips.name/blog/index.cfm/2011/2/19/Struts-2-Security-Vulnerability--Dynamic-Method-Invocation Cheers, J. On Tue, Nov 13, 2012 at 4:41 PM, Wu Ming wrote: > Hi, > > Never mind, I had found the solution: you ha

Re: quick WebApp start

2012-11-11 Thread J. Garcia
+1 for AppFuse. Try the SNAPSHOT version. It features bootstrap-style UI and other goodies. J. On Sun, Nov 11, 2012 at 11:55 AM, Maurizio Cucchiara wrote: > AFAIU AppFuse should be the right choice for your use case. > Did you try write on AppFuse ML in order to solve your issues? >

Re: getText in error messages: resource bundle or bean value?

2012-10-19 Thread J. Garcia
field value "1234". getText is then trying to locate an entry for "1234" > and cannot find one so it is just return "1234". > > It might work if you try ${getText('user.password')}. Otherwise, you may > need to rename it. > > -Origi

Re: getText in error messages: resource bundle or bean value?

2012-10-19 Thread J. Garcia
o have the same value as the ${getText("user.password")} field. Solved! On Fri, Oct 19, 2012 at 2:10 PM, J. Garcia wrote: > Hi, > I'm having a problem with getText(). >

getText in error messages: resource bundle or bean value?

2012-10-19 Thread J. Garcia
sword field. However, when the error message is shown, instead of the text from the resource bundle, what is shown are the actual values of the bean, like this: The abcd field has to have the same value as the 1234 field. Is this a bug in getText()? Cheers, J. Garcia

additional params for tags in JSP

2012-10-13 Thread J. Garcia
corresponding freemarker template? Cheers, J. Garcia

Re: Getting following exception while trying validation mechanism in struts2

2012-08-07 Thread J. Garcia
://issues.apache.org/jira/browse/WW-3833 Cheers, J. On Tue, Aug 7, 2012 at 8:40 AM, prasad.th16 < dattaprasad_tha...@syntelinc.com> wrote: > I could resolve the error. Actually problem was with my converter. It was > throwing the null pointer exception in the coverter I wrote to convert

Re: PreffixMapper for language

2012-07-10 Thread J. Garcia
Does not sound bad. Just try it. Another option worth trying-out is urlrewrite: http://tuckey.org/urlrewrite/ With urlrewrite filter, you could set locale and forward to /mypackage/myaction. Saludos, J. On Mon, Jul 9, 2012 at 9:27 PM, JOSE L MARTINEZ-AVIAL wrote: > Last try: > Hello, >

Re: Struts CRUD generator

2012-07-06 Thread J. Garcia
This is the one that generates crud app from database, as posted here weeks ago: http://struts2builder.sourceforge.net J. On Fri, Jul 6, 2012 at 6:42 PM, Oscar Alvarez wrote: > Take a look at AppFuse. > > http://appfuse.org/display/APF/Home > > 2012/7/5 Mitch Claborn > >

Re: data injection attack

2012-07-04 Thread J. Garcia
for which methods can be called - this not only would prevent > url parameters being set but also prevent restricted fields of any object > being updated. > > Marcus. > > > > -Original Message- > From: J. Garcia [mailto:jogaco...@gmail.com] > Sent: 04 July 201

Re: data injection attack

2012-07-04 Thread J. Garcia
Implementing the ParameterNameAware interface with white/black list seems the best solution. Thanks, J. On Wed, Jul 4, 2012 at 3:51 PM, Dave Newton wrote: > Then whitelist/blacklist. > > Or don't expose sensitive data directly to the user. > > Dave > > (pardon brevi

Re: data injection attack

2012-07-04 Thread J. Garcia
My action would have: public void setMyBean( MyBean myBean) {...} and I would like to avoid an injection on myBean.field3. This field could be the owner id for instance! On Wed, Jul 4, 2012 at 3:34 PM, Łukasz Lenart wrote: > Another way is to use AnnotationParameterFilterIntereptor (name > cont

data injection attack

2012-07-04 Thread J. Garcia
ction attack. How can this be done in Struts2? J.

Re: Struts2 : formatting and entering doubles consistently through the whole application not depending on locale

2012-06-19 Thread J. Garcia
this: 345 987, I get a conversion error. J. On Mon, Jun 18, 2012 at 5:28 PM, Chris Pratt wrote: > I think the problem is that the French locale specifies that it should be > written as "445.000,00" not "445,000.00". The parser expects localized > input. > (*

Re: simplest web program with struts

2012-06-11 Thread J. Garcia
Maven archetypes are a good starting point as well. http://struts.apache.org/2.3.4/docs/struts-2-maven-archetypes.html You may want to have a look at AppFuse Java RAD. It has several frameworks to choose from, among them struts2: appfuse.org. J. On Sun, Jun 10, 2012 at 11:38 PM, bphill

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread J. Garcia
Sorry, my mistake. Done: https://issues.apache.org/jira/browse/WW-3841 On Mon, Jun 11, 2012 at 9:41 AM, J. Garcia wrote: > Done: > https://issues.apache.org/jira/browse/WW-3833 > > > > On Mon, Jun 11, 2012 at 9:32 AM, Łukasz Lenart < > lukasz.len...@googlemail.c

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread J. Garcia
ference - Confitura http://confitura.pl/ > > 2012/6/11 J. Garcia : > > A full example based on struts2 blank archetype attached. > > Run with maven2: mvn jetty:run > > Url: http://localhost:8080/struts-test/example/Login > > > > Enter as year of birth a bad intege

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-08 Thread J. Garcia
mation, if there is no > validation error...? > > > > -----Original Message- > From: "J. Garcia" [jogaco...@gmail.com] > Date: 06/07/2012 12:21 PM > To: "Struts Users Mailing List" > Subject: Re: Struts 2 losing timestamp in java.util.Dat

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-07 Thread J. Garcia
Try using date formatting like this: J. On Wed, Jun 6, 2012 at 11:08 PM, s wrote: > Here's an JSPs, action class and struts.xml > > http://localhost:8080/Sample/student_edit.action calls form/jsp > studentDetails. > > Erase name and submit form, this will res

Re: conversion error repopulation not working

2012-05-31 Thread J. Garcia
This works nicely. Thanks! Cheers, J. On Thu, May 31, 2012 at 3:07 PM, Łukasz Lenart wrote: > Can be reduced to this: > > public String getFormatted(String key, String fieldName, List args) { > if (getFieldErrors().isEmpty()) { > return getText(key, args);

Re: Action inheritance and value automatic injection failure

2012-05-29 Thread J. Garcia
I guess you're using Spring. If you use Spring injection via an xml file, you must use inheritance: Cheers, J. On Tue, May 29, 2012 at 2:31 PM, Dionis Argiri wrote: > Hi! > > I'm using struts 2.3.3. And I have marked following p

Re: conversion error repopulation not working

2012-05-29 Thread J. Garcia
Integer. On Mon, May 28, 2012 at 10:04 AM, Łukasz Lenart < lukasz.len...@googlemail.com> wrote: > Is it int either Integer ? > > > Regards > -- > Łukasz > mobile +48 606 323 122 http://www.lenart.org.pl/ > Warszawa JUG conference - Confitura http://confitura.pl/ >

Re: conversion error repopulation not working

2012-05-25 Thread J. Garcia
obtain is from an input field with conversion error. In such a case, it would obtain the value from the user input. If no error, the value would be from the bean. Does it make sense? Cheers, J. On Thu, May 24, 2012 at 8:10 AM, Łukasz Lenart wrote: > Could you add some code example ? > >

conversion error repopulation not working

2012-05-23 Thread J. Garcia
Overrides(fakeParams); } }); } However, when showing the jsp for user input, the invalid value is not in the form input field. It does not seem to work as documented in the mentioned url. Cheers, J.

Re: Does the StrutsTestCase test filters defined in web.xml?

2012-05-15 Thread J. Garcia
I recommend you use canoo webtest. This is not a unit test tool, but integration test tool. This is the tool used for instance in AppFuse. It has specific pdf verification steps. Cheers, J. On Mon, May 14, 2012 at 5:33 PM, Miguel Almeida wrote: > Hi Steve, > > On Mon, 2012-05-14 at 11

Re: MySQL + JDBC

2009-12-15 Thread Patrick J Kobly
Running the binary dist of Tomcat? tomcat.exe / tomcatw.exe PK Todd Grigsby wrote: Patrick J Kobly wrote: Todd Grigsby wrote: Other native apps. The Java apps are being migrated from a 32-bit environment (WinXP and Java 32-bit + Struts 1.1), and they worked there. I don't want to

Re: Unique Id creation

2009-12-15 Thread Patrick J Kobly
java.util.UUID.randomUUID() ? http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.htm PK jayakumar ala wrote: I am trying to upload multiple files in my application , So i am looking for different approach to create unique Id for all the uploaded files. Any suggestions are appreciated. O

Re: MySQL + JDBC

2009-12-15 Thread Patrick J Kobly
Todd Grigsby wrote: Other native apps. The Java apps are being migrated from a 32-bit environment (WinXP and Java 32-bit + Struts 1.1), and they worked there. I don't want to point to any one thing, since every part of the equation is a newer version of what was there before, but at this poi

Re: MySQL + JDBC

2009-12-15 Thread Patrick J Kobly
Do you have other Java apps working, or just other native apps? PK Todd Grigsby wrote: It's all 64-bit, installed correctly enough to work from other apps. I will try the Sun forums. TG - To unsubscribe, e-mail: user-

Re: "specified DSN contains an architecture mismatch"

2009-12-15 Thread Patrick J Kobly
n one of those two places. PK Thanks for the suggestions. I'll keep digging. TG Patrick J Kobly wrote: Perhaps try using a 64-bit JVM or installing the 32-bit ODBC driver... The first couple of Google hits when searching for the error message provided seem to suggest hints for inst

Re: "specified DSN contains an architecture mismatch"

2009-12-14 Thread Patrick J Kobly
Perhaps try using a 64-bit JVM or installing the 32-bit ODBC driver... The first couple of Google hits when searching for the error message provided seem to suggest hints for installing the 32-bit ODBC driver under 64-bit Windows. You are likely to get more traction on this question asking it

Re: FreeMarker Tags Help - setup

2009-09-21 Thread j alex
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

Re: Warning message when setting BigDecimal to list of bean

2009-09-10 Thread j alex
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

Re: Intermittent Session Problems in Strut2.

2009-09-10 Thread j alex
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

Re: [S2] i18n for lists/maps

2009-09-05 Thread j alex
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

[S2] i18n for lists/maps

2009-09-04 Thread j alex
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

Adding validators dynamically

2009-06-10 Thread j alex
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

Re: DWRValidator not working in Struts 2.1.6

2009-05-24 Thread j alex
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

Re: AJAX issues in struts 2.1.6

2009-05-24 Thread j alex
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

Re: DWRValidator not working in Struts 2.1.6

2009-05-18 Thread j alex
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

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
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

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
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

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
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

DefaultActionInvocation - vaf set in StrutsPrepareFilter but not for DWR

2009-05-14 Thread j alex
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

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
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

Re: Errors repopulating the list after validation.

2009-02-20 Thread sheva j
__ > _ mailto:sidharth.bhat...@gmail.com > > > -Original Message- > From: sheva j [mailto:shee...@gmail.com] > Sent: Wednesday, February 18, 2009 11:42 PM > To: Struts Users Mailing List > Subject: Re: Errors repopulating the list after validation. >

Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-20 Thread sheva j
or, please notify the sender > immediately by return e-mail and securely discard this message. > > > > -Original Message- > From: sheva j [mailto:shee...@gmail.com] > Sent: Thursday, February 19, 2009 10:38 AM > To: Struts Users Mailing List > Subject: How to get

How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread sheva j
Hi, I am using struts 2.0.11. I am using tag, struts is populating the list box correctly for all the time, except when the validation error occurs for any other field. My issue is: When I first enter into the page, I am able to get the dropdown value, When I submit the page with out entering s

Re: Errors repopulating the list after validation.

2009-02-18 Thread sheva j
Hi, Declare like this in your action class, List country = new ArrayList(); Hope this will solve your problem - Sheeva On Thu, Feb 19, 2009 at 5:47 AM, Sidharth Bhatia wrote: > Hi, > > > > I have form, and a list that is being populated with it. When I first enter > the action the list po

Re: DefaultActionInvocation exception

2009-02-02 Thread J D
I amn't able to get the links right in Nabble. It renders it wrong... Resending the messed up lines in the jsp ','APPROVALFORM');"> Thanks !! J D wrote: > > Here goes the details > >

Re: DefaultActionInvocation exception

2009-02-02 Thread J D
} return this.DISPLAY; } Please let me know if I need to post any additional information newton.dave wrote: > > As I said on JavaRanch you'll need to post at least the configs. > > Dave > > J D wrote: >> I need some help f

DefaultActionInvocation exception

2009-01-30 Thread J D
I need some help figuring out where I need to search for the problem below. I have a jsp input.jsp which calls display.jsp on click of submit. display.jsp can also be called directly using search. A URL in display.jsp does not work when it is being redirected from input.jsp but works when direct

Re: Issue getting autocompleter value in javascript

2009-01-29 Thread sheva j
> Hi, I am using struts2.0.11 for my project. I am using struts xml validation. I need to validate a date field(I am not using struts date picker) in dd/MM/ format, but struts is validating against MM/dd/ format. Is that possible to validate against dd/MM/ format? If

exception handling

2009-01-17 Thread J J
Hello, I am trying to implement declarative exception handling for all the possible exceptions. The problem is that in this way I only catch some exceptions (not all of them) and I cant get its stack trace nor its message(it is only rendered the rest of my JSP but not the information about the s

DateTimePicker in 2.0.12

2008-11-14 Thread J J
Hello, I'm trying to use datetimepicker struts label, but when I execute it it onnly renders label. I have inside the tag head, and in the form think that perhaps I don't have all the libraries: antlr-2.7.2.jar commons-chain-1.1.jar commons-logging-api-1.1.jar freemarker-2.3.8.

Re: Problem with select

2008-11-12 Thread J J
OK that was I had to submit the form not only link with the action, thanks. De: Dave Newton <[EMAIL PROTECTED]> Para: Struts Users Mailing List Enviado: miércoles, 12 de noviembre, 2008 23:06:30 Asunto: Re: Problem with select --- On Wed, 11/12/0

Re: Problem with select

2008-11-12 Thread J J
Key) and what is the field name you want to display to the user (defined by listValue). If they're not "key" and "value" respectively then that's why you're getting null. They need to be named the same as the attributes on the object. -Original Mess

Problem with select

2008-11-12 Thread J J
Hello, I have this select but it is not working and I don't know what is missing: I have an myAction an attribute called MyList which contains Objects of the same type A. I also have an Attribute of type String in myAction called returnValue. Objects of A type have key and value as attributes

Re: Struts2 upload

2008-11-10 Thread Nick J
Thanks to everyone who responded. It is now working. I removed the - it's not needed I added method="post" to the HTML form element - I had forgotten it. The extends="json-default" in the pacjage is needed because of one of the other actions produces a JSON response.

Scoped Model Driven Interceptor issue

2008-11-03 Thread Peterson, Andy J
We are using the scoped model driven intcerceptor in our application. How do you clear the scoped model before the session times out? We will fill out a form and then go back to the form and the data from the previous form is still there. Thanks Andy Peterson -

Clustering in weblogic 9.2 with scoped model driven interceptor

2008-11-03 Thread Peterson, Andy J
We are using the scoped model driven interceptor on weblogic 9.2 mp1 two server cluster and are noticing that data is not being replicated across the cluster. Has anybody else run into this scenario and know how to fix this. Thanks Andy Peterson -- T

Struts2 upload

2008-11-01 Thread Nick J
Hi, I am having some trouble with Uploads in Struts 2. Here is the action: /upload.html Here is the HTML form: Here's the appropriate part of the action class: public String imageUpload()

Executing Action on validation failure.

2008-10-13 Thread j alex
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

Issue using struts2 richtext editor

2008-10-10 Thread sheva j
Hi, I am using struts 2.0.11. In jsp I have written All other options(Bold, italic etc.,) are working fine except format combo box. Whenever I change format option from 'normal' to anyother option such as fixedFont, in the browser it is showing: FATAL exception raised: [object Error] How to

Re: Struts2 static content

2008-10-03 Thread Nick J
/css/{1} /js/{1} Nick J wrote: > > I am using struts2. > I don't want .action or .do on the end of the url's, so I set > struts.action.extension='' (empty string) > -- View this message in context: http://www.nabble.com/Struts2

Struts2 static content

2008-10-02 Thread Nick J
I am using struts2. I don't want .action or .do on the end of the url's, so I set struts.action.extension='' (empty string) Now this leaves me with a bit of a problem serving static content, since struts swallows up all of my requests, and nothing gets through to the default servlet. How can I s

Re: Issue getting autocompleter value in javascript

2008-09-29 Thread sheva j
AIL PROTECTED]> wrote: > > autocompleter is a dojo widget, you should try to get its value through > dojo api for widgets not dom api. Your javascript will not work (as you have > already noticed). > > regards, > > > > - Original Message > From: sheva j

Issue getting autocompleter value in javascript

2008-09-29 Thread sheva j
Hi, I am using struts2.0.11(I missed out in the previous mail). One more question, Is it possible to trigger onchange event of autocompleter(Ajax). Kindly help me Thanks in advance.

Issue getting autocompleter value in javascript

2008-09-29 Thread sheva j
Hi, I am facing an issue in getting, selected value of autocompleter in javascript. Issue: On the onclick event of a button, I am calling a javascript function. getAutoValue() { var selectedValue = document.getElementById("auto").value; alert(selectedValue); } where 'auto' is autocompleter's

Issue using struts2 autocompleter.

2008-09-24 Thread sheva j
Hi, I am facing an issue in struts2.0.11 autocompleter. Issue: In jsp page where I have used autocompleter, IE is showing an alert message with "stack overflow at line: 8259" and in the same jsp page, I have an error as "djConfig.baseScriptUri.length' is null or not an object" Jsp code for auto

Re: Issue using struts2 autocompleter.

2008-09-24 Thread sheva j
Hi, Thanks for your replay Martin. I am new to struts. In my project I am not at all changing any dojo file. Whether I need to include any javascript code to fix the issue. Kindly help me... Thanks in advance. On 9/23/08, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > djConfig.baseScriptUri.le

Re: Jasper Report Plugin

2008-07-04 Thread Patrick J Kobly
Title: [Fwd: test] System property java.awt.headless needs to be set to true.  (-Djava.awt.headless=true in the startup for whichever container you're using) PK Felipe Rodrigues wrote: Hi Guys, I'm having a problem when trying to use JasperReport plugin in a linux machine. I'm getting ro

Re: Dynamic indexed field name in validation?

2008-02-10 Thread j alex
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

Re: S2 Action : request params and session attributes

2008-02-10 Thread j alex
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

S2 Action : request params and session attributes

2008-02-10 Thread j alex
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

Re: S2 : Checking constants within JSP

2008-02-02 Thread j alex
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

S2 : Checking constants within JSP

2008-02-02 Thread j alex
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

Re: Struts2 2.0.11 Validation with DWR

2008-02-02 Thread j alex
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

Struts, Interceptor error message customization

2008-01-30 Thread Mike J. M.
Hello, So I am currently using Struts, including an action that has a fileUpload Interceptor that checks for files that are too large and certain allowable file types. Right now if either of these conditions are met, the system will throw a generic HTTP 500 error up. What I am wondering is how to

Re: Changing the location of the ajax validation error

2008-01-28 Thread j alex
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

Re: accessing url parameters in jsp.

2007-12-20 Thread j alex
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

accessing url parameters in jsp.

2007-12-18 Thread j alex
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

Re: bypass validation

2007-12-07 Thread j alex
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

Re: Struts 2 Session Timeout

2007-11-29 Thread j alex
>> 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

Re: adding validation leads to NullPointerException

2007-11-29 Thread j alex
>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

S2 Jasper Reports plugin - exporter parameters

2007-11-29 Thread j alex
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

Re: [S2] ArrayList of Object as datasource in JasperReports

2007-11-08 Thread j alex
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

S2 Jasperreports plugin : passing exporter parameters

2007-11-07 Thread j alex
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

  1   2   3   4   5   >