Re: Field Name Collision?

2011-04-26 Thread Dave Newton
Doubt you're doing anything wrong; I'd expect it's how OGNL does its lookup but haven't confirmed that. Dave On Tue, Apr 26, 2011 at 3:52 PM, Eric Lentz wrote: > - Struts 2.2.1 > - Tomcat 6.0 > - JDK 1.5.0_22 > - Code example of the problem: http://pastebin.com/eyyJaBg4 > - Description: > I have

Re: [S2] Getting error while running struts project

2011-04-26 Thread Dave Newton
On Tue, Apr 26, 2011 at 3:08 PM, Anjib Mulepati wrote: > com.opensymphony.xwork2.util.finder.ClassFinder What versions of S2/XW2/etc. are you deploying? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addi

Re: SEVERE: Exception starting filter struts2

2011-04-26 Thread Dave Newton
On Apr 26, 2011 10:40 AM, "alex zaim" wrote: > Thank you, can you please show me what line indicates that the error is specific to the server but not struts? > Caused by: java.lang.ClassNotFoundException: org.hibernate.Session Dave

Re: SEVERE: Exception starting filter struts2

2011-04-26 Thread Dave Newton
Just because ant or an ide sees a class doesn't mean the web server does when you're deploying or starting up. Almost certainly a classpath issue with the server, almost certainly not Struts, just like the exception indicates. Dave On Apr 26, 2011 8:52 AM, "alex zaim" wrote: > Hello. I'm trying

[OT] Re: How to implement wordpress like themes?

2011-04-25 Thread Dave Newton
maybe has different sections. For > example, the index.jsp page of theme1 maybe contains a "latest news" > section, but in theme2, there is a "popular products" section but no "latest > news" section. How to achieve this? > > Best Regards, > Lee > >

Re: How to implement wordpress like themes?

2011-04-25 Thread Dave Newton
Use CSS and include a different one for each theme. See the CSS Zen garden site for examples of what can be done with pure CSS. Dave On Apr 25, 2011 3:29 AM, "rocklee" wrote: > I want to implement wordpress like themes, one application has different > themes, the template in each theme maybe hav

Re: streaming plain text, json, xml back to the user, IllegalStateException

2011-04-22 Thread Dave Newton
My first guess would be to return null so you're not rendering a jsp after the output stream is closed. Dave On Apr 22, 2011 11:49 PM, "Jake Vang" wrote: > what i did to get rid of this message was to add the following line > before i do anything. > > getSerlvetRequest().getSession(); > > that m

Re: Form xml validation doesn't work

2011-04-22 Thread Dave Newton
It'd be easier if you'd post a minimal, non-working example--it'll help us see what's wrong. I'm begging you to remove the huge image at the bottom of your emails. Dave On Fri, Apr 22, 2011 at 8:44 AM, kiala davy wrote: > Hi, > > I am learning Struts and working on tutorial of form validation

Re: [S1] Curly braces are unescapable in MessageResources

2011-04-20 Thread Dave Newton
I'd play with the MessageFormat Javadocs: > Within a String, "''" represents a single quote. A QuotedString can contain > arbitrary > characters except single quotes; the surrounding single quotes are removed. An > UnquotedString can contain arbitrary characters except single quotes and left > c

Re: Struts @Inject vs. Spring @Autowire

2011-04-20 Thread Dave Newton
He's saying that he prefers @Inject since it's a standard; there are multiple implementations of the annotation. Dave On Wed, Apr 20, 2011 at 9:49 AM, M. Rakowski wrote: > >> @Inject is the JSR-330 standard, right? > > I meant com.opensymphony.xwork2.inject.Inject. > But you are right, I should

Re: Struts @Inject vs. Spring @Autowire

2011-04-20 Thread Dave Newton
If you're using Spring as anything other than a DI framework, yes. If not, depends. Dave On Apr 20, 2011 8:55 AM, "M. Rakowski" wrote:

[OT] RE: Using Strut in Desktop Application

2011-04-20 Thread Dave Newton
ail. > > > > > Keenly waiting for your reply. > > Regards, > > Alok > > > > > From: Dave Newton-6 [via Struts] > [mailto:ml-node+4315353-1426382771-199...@n5.nabble.com] > > Sent: Wednesday, April 20, 2011 3:16 PM > To: Singh, Alok (Cognizant) > Subje

