Need Information on

2009-02-12 Thread Srikanth Goud
Hi, In a page there is a textField as soon user enter value like 2,3 and soon.. Creating table with Html with that many rows and so on.. Know My question is there any way to create a table with ? If yes how can i do that? And how can i retreive the values in action(ass

Re: customize fielderror

2009-02-12 Thread Po Po
Hi, Sorry, for mistype. it should be I try to add attribute theme="simple" but the tag ul and li are still exist. Thanks --- On Thu, 2/12/09, Sonny Gill wrote: > From: Sonny Gill > Subject: Re: customize fielderror > To: "Struts Users Mailing List" , semu...@yahoo.com > Date: Thursday, Feb

Re: customize fielderror

2009-02-12 Thread Sonny Gill
Not sure what is, but try adding theme="simple" to it. On Fri, Feb 13, 2009 at 12:39 PM, Po Po wrote: > Hi, > > I use struts 2.1.6, > When I used , it's generated html with tag and . > how to configure the component, so the html result is only plain > text message (without html formating ul d

Re: Problem with MyEclipse+JDBC Driver

2009-02-12 Thread Wes Wannemacher
On Thursday 12 February 2009 23:37:05 aum strut wrote: > This Error generally comes when the compilation JRE and running JRE are > not same, have you developed the code used in the Struts application and in > java application on same enviornment?? > Specifically, you get this when you compile for

customize fielderror

2009-02-12 Thread Po Po
Hi, I use struts 2.1.6, When I used , it's generated html with tag and . how to configure the component, so the html result is only plain text message (without html formating ul dan li) ? Thanks - To unsubscribe,

Re: Problem with MyEclipse+JDBC Driver

2009-02-12 Thread aum strut
This Error generally comes when the compilation JRE and running JRE are not same, have you developed the code used in the Struts application and in java application on same enviornment?? and which version of struts you are using?? On Fri, Feb 13, 2009 at 9:51 AM, Narasimha Raju Naidu wrote: > H

Problem with MyEclipse+JDBC Driver

2009-02-12 Thread Narasimha Raju Naidu
Hi to all, I am new to MyEclipse IDE and Struts. I am developing a Login form. In that i need to test the user entered details from Databse. My Database is PostgreSQL. I tested with a java program and i am sucessfully retriving data from database. But when i am trying to access from logi

assign struts to a String object in JSP

2009-02-12 Thread yuping he
Hi all, I am new to Struts and I was trying to assign struts to a String object in JSP code example: --- <%! String s = new String() %> <% s= " %><% "; %> --

Re: Passing parameters between Actions

2009-02-12 Thread Dave Newton
ryangr wrote: Is it possible to pass a parameter from one Action to another Action? For example, I have FooAction and BarAction. From BarAction's "reload" action result I want to return to FooAction but pass it a relevant id for FooAction to set upon loading. http://struts.apache.org/2.x/docs

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread Dave Newton
SanJ.SANJAY wrote: Anyone knows what is the right place top put the struts.xml file? I think the issue with my problem stated below is that context is not able to find struts.xml file and that is the reason it is not avle to map actions. I tried putting it in WEB-INF/classes also but didn't work.

Re: Error - S 2.1.6 - Validation with xml file

2009-02-12 Thread Dave Newton
jb...@pop.com.br wrote: We´re trying to upgrade struts from 2.0.11 to 2.1.6, and in actions where validation with xml file, appears the following errors. In version 2.0.11 the errors doesn´t appear. ... That's not much to go on. Dave

Re: validations with selected option

2009-02-12 Thread Dave Newton
Srikanth Goud wrote: Hi, Still i don't have any idea for this. Could you pls provide a solution Complex validations are generally easier to handle in an action's validate() method--it's *possible* to do via XML or annotations, but personally I find it a little unwieldy. But in the

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-12 Thread Dave Newton
From my JavaRanch response: A couple of notes: * You're missing commons-io. * Java class names should start with a capital letter, i.e., TestAction. * You should use the ng filter in 2.1.6. * Namespaces should begin with a slash ("/"). Is there anything in the log regarding a filter startup fai

Passing parameters between Actions

2009-02-12 Thread ryangr
Is it possible to pass a parameter from one Action to another Action? For example, I have FooAction and BarAction. From BarAction's "reload" action result I want to return to FooAction but pass it a relevant id for FooAction to set upon loading. -- View this message in context: http://www.nabb

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Anyone knows what is the right place top put the struts.xml file? I think the issue with my problem stated below is that context is not able to find struts.xml file and that is the reason it is not avle to map actions. I tried putting it in WEB-INF/classes also but didn't work. SanJ.SANJAY wro

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Musachy Barroso
Yes, that would be template file name. musachy On Thu, Feb 12, 2009 at 3:24 PM, Ignacio de Córdoba wrote: > > OK. Thanks for the advice. I tried to use Tiles2 because my user interface is > used with Tiles2. If I get a Tile for the email, the email received has the > same look&feel as the web pa

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Ignacio de Córdoba
OK. Thanks for the advice. I tried to use Tiles2 because my user interface is used with Tiles2. If I get a Tile for the email, the email received has the same look&feel as the web pages. And I can re-use JSP/JSTL/OGNL parts. I'll give FreeMarker a try... just a question... in the code you sent...

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Thanks for the advice. I already did. I do not see anything wrong in the implementation its not able to read struts.xml for some reasons Musachy Barroso wrote: > > Have your tried following the tutorial/reading the > documentation/looking at the example apps? try to understand Struts 2 > fi

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread Musachy Barroso
Have your tried following the tutorial/reading the documentation/looking at the example apps? try to understand Struts 2 first and then try the integration. musachy On Thu, Feb 12, 2009 at 2:24 PM, SanJ.SANJAY wrote: > > Thanks Musachy trying this says: > > There is no Action mapped for action n

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Musachy Barroso
The thing is that neither JSP nor Tiles are designed for what you want to do. BTW, FreeMarker is already in your application. musachy On Thu, Feb 12, 2009 at 2:19 PM, Ignacio de Córdoba wrote: > > hi again, > thanks for your reply. I've never used FreeMaker or Velocity. I use > Tiles2... can you

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Thanks Musachy trying this says: There is no Action mapped for action name struts2. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFact

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread Musachy Barroso
http://localhost:8080/appcontext/struts2/reportIndex.action On Thu, Feb 12, 2009 at 2:20 PM, SanJ.SANJAY wrote: > > Sorry the exact error is below: > > There is no Action mapped for action name com/cec. - [unknown location] >at > com.opensymphony.xwork2.DefaultActionProxy.prepare(Default

Re: Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Sorry the exact error is below: There is no Action mapped for action name com/cec. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFacto

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Ignacio de Córdoba
hi again, thanks for your reply. I've never used FreeMaker or Velocity. I use Tiles2... can you figure out if your solution can be solved with Tiles2. I wouldn't like to get into those, I'm sure great, technologies only for this. Thanks, Ignacio Musachy Barroso wrote: > > I don't know how to f

Action mapping issue while Integrating S2 and S1

2009-02-12 Thread SanJ.SANJAY
Procedure I followed. 1. Added all the latest jars to WEB-INF/lib 2. Updated web.xml 3. Created struts.xml under WEB-INF folder. 4. Defined action class in Now If I put S2 tags in my existing S1 jsp pages they compile fine and produce results. The issue that I have now is with Action mappings.

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Musachy Barroso
I don't know how to fix it, but i would never use JSP for this. I would suggest you use FreeMarker or Velocity which will be very easy to get working and won't break across different containers/versions. For example, for FreeMarker (which will be in the classpath already), I use this: public stati

How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Ignacio de Córdoba
Hi there, I had a working solution that was fine for struts1 and doesn't work with struts2. The scenario is evey time the application needs to send a mail from an action (for example, when a user signs up, the system sends him a welcome mail) My solution got the JSP the following way: pu

Re: Convention Plugin problem

2009-02-12 Thread Musachy Barroso
I added a new constant "struts.convention.action.fileProtocols" so we can cover these weird app server cases. You can now set: let me know if it works for you. (committed to trunk) musachy On Tue, Jan 27, 2009 at 3:08 PM, Pennel,Paul T wrote: > Love the hack idea, well for a hack anyway. Unfo

Error - S 2.1.6 - Validation with xml file

2009-02-12 Thread jbogo
We´re trying to upgrade struts from 2.0.11 to 2.1.6, and in actions where validation with xml file,  appears the following errors. In version 2.0.11 the errors doesn´t appear. java.lang.NoSuchMethodException: gov.pr.cohapar.admin.licitacao.action.TipoHistoricoAction.crud() java.lang.Class.get

Re: Using Struts 2 native dependency injection

2009-02-12 Thread Sonny Gill
> There are warnings from time to time that we don't expose the details > of the internal DI because we want to reserve the right to change the > inner workings. If you are familiar with Spring, go ahead and use it, > despite all of the available features, it will only bring in what you > want to u

Re: Returning request parameters in action class... How?

2009-02-12 Thread plen
Sonny, Great. Thanks for the reply. - Peter -- View this message in context: http://www.nabble.com/Returning-request-parameters-in-action-class...-How--tp21977049p21978514.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Returning request parameters in action class... How?

2009-02-12 Thread Sonny Gill
Unless you are using a redirect, the JSP already has access to that parameter since it is still the same request. If you are using JSTL, you can access it as ${param.mode}. Some people prefer not to access request parameters directly in JSPs, which is a good thing IMO. In that case, you can create

Re: submitting a form without a submit button ajax-style

2009-02-12 Thread mitch gorman
Musachy Barroso wrote: > 2.1.6 is GA :) > DOH! hadn't checked in a while, obviously... - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Returning request parameters in action class... How?

2009-02-12 Thread plen
Hello, I have an action class which might get a request parameter when called (ex. request.getParameter("mode")). When the action class returns SUCCESS which ends up calling a JSP, I need to be able to send that request parameter on to the JSP. I believe I could just use the request.setAttribut

struts.i18n.reload problem

2009-02-12 Thread mgjessup
I am looking to learn struts and just downloaded the latest copy (2.1.6). I installed the example blank application in a copy of tomcat I already had running (6.0.14) and its runs successfully. However I have been "playing" with it including changing the properties files, but I can't get them to a

Re: Using Struts 2 native dependency injection

2009-02-12 Thread Wes Wannemacher
On Thu, Feb 12, 2009 at 7:47 AM, Sonny Gill wrote: > That's partly the reason I was trying to do this. > With Guice already included in Struts, it somehow feels wrong to add > Spring just for very basic DI. > > Sonny There are warnings from time to time that we don't expose the details of the in

Re: validations with selected option

2009-02-12 Thread Srikanth Goud
Hi, Still i don't have any idea for this. Could you pls provide a solution Srikanth Srikanth Goud wrote: > > Hi Friends, > >Iam writing validations in className-validation.xml file it is working > fine. > >But in the form there are Two Tables with some fields. And at a

Re: Using Struts 2 native dependency injection