RE: Using Strut in Desktop Application

2011-04-20 Thread Dave Newton
Why a "desktop" app? And even if you're dead-set on that, why not run an embedded server? Sonar is a web app. Dave On Apr 20, 2011 2:38 AM, "Alok" wrote: > > I am trying to create an Desktop Application which function as Code > Review for COBOL. > > > > > > > > > Input- Cobol File(s) which will

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
You'd create a tag; there aren't any out-of-the-box in S2, although there might be a third-party taglib that'd do it. It's really, really easy. Dave On Tue, Apr 19, 2011 at 3:03 PM, Biesbrock, Kevin wrote: > Now we're narrowing in: > >> > > Do I need to create my own taglib for 'v'?  There seem

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
On Tue, Apr 19, 2011 at 2:50 PM, Biesbrock, Kevin wrote: > One option, I gather, is the same > thing Eric suggested -- render the template in the action class and put > the result into a string for the view to pull using . > Is that correct? Yeah, although I'd just use JSTL ${whatever} > What abo

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
On Tue, Apr 19, 2011 at 2:34 PM, Biesbrock, Kevin wrote: > There was no response to that and I didn't want to specifically call you > out for a response because I recognize that you're a developer, too, and > are busy with your own shtuff. The response was embedded/implied; if there's no data mode

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
Check back in the list; we just discussed this topic within the last few days. Dave On Tue, Apr 19, 2011 at 1:55 PM, Eric Lentz wrote: >> I'm working on a legacy system that is built on jsp.  In one of the jsps >> I need to include a velocity template.  The template does not require >> access to

Re: Using Strut in Desktop Application

2011-04-19 Thread Dave Newton
> I am working on a Desktop application. I would like > to use [the] Struts frame[work] in it. Question one: why? > Is it possible? Sure, in a variety of ways. Most of them don't seem like a good idea. > Please explain me if yes , how to implement. Struts 1 or Struts 2? If Struts 1, I really w

Re: Velocity Inclusion in JSP

2011-04-15 Thread Dave Newton
On Fri, Apr 15, 2011 at 1:03 PM, Biesbrock, Kevin wrote: > So I have a block of contact information that we would like to appear > similarly whenever it's displayed.  So on our home page, on a printable > confirmation page, or in a generated email -- it should always appear the > same.  Yesterda

Re: Velocity Inclusion in JSP

2011-04-15 Thread Dave Newton
Seems like a JSP-based custom tag would be the easiest, but I don't actually know what your template requirements are, so it's tough to say. What's the use-case? Dave On Fri, Apr 15, 2011 at 11:13 AM, Biesbrock, Kevin wrote: > There seem to be plenty of documents outlining how to include a jsp

Re: s:push problem