2009-02-12 Thread Sonny Gill
That's partly the reason I was trying to do this. With Guice already included in Struts, it somehow feels wrong to add Spring just for very basic DI. Sonny On Thu, Feb 12, 2009 at 8:18 PM, Wes Wannemacher wrote: > It's part of Struts, we're using a custom/hacked/forked version of Guice > within

Re: Using Struts 2 native dependency injection

2009-02-12 Thread Wes Wannemacher
On Thursday 12 February 2009 06:08:59 Ddlc wrote: > Is that @Inject annotation part of Struts 2? > > Or are you using something like, for example, Guice? It's part of Struts, we're using a custom/hacked/forked version of Guice within XWork. -Wes -- Wes Wannemacher Author - Struts 2 In Practi

Load a struts.xml that is not on the classpath

2009-02-12 Thread doahh
Hi, My app is using the Java Plugin Framework (JPF) to provide plugin functionality. The plugins for my app are not on the classpath as the JPF manages that itself. My plugins have a struts.xml file in them and I would like to be able to load the struts.xml from the plugin into my main app. This

Re: Using Struts 2 native dependency injection

2009-02-12 Thread Ddlc
Is that @Inject annotation part of Struts 2? Or are you using something like, for example, Guice? -- View this message in context: http://www.nabble.com/Using-Struts-2-native-dependency-injection-tp21970139p21973978.html Sent from the Struts - User mailing list archive at Nabble.com.