2011-04-15 Thread Dave Newton
(I'm always nervous when business logic names something the same as something servlet-ish.) My first assumption would be that the pushed object is masking underlying properties. Don't know why it would start now--did you check the changelog for the release you're currently using? Don't know what

Re: addActionError() caused "Page not found (404)".

2011-04-14 Thread Dave Newton
On Thu, Apr 14, 2011 at 3:12 PM, Emi Lu wrote: > I mean that I agree with Aner. If I just "addActionErrorMessage", but not a > real ActionError, I would not expect the interceptor stop the workflow :-( There's no such thing as a "real ActionError". There are error messages. If there are error mes

Re: addActionError() caused "Page not found (404)".

2011-04-14 Thread Dave Newton
On Thu, Apr 14, 2011 at 2:43 PM, Emi Lu wrote: >> Especially if there were no validation errors, >> only error messages added by the application code. > By the way, I agree with this very much! So you're basically saying that you want to differentiate between two different types of errors, or at t

Re: addActionError() caused "Page not found (404)".

2011-04-14 Thread Dave Newton
On Thu, Apr 14, 2011 at 2:38 PM, Emi Lu wrote: >> 1. Add an "input" result to your config as previously stated > Do not know where/what should be set in struts.xml :-( In the action that causes the 404 because there's no input. Dave ---

Re: addActionError() caused "Page not found (404)".

2011-04-14 Thread Dave Newton
On Thu, Apr 14, 2011 at 12:18 PM, Aner Perez wrote: > It's annoying because it uses a side effect to figure out if validation > failed. > Instead of setting some flag when any validation fails and using that flag > to determine if the INPUT result should be displayed, it is using the number > of

Re: addActionError() caused "Page not found (404)".

2011-04-14 Thread Dave Newton
On Thu, Apr 14, 2011 at 11:54 AM, Aner Perez wrote: > This is an annoying "feature" of the Workflow interceptor.  If > ValidationAware.hasErrors() returns > true, the interceptor chain is stopped and Action.INPUT is returned.  If you > put error messages > on your action, it will make hasErrors

Re: addActionError() caused "Page not found (404)".

2011-04-14 Thread Dave Newton
Did you try adding an "input" result and seeing if the issue went away? d. On Thu, Apr 14, 2011 at 10:12 AM, Emi Lu wrote: > >> I'm still guessing it's a validation thing--put an "input" result in >> there and check. >> >> Also, by naming the results the same as the actions you're actually >> ci

Re: Highlighting Error Fields through Dynavalidator

2011-04-14 Thread Dave Newton
On Thu, Apr 14, 2011 at 6:57 AM, Sunil Choppara wrote: > Can any one tell me to how we can Highlight Error Fields if we use > dynaValidator and > Dispatch action class. I'm not aware it's any different based on what action class or form style is being used. So what do you mean by "highlight"? Is

Re: addActionError() caused "Page not found (404)".

2011-04-13 Thread Dave Newton
I'm still guessing it's a validation thing--put an "input" result in there and check. Also, by naming the results the same as the actions you're actually circumventing one of the reasons for abstracting the result names from everything else. Even for test apps it's just not a good habit, IMO. Dav

Re: addActionError() caused "Page not found (404)".

2011-04-13 Thread Dave Newton
Depends on where you added the addActionError() call, at the very least--an action error indicates a validation problem, so it may be trying to go to the "input" result. Not enough information to help. Dave On Wed, Apr 13, 2011 at 3:19 PM, Emi Lu wrote: > Hello, > > addActionError() caused "Pag

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread Dave Newton
Whew! Dave On Wed, Apr 13, 2011 at 11:27 AM, Eric Lentz wrote: > I'm now buying what you're selling. I did have a misunderstanding about > when the JSP is called relative to validation. I once was blind, but now I > see. Thanks for clearing that up. I now see how to make the application > work c

Re: form action is not calling while click on submit button: Struts2.0

2011-04-13 Thread Dave Newton
Probably that whole tags-being-interpreted-as-tags this in HTML emails, which is why plain-text emails are better for lists. Dave On Wed, Apr 13, 2011 at 10:15 AM, Biesbrock, Kevin wrote: > That's strange.  Why doesn't the code come through in the email but it > shows up on the nabble site? > >

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread Dave Newton
On Wed, Apr 13, 2011 at 10:05 AM, Eric Lentz wrote: > The real application is not a SSCCE, but exhibits the same symptoms. Okay. To make sure I have this correctly reasoned (and have read previous emails correctly). Q1: Which path(s) through the app are you saying are a bug? You said: > If I a

Re: How to i18n post validation error messages?

2011-04-13 Thread Dave Newton
On Wed, Apr 13, 2011 at 9:52 AM, alex zaim wrote: > When you said getText() i thought you meant value="getText('some.key')" /> > > It works all good now when i use it from validate(). > > Thanks a lot! No problem! Dave - To uns

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread Dave Newton
On Wed, Apr 13, 2011 at 9:51 AM, Eric Lentz wrote: >>Create and post an SSCCE demonstrating the perceived issue, here or >>preferably on a pastebin-like service. > > I assume an SSCCE is a JIRA report for Struts2? I started one but am > waiting to hit submit in case you have something else in mind.

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread Dave Newton
Create and post an SSCCE demonstrating the perceived issue, here or preferably on a pastebin-like service. The bottom line is that the JSP is being hit, because it's where the error message is coming from, because the list isn't present. I assume you have devMode switched on and are logging at th

Re: How to i18n post validation error messages?

2011-04-13 Thread Dave Newton
On Wed, Apr 13, 2011 at 9:01 AM, alex zaim wrote: >>No. Use existing getText(...) methods. > > That will be parsed right before validation. I want to show the fielderror > results... > in another language. I don't understand what you're saying. If you're doing validation in validate(). getText(

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread Dave Newton
On Wed, Apr 13, 2011 at 8:49 AM, Eric Lentz wrote: > I totally agree with your analysis of the operation of a validation error / > input page. I don't believe that's what is happening though. I ran Struts in > debug mode and stepped through where it was getting tripped up and it fails > very early

Re: How to i18n post validation error messages?

2011-04-13 Thread Dave Newton
On Wed, Apr 13, 2011 at 8:38 AM, alex zaim wrote: > Please suggest the best method, if possible. (perhaps from right within > validate() method? > should i make my own resource parser in this case?) No. Use existing getText(...) methods. Dave ---

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread Dave Newton
(For completeness, it could also be a type conversion error.) d. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Select collection not found only when validation xml file is used

2011-04-13 Thread Dave Newton
On Wed, Apr 13, 2011 at 7:56 AM, Eric Lentz wrote: > @Dave>> The page displays the list--how could you not need it? > Right, during display I need it. During *SAVE* I do not need it. During > the save is when Struts is demanding it (incorrectly I feel). If there's a validation error, the input pa

Re: Struts2 + spring3.05 + Quartz => IncompatibleClassChangeError

2011-04-12 Thread Dave Newton
Perhaps asking on a Spring list since so far it doesn't seem to be related to Struts at all. Dave On Tue, Apr 12, 2011 at 5:01 PM, Emi Lu wrote: > >> I'd look for class loading issues. Maybe you have a couple jars with >> quartz? Maybe an incompatible version combination? > > Two jars: > ===

Re: Select collection not found only when validation xml file is used

2011-04-12 Thread Dave Newton
On Tue, Apr 12, 2011 at 3:12 PM, Eric Lentz wrote: > I'm not sure if you meant it this way, but my point is that I don't *need* > the list - or at least I shouldn't need it IMO. The page displays the list--how could you not need it? d.

Re: Select collection not found only when validation xml file is used

2011-04-12 Thread Dave Newton
On Tue, Apr 12, 2011 at 1:16 PM, Eric Lentz wrote: > > > If I add a validation file, validating anything, not even specifically the > list, the page fails telling me that the [gender list could not be found]. > > This seems like a bug. I second Chris's suggestion to initialize the list when you n

Re: Password comparison has a strange behavior.please help(struts2)

2011-04-12 Thread Dave Newton
Interesting. My first comment would be that client side validation doesn't support expression validations; only the following are supported as per [1]. * required validator * requiredstring validator * stringlength validator * regex validator * email validator * url validator * int validator * do

Re: form action is not calling while click on submit button: Struts2.0

2011-04-12 Thread Dave Newton
I don't see any code. Dave On Sat, Apr 9, 2011 at 6:22 AM, arun wrote: > hi, > > i'm facing a problem in action calling. > > Enviroment: > 1. apache-tomcat-6.0.18 > 2. Struts2.0 > > here is the JSP form code: > > > > > > > Problem is that when i'm defining action like in above code, its not call

Re: Wildcard pattern not calling interceptor?

2011-04-09 Thread Dave Newton
I think the confusion arose because you said "hitting JSP pages directly", which isn't really what you meant. Why does the session checker come last? Wouldn't it make more sense for it to come really early in the process? Is the behavior the same if you move the session check to be first or second

Re: Debug problem, one http request is send twice.

2011-04-09 Thread Dave Newton
Without more info it'll be difficult to help. Dave On Saturday, April 9, 2011, DanY Liu wrote: > Hi all, > > I want to try the model driven and prepare interceptors in struts 2, so I > wrote a example. Then I was going to debug the program, every time , one > http request make two "request" in t

Re: Accessing session objects other than action in Struts 1.x

2011-04-07 Thread Dave Newton
On Thu, Apr 7, 2011 at 9:25 AM, Massimo Ugues wrote: > > I want to access session objects in a class other than Action. > You have to pass the ServletRequest object or the Session object > to the instance of that class. Please don't. Doing so ties the dependent classes to either Struts or the Ser

Re: Accessing session objects other than action in Struts 1.x

2011-04-07 Thread Dave Newton
On Apr 7, 2011 5:48 AM, "Ganesh" wrote: > I am using Struts 1.0.2. Good lord why? > I want to access session objects in a class other than Action. Is there any way to acheive it rather than passing the information via parameter to each and every function? You could create a thread local and acce

Re: How to free resources after form have been closed

2011-03-31 Thread Dave Newton
On Thu, Mar 31, 2011 at 2:51 PM, Ragner Magalhaes wrote: > appview1(jsp file) -> open -> appview2(jsp file) > > Where the appview2 has a FormAction and an Action > > What is the best way to know when appview2 was closed? What kind of resources are you trying to free? The only way is to monitor tr

Re: Help with Spring JDBC

2011-03-31 Thread Dave Newton
On Thu, Mar 31, 2011 at 11:02 AM, Dave Newton wrote: > This is a Spring question? And are you using the Spring plugin? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: use

Re: Help with Spring JDBC

2011-03-31 Thread Dave Newton
This is a Spring question? Dave On Wed, Mar 30, 2011 at 2:12 PM, alxer wrote: > Hello, > I am developing a web application with EclipseIDE and I am using the Struts2 > and Spring3 frameworks. > I am trying to configure the web application acces to my MySQL database. > I am inexperienced with the

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Dave Newton
Perhaps posting the question here would be of value. Dave On Thu, Mar 31, 2011 at 9:34 AM, Massimo Ugues wrote: > Hallo all. > I have a strange issue described here: > http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity > >

Re: Chinese character problem

2011-03-31 Thread Dave Newton
When displaying? When submitting a form? When what? Is your encoding set properly? Are you escaping it somewhere? 2011/3/31 Rohit : > Hi, > > I am trying to handle Chinese word in my application (Struts2 bases), but > when the word "沃尔沃" in UI it becomes "沃尔沃". > > How can I handle this? > > Regar

Re: Migration from 2.1.8 to 2.2.1.1

2011-03-30 Thread Dave Newton
What about the MPL concerns you? On Wednesday, March 30, 2011, Struts Two wrote: > None of the javaassist's dual licenses is (modified) Apache license. I > understand some software applications that use plugins to have different open > sources licenses as they are optional. But once a library is

Re: [OT] Re: Could somebody tell me where can I find struts2 sample maven archetypes?

2011-03-25 Thread Dave Newton
hen you don't have one. How > ironic<http://www.wired.com/magazine/2010/12/pr_burningquestion_legalwarning/> > . > > > <http://www.wired.com/magazine/2010/12/pr_burningquestion_legalwarning/>Nick > > On Fri, Mar 25, 2011 at 9:02 AM, Dave Newton wrote: > >

[OT] Re: Could somebody tell me where can I find struts2 sample maven archetypes?

2011-03-25 Thread Dave Newton
I knew there had to be something more annoying than the reams of legalese some people think is useful in a .sig. On Fri, Mar 25, 2011 at 9:38 AM, webmeiker wrote: > Hi, > > Working with Eclipse & m2eclipse maven Eclipse plugin, > > Could somebody tell me where can I find struts2 sample maven arc

Re: Problem in display message using html:message

2011-03-24 Thread Dave Newton
On Thu, Mar 24, 2011 at 11:56 AM, vivek mishra wrote: > Yes Dave. Can you please give any suggestion to acheive this requirement or > is there any other way available through which I could forward this > ActionForward. You'd want to implement a so-called "flash" scope, or "message" scope, where s

Re: Problem in display message using html:message

2011-03-24 Thread Dave Newton
It's a redirect, of course you lost the request object. Dave On Thu, Mar 24, 2011 at 11:40 AM, vivek mishra wrote: > Hi list, > > I am trying to send additional parameter in action mapping, so that I have > written this code: > public ActionForward addParameterToForward( >            ActionForwa

Re: [S1.3.8] Mapping problem

2011-03-23 Thread Dave Newton
On Wed, Mar 23, 2011 at 5:52 AM, Okan Özeren wrote: > You should use as this when action forwarding: > > // Passed arg0 parameter is an object which is created from ActionMapping > return arg0.findForward("success"); Not sure how that's related; if the original poster *hadn't* been doing like that

Re: [S1.3.8] Mapping problem

2011-03-22 Thread Dave Newton
What *is* loginPage? A JSP? A Tile? Dave On Tue, Mar 22, 2011 at 12:38 PM, Anjib Mulepati wrote: > I have > 1. web.xml > > action > org.apache.struts.action.ActionServlet > > config > /WEB-INF/struts-config.xml > > > debug > 2 > > > detail > 2 > > 2 > > ... > > action > *.do >

Re: [OT] Re: Need your inputs.

2011-03-22 Thread Dave Newton
; Thanks, > Sharath. > > --- On *Mon, 3/21/11, Dave Newton * wrote: > > > From: Dave Newton > Subject: [OT] Re: Need your inputs. > To: "sharath karnati" > Cc: "Struts Users Mailing List" > Date: Monday, March 21, 2011, 6:10 PM > > > On Mon

[OT] Re: Need your inputs.

2011-03-21 Thread Dave Newton
On Mon, Mar 21, 2011 at 6:04 PM, sharath karnati wrote: > Can you please send me links/details for doing this(Serialize the DOM)? What JavaScript framework are you using? (I'd really just try [search engine of choice] first, though--much, much faster than waiting on the list.) Dave

Re: Need your inputs.

2011-03-21 Thread Dave Newton
On Mon, Mar 21, 2011 at 11:35 AM, sharath karnati wrote: >   1) How many fields are there? >   2) Each field name, title and size(example: field3,zip, 5) > > Please advice how to do this using strust2. It won't have anything to do with S2; you'll either need to: * Serialize the DOM info (most lik

Re: Calling an action class through Javascript -Struts 2.

2011-03-21 Thread Dave Newton
On Mon, Mar 21, 2011 at 9:31 AM, adam pinder wrote: > you can use AJAX functionality straight from plain old javascript without > using DOJO > or other javascript libraries - its just those libs make it easier. Make it easier to the point of it being a Really Bad Idea to do it *without* them. Us

Re: Calling an action class through Javascript -Struts 2.

2011-03-21 Thread Dave Newton
On Mon, Mar 21, 2011 at 1:16 AM, JavaNoobie87 wrote: > Im trying to implement it only using Javascript as part of our project > requirements , and so using AJAX with JSON , dwr etc is ruled out. Both Ajax and JSON are JavaScript. Dave -

Re: Authorization and Authentication

2011-03-18 Thread Dave Newton
On Fri, Mar 18, 2011 at 11:16 AM, Alessio Bandini wrote: > I read about Acegi in 2007, but maybe now there are others solutions > among which I can select. I'd still aim at Spring Security, especially if you're already using Spring. Dave --

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread Dave Newton
On Wed, Mar 16, 2011 at 8:35 AM, JavaNoobie87 wrote: > I tried the same but  my drop down becomes empty when i run the jsp and the > source generated from the select tag is as follows > >    --Select-- > Please advise. Please use plain-text messages. "The pastebin" isn't an attached message, it's

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
The snippet doesn't actually help, and can't you just include small samples in the email itself? The headerKey is a number, what are the ones filled by the tag? What does the setDomainType method take as a parameter? Have you defined any custom type converters? Dave On Wed, Mar 16, 2011 at 12:42

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
On Wed, Mar 16, 2011 at 12:27 AM, JOSE L MARTINEZ-AVIAL wrote: > In the action there is no setDomainType. (Just for completeness, that's not necessarily correct; this error may occur under some type conversion conditions.) Dave

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
On Wed, Mar 16, 2011 at 12:12 AM, mv wrote: > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught > setting 'domainType' on 'class com.vivek.struts2.action.DomainAction1: Error > setting expression 'domainType' with value '[Ljava.lang.String;@aea710' I'd say you're trying

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
Are you aware there is Struts 2 documentation? http://struts.apache.org/2.x/docs/parameters-interceptor.html But I think the interceptor in question is the parameter filter interceptor: http://struts.apache.org/2.x/docs/parameter-filter-interceptor.html Dave On Tue, Mar 15, 2011 at 12:57 PM, J

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik wrote: > Can someone help here? using the JSON plugin - my execute method is being > called twice. So far, it sounds like it's being called twice for some reason. Any other information available? Dave ---

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Dave Newton
If it's a Hibernate error why are you asking here? Dave On Mon, Mar 14, 2011 at 6:23 PM, abhishek jain wrote: > > > On Tue, Mar 15, 2011 at 2:46 AM, Dave Newton wrote: >> >> On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain >> wrote: >> > Also i forgot to

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain wrote: > Also i forgot to add , i dont see this error when running on test server, Also you forgot to add , when you get the error, dave - To unsubscribe, e-mail: user-unsubscr...@

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Dave Newton
Under what circumstances? I don't see how we're supposed to be able to help. Dave On Mon, Mar 14, 2011 at 4:26 PM, abhishek jain wrote: > Hi friends, > I am on production and getting this error: > can anyone help me solve, i am using hte hibernate 3, tomcat 5.5 , struts2, > linux centos 5.x. > >

Re: Validate method call validator

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 10:21 AM, Mohamed SIDI wrote: > I wd like to know if in my validate method, I can call et validator rule in > my ActionName-validation.xml. > > Some things like : > . > validate (){ > . > if(condition) >  call a validator rule in ActionName-validation.xml > } Not reall

Re: Validate filed if filled

2011-03-14 Thread Dave Newton
Or a custom validator (that could be chained with others), sort of a "validateIfFilled" type thing. Dave On Mon, Mar 14, 2011 at 8:58 AM, Paul Zepernick wrote: > If you need to use the XML you might be able to use the field expression > validator.  It probably would be easier to just put it in t

Re: Jquery plugin sj:tab

2011-03-14 Thread Dave Newton
Use plain text. It probably doesn't do anything--I haven't looked at the implementation, but if it's like a lot of other S2 tags, it'd be a base tag attribute for plain HTML tags that don't have any meaning for Dojo/jQuery/etc. tags since those require framework-specific impls. IMO for anything b

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: > But for the future I am writing an app where the user can upload a file of > data and specify the input using that printf/scanf pattern description, and > output the same data into new file with a new format according to a secocnd > pattern. It's

[OT] Re: Just a stab in the dark

2011-03-14 Thread Dave Newton
Do you really need all of scanf's functionality? If I were approaching this I'd probably consider writing some sort of transform between scanf functionality and an underlying implementation; a micro-DSL, more or less. Dave On Mon, Mar 14, 2011 at 7:15 AM, Adam Hardy wrote: > Matt Meola on 14/03

Re: Jquery plugin sj:tab

2011-03-14 Thread Dave Newton
What does what do? Dave On Mon, Mar 14, 2011 at 6:56 AM, roger wrote: > What does  do? I was expecting it to prevent a user clicking on the tab and > displaying its contents. > > I'm trying to develop a page where each tab represents a step in a > wizard-like data entry. I want to be able to dyn

RE: Exclude parameter from URL tag

2011-03-13 Thread Dave Newton
Probably an interceptor would be a better choice if it's app-wide. Dave On Mar 13, 2011 7:45 PM, "Ilya Kazakevich" wrote: > Thanks and does there is a way to configure it for all cases? > I want to exclude one param from all places > > -Original Message- > From: Maurizio Cucchiara [mailt

Re: Unable to Load Configuration

2011-03-12 Thread Dave Newton
Under what server? I usually suspect conflicting Xerces libs, but it's hard to say not knowing *anything* about your app, your libs, your environment, etc. Doesn't look like anything related to Struts 2, though, at this point. Dave On Sat, Mar 12, 2011 at 1:11 PM, Jason Ferguson wrote: > I'm try

Re: Dynamically passing Templates name in struts.config file

2011-03-12 Thread Dave Newton
Check out dynamic results and see if that helps. http://struts.apache.org/2.x/docs/result-configuration.html http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html Dave On Sat, Mar 12, 2011 at 12:49 PM, aum strut wrote: > Hi All, > > In my application i have a single Applica

Re: how to prevent stretching of detail tab in IReport

2011-03-11 Thread Dave Newton
I'd recommend approaching the Jasper Reports and/or iReport lists/forums for questions regarding Jasper Reports/iReport. Dave On Fri, Mar 11, 2011 at 12:42 AM, @rju wrote: > > hi Dave > how ru. > am facing a problem sir. here am attaching a pdf of jasper report and jrxml > file. In that detail t

Re: Re : url question

2011-03-11 Thread Dave Newton
On Fri, Mar 11, 2011 at 11:20 AM, François Rouxel wrote: > that's a pity that a great mvc like struts does not provide that kind of > service... :-( It can; you weren't doing it right. Struts has the ability to dispatch to arbitrary resources, and the use of OGNL to create the dispatch target pr

Re: Code Help:CRUD example

2011-03-11 Thread Dave Newton
Please consider using a service like pastebin or whatever so the line numbers actually make sense when we look at it. I have no idea which line 92 is. This code: List loadDomainType = DomainDAO.loadDomainType(); dtList=loadDomainType; confuses me; couldn't you just say: dtList = DomainDAO.loadD

Re: Re : Re : url question

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 9:52 PM, François Rouxel wrote: > does struts2 have a type='forward' ? > because I use type='redirectAction' Like I said--a redirect... redirects. http://struts.apache.org/2.x/docs/result-types.html http://struts.apache.org/2.x/docs/dispatcher-result.html The documentati

Re: Re : url question

2011-03-10 Thread Dave Newton
That's kind of what a redirect *is*. Perhaps you're thinking of a forward? Dave On Thu, Mar 10, 2011 at 9:44 PM, François Rouxel wrote: > the main idea is > I generate permaLink for businesses > ex: mysite.com/abusiness.html > > and I need to redirect on the detail business page... > so I parse

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 11:38 AM, CRANFORD, CHRIS wrote: > Yes the plugin is in the app's lib directory. Just FYI, that sets the object factory to "spring", so Spring is instantiating your actions. (At least it used to.) Dave -

Re: RE: Re : Re : ModelDriven & Hibernate Entities

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 11:32 AM, CRANFORD, CHRIS wrote: > I don't use Spring to instantiate my actions, they're not defined like that. And you're not using the S2 Spring plugin? (Just for the sake of completeness; I'm only marginally following this thread.) Dave

Re: RE : jquery + struts2 => autocompleter example?

2011-03-10 Thread Dave Newton
On Thu, Mar 10, 2011 at 10:08 AM, Emi Lu wrote: > (1) http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag > (2) http://docs.jquery.com/Plugins/autocomplete > > I strongly hope that (1) can be added to (2). Not sure what you mean there, there will never be docs on the jQuery site that are

Re: Re : Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Dave Newton
Another reason OSiV filters can be tricky. Dave On Wed, Mar 9, 2011 at 2:04 PM, CRANFORD, CHRIS wrote: > Francois - > > I use the standard paramsPrepareParamsStack interceptor from Struts. > > All I have done on my end is wrap this interceptor stack with a few > application specific interceptor

Re: Re : ModelDriven & Hibernate Entities

2011-03-09 Thread Dave Newton
On Wed, Mar 9, 2011 at 1:09 PM, CRANFORD, CHRIS wrote: > I wouldn't place anything Hibernate or persistence related in > my JSP pages at all.  In my mind, this breaks the entire > reasoning behind MVC and the view simply there to render data IMO OSiV filters put non-render stuff into the JSP anywa

Re: Struts 2.0.11.1 question

2011-03-09 Thread Dave Newton
I agree 100%... Companies that expect an in-house, ad-hoc system to be of better quality, and/or faster to implement, and/or etc. are almost always 100% wrong. How is S2 "blessed" but one of its officially-supported components *not*?! Dave On Wed, Mar 9, 2011 at 11:24 AM, Chris Pratt wrote: > >

Re: S 1.3.8 Direct URL

2011-03-07 Thread Dave Newton
On Mon, Mar 7, 2011 at 4:17 PM, Anjib Mulepati wrote: > I have following: > > 1. A form accessible only after successful login. > 2. Action() on the form i.e. it send form data to > server after user click submit > > Now I am getting > > java.lang.NullPointerException >        mypkg.myForm.validat

Re: Exception in hibernate3

2011-03-05 Thread Dave Newton
If this question is related to hibernate it'd be more efficient and appropriate to ask on a hibernate-related list probably. Dave On Mar 5, 2011 3:32 AM, "abhishek jain" wrote: > hi, > thanks for the mail, > i tried this but the problem still persists, i added the context.xml file in > META-INF

Re: jquery + struts2 + form validation

2011-03-04 Thread Dave Newton
On Fri, Mar 4, 2011 at 10:44 AM, Emi Lu wrote: > check_action() > { >      PrintWriter out          = res.getWriter(); >      res.setContentType("text/html"); >      if(error) >      { >         out.println("Error info"); Ew. > The part gives me headache is that how to submit hundreds of tags in

<    2   3   4   5   6   7   8   9   10   11   >