custom tld in Struts1.3.5

2007-02-22 Thread yuubouna
I am migrating from struts 1.2.4 - struts 1.3.5 and I am usingt all the new sturts tags and Also. and having a problem in my custom tld. Does it concerns with DOCTYPE in my custom tld? -- View this message in context: http://www.nabble.com/custom-tld-in-Struts1.3.5-tf3271646.html#a9096434

Unable to read META-INF/tld...

2007-02-22 Thread Pierre Thibaudeau
I think I have a problem with my library versions, but I cannot pinpoint the problem. Here's the exception when I deploy on Tomcat 6.0.2: org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD META-INF/tld/struts-bean.tld from JAR file

RE: Unable to read META-INF/tld...

2007-02-22 Thread Bolloju, Srinivas
Check the uri attribute of taglib directive in index.jsp is same as content of uri tag in struts-bean.tld. Srinivas -Original Message- From: Pierre Thibaudeau [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 2:38 PM To: Struts Users Mailing List Subject: Unable to read

Re: Unable to read META-INF/tld...

2007-02-22 Thread Wendy Smoak
On 2/22/07, Pierre Thibaudeau [EMAIL PROTECTED] wrote: I think I have a problem with my library versions, but I cannot pinpoint the problem. Here's the exception when I deploy on Tomcat 6.0.2: org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD META-INF/tld/struts-bean.tld

[s2] autocompleter

2007-02-22 Thread Ron Chan
where can I set the font of the dropdown list for the autocompleter? thanks Ron -- View this message in context: http://www.nabble.com/-s2--autocompleter-tf3271959.html#a9097345 Sent from the Struts - User mailing list archive at Nabble.com.

Fw: FileUpload problem

2007-02-22 Thread Nagraj Rao
Has anybody faced this problem for multiple file-uploading earlier?? Please help. thanks regards Nagraj. - Original Message - From: Nagraj Rao To: Struts Users Mailing List Sent: Wednesday, February 21, 2007 5:06 PM Subject: Fw: FileUpload problem Also i think i'm using the right

Re: [S2] [s2] autocompleter

2007-02-22 Thread Pedro Herrera
look at struts2-showcase.war , there´re several examples about that. Herrera Ron Chan wrote: where can I set the font of the dropdown list for the autocompleter? thanks Ron -- View this message in context: http://www.nabble.com/-s2--autocompleter-tf3271959.html#a9098123 Sent

Re: [S2] [s2] autocompleter

2007-02-22 Thread Ron Chan
I'm using the code I copied from the showcase it doesn't set the font of the dropdown in any of the examples i would like to set it to monospace so that I can simulate a table with 2 columns in the dropdown thanks Ron Pedro Herrera wrote: look at struts2-showcase.war , there´re several

How to change from .do to .whatever in struts 1.2.9 ?

2007-02-22 Thread Bolutiwi, Olu
Hi all, How can I change the default extension provided in struts 1.2.9 from .do to .go or .whatever ? Cheers This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the

Re: How to change from .do to .whatever in struts 1.2.9 ?

2007-02-22 Thread Leon Rosenberg
just change the mapping in your web.xml? regards Leon On 2/22/07, Bolutiwi, Olu [EMAIL PROTECTED] wrote: Hi all, How can I change the default extension provided in struts 1.2.9 from .do to .go or .whatever ? Cheers This e-mail (and any attachment) is intended only for the attention of the

Re: How to change from .do to .whatever in struts 1.2.9 ?

2007-02-22 Thread Simone Piva
In web.xml: servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping On 2/22/07, Leon Rosenberg [EMAIL PROTECTED] wrote: just change the mapping in your web.xml? regards Leon On 2/22/07, Bolutiwi, Olu [EMAIL PROTECTED] wrote: Hi all, How

RE: How to change from .do to .whatever in struts 1.2.9 ?

2007-02-22 Thread Bolutiwi, Olu
Cheers, thought about that, but came across someone using a filter class to perform the same thing so I got confused. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 22 February 2007 12:18 To: Struts Users Mailing List Subject: Re: How to change from .do to

problems with saving input value from JSP in a LinkedList which consists of multiple LinkedLists with a unknown name

2007-02-22 Thread Annica Glÿffffffffffe4nzel
hi, hi I have a big problem. I want to make a form in my JSP with many input fields which should be sorted by groups. in my action i've saved many Objects to which i can acess with data transfer objects in a LinkedList which should represent one group. the number of existing groups is unknown.

[s2] Passing parameters to an action

2007-02-22 Thread Petr Blahos
Hi all, I was wondering how I could possibly solve this: I have an action in which I construct quite a complex data structure. From that data structure I display some tables and create some charts. Now, I have got this one big-ass java class - extending ActionSupport, in which I do all the stuff -

[S2] Equivalent of Servlet init() method?

2007-02-22 Thread Roger Varley
Hi I'm a struts2 newbie I've just got the hello world app running. I'm now trying to convert a simple servlet app to struts2. In the original servlet I use a singleton factory class which I initialise/setup in the servlets init() method and use it in the servlet service() method. What is the

Re: [S2] Struts encoding problem ?

2007-02-22 Thread Jacopo
I solved the problem with this method: public static String euroAdjust(String value) { if (value != null) { value = value.replaceAll(\u0080,\u20AC); } return value; } the param of the request is parsed with euroAdjust() and the right € euro symbol is sent to db and saved.

RE: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Wesley Wannemacher
I looked for something similar a while back and didn't find anything simple. There are servlet context listeners (but that isn't really struts-2-ish). What I did (and I know it's inelegant) is to create a static initializer block. One main difference to remember between servlets and actions is

RE: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread bob
I could be wrong, but perhaps you should use the Spring IoC container for this. I can't point you to the correct documentation off hand, but I believe that this is the way to maintain a resource such as what you had previoulsy done with the Servlet's init method and the factory class.

S2 Tiles exception

2007-02-22 Thread Hartrich, James CTR USTRANSCOM J6
struts2-core-2.0.5.jar xwork-2.0.0.jar S2-tiles-plugin-2.0.5 tiles-core-2.0-20070130.184344-3.jar tiles-api-2.0-20070130.184344-3.jar I have an org.apache.tiles.TilesException from BasicTilesContainer.java. Does anyone know if the following configuration is incorrect? Thanks! 1) web.xml

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Joe Germuska
On 2/22/07, Wesley Wannemacher [EMAIL PROTECTED] wrote: I looked for something similar a while back and didn't find anything simple. There are servlet context listeners (but that isn't really struts-2-ish). I would strongly disagree that ServletContextListeners are not really struts-2-ish.

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Tom Schneider
I see a couple of options. The first would be to create an interceptor for your singleton factory. In the init of the interceptor you would initialize this factory and then provide some mechanism to inject that factory into your actions. (possibly via a FactoryAware interface) Another

Re: client side validation on included form

2007-02-22 Thread C. Adams
I have found a solution to this. The good news is it is a simple pass-through to the dojo contentpane. changing this: s:div theme=ajax href=PersonByAge_input.action executeScripts=true / to this: div dojoType=ContentPane href=s:url action=PersonByAge_input / scriptSeparation=false

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Joe Germuska
On 2/22/07, Joe Germuska [EMAIL PROTECTED] wrote: This page is the place to start on using the Spring plugin with Struts 2: http://struts.apache.org/2.x/docs/spring-plugin.html In short, Spring can instantiate any beans you want, either as singletons or as prototypes (that is, a new bean is

Re: client side validation on included form

2007-02-22 Thread Musachy Barroso
Can you log a Jira ticket with the request? thanks musachy On 2/22/07, C. Adams [EMAIL PROTECTED] wrote: I have found a solution to this. The good news is it is a simple pass-through to the dojo contentpane. changing this: s:div theme=ajax href=PersonByAge_input.action executeScripts=true /

RE: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Wesley Wannemacher
I guess you're right, it's not that they aren't struts-2-ish... But, one significant advantage of a static initializer block vs. servlet context listeners is easier unit testing. I found it much easier to write the unit tests for my actions if the JVM is in charge of initialization duties. I don't

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Do you have a link to some docs on how to use annotations to specify validation rules? I haven't seen anything about that yet. I am attempting to do the same thing and it definitely isn't working properly. If you simply use a validator for the entire Action defined in

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Allen Gilliland wrote: Do you have a link to some docs on how to use annotations to specify validation rules? I haven't seen anything about that yet. ack, never mind, i see the link now :/ http://struts.apache.org/2.x/docs/validation-annotation.html I am attempting to do the same thing

Re: [S2] Equivalent of Servlet init() method?

2007-02-22 Thread Joe Germuska
On 2/22/07, Wesley Wannemacher [EMAIL PROTECTED] wrote: I don't know much about Spring and shied away from servlet context listeners because I didn't want the external dependencies. I'm not suggesting that my way is the best way, but if you have a requirement to write unit tests for all of

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
I tried out using the validation annotations to only validate a specific action method but the result is the same, it just does the validation on all methods :/ This is what I tried ... @Validation() public class MyAction extends ActionSupport { ... yada yada ... public String execute()

Re: Unable to read META-INF/tld...

2007-02-22 Thread Pierre Thibaudeau
I think I have a problem with my library versions, but I cannot pinpoint the problem. Here's the exception when I deploy on Tomcat 6.0.2: org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD META-INF/tld/struts-bean.tld from JAR file

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Dale Newfield
Allen Gilliland wrote: I tried out using the validation annotations to only validate a specific action method but the result is the same, it just does the validation on all methods :/ I use the ActionName-methodName-validation.xml technique. Just because the ActionName-validation.xml file is

[s2] @Result annotation - params field

2007-02-22 Thread Ian Roughley
Does anyone have a use case for the params field in the Result annotation? Currently it's defined in the annotation as: String[] params() default {}; which I'm not sure makes sense as a name and value was passed in the XML configuration. /Ian

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Dale Newfield wrote: Allen Gilliland wrote: I tried out using the validation annotations to only validate a specific action method but the result is the same, it just does the validation on all methods :/ I use the ActionName-methodName-validation.xml technique. Would you mind sharing a

RE: Struts action call in a JS method returns blank page

2007-02-22 Thread Christopher Loschen
I promised that I'd report back with the eventual solution, so here goes. There were quite a few problems that I ended up finding along the way, but the most important one was that I was trying to feed form element values as arguments to a JS function, and the form hadn't been submitted yet at

Re: Unable to read META-INF/tld...

2007-02-22 Thread Pierre Thibaudeau
I removed jsp-api.jar from WEB-INF/lib. (It is still in the build path, though.) Problem solved! (Though I don't understand why!) 2007/2/22, Pierre Thibaudeau [EMAIL PROTECTED]: I think I have a problem with my library versions, but I cannot pinpoint the problem. Here's the exception

Xml utilities

2007-02-22 Thread Zhang, Larry \(L.\)
I am trying to develop some classes used for XML parsing or generating purposes. But I think it is difficult to abstract to write a common utility since each XML document is different, and to parse that document, we should have a different parser. So the question is what utility class will look

Re: Xml utilities

2007-02-22 Thread sriharsha . chevuru
Hi Zhang, I am not sure if i got your question correct. But, if you want some already existing XML parsers then DOM and SAX Parsers are the ones which are used extensively. Again, i might be missing more efficient ones.

RE: Xml utilities

2007-02-22 Thread Zhang, Larry \(L.\)
I know that DOM and SAX but what I am looking for is some sort of wrapper or single point class so that all team members will use my class instead of calling DOM or SAX directly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 4:47

Re: Fw: FileUpload problem

2007-02-22 Thread Laurie Harper
I think there was a thread recently about a similar issue. That poster's problem turned out to be a missing ActionContextCleanUp filter. Do you have that configured? What order are your filters mapped in? L. Nagraj Rao wrote: Has anybody faced this problem for multiple file-uploading

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Dale Newfield
Allen Gilliland wrote: Would you mind sharing a couple details about how you have it configured, because if it's working for you then I suppose I must be doing something wrong? I am using Struts 2.0.5. Sure. I'll just mirror your snippets with my own. I am also using 2.0.5. What I have

Re: Xml utilities

2007-02-22 Thread Andrew Pliszka
I think what you have to do is create your own generic XML utility class that is specific to your XML schema, that uses dom4j, or digester or XMLBeans as XML engine. You will have to create your a commons schema base for all your developers, that they will have to follow. Andrew Pliszka

RE: Xml utilities

2007-02-22 Thread Zhang, Larry \(L.\)
What your suggesting is close to what I am trying to do. Do you have some sample code or internet link discussing this? Another interesting question -- when you talk about the schema --, is there a way to define generic schema? -Original Message- From: Andrew Pliszka [mailto:[EMAIL

s2: numbers being formatted during display in s:select tag

2007-02-22 Thread cilquirm
This is so odd, yet I'm surprised no one's come across this. This is S2 built off the 2_0_X branch ( no modifications, straight clean build ), running under Java 1.5 in both resin and tomcat. Given a snippet like so : s:action name=listAllAuthors namespace=/general id=authorsAction/s:action

struts 1.2.9 multiple session scoped action form bean usage by single jsp

2007-02-22 Thread Derrick Koes
Struts 1.2.9 I have 2 session scoped form beans which share a getter method. I would like to re-use a particular jsp in this case as well. However, what I'm finding is that the first session scoped form encountered will be the one the jsp gets its values from. This may well not be the form

Re: Xml utilities

2007-02-22 Thread Andrew Pliszka
When I talk about generic schema I am mean domain specific schema, for example if you are working on web phot gallery you will have: ?xml ... ... images image thumbnailUrl/thumbnail01.jpg/thumbnailUrl imageUrl/thumbnail01.jpg/imageUrl /image .. /images Since this is web gallery

Re: Xml utilities

2007-02-22 Thread Dale Newfield
Andrew Pliszka wrote: When I talk about generic schema I am mean domain specific schema How is that different from a DTD? Pretty much any xml format that you intend to use heavily should be well defined enough for you to generate one, and then you can easily have the parsers validate

Re: Xml utilities

2007-02-22 Thread Andrew Pliszka
I agree with you Dale. DTD or XSD files enforce schema once you define it, based on your problem domain. I think Zhnag's wants to create generic Java classes to parse XML files. He is trying to create XML library or XmlUtils class for his project, so all developers can us it. Andrew Pliszka

Re: Xml utilities

2007-02-22 Thread bob
Isn't this kind of off topic? Oh well . . . I understand your writing a higher level API class for you developers to use. So, your not exactly looking for suggestions about the XML api you will use inside your utility. But in the off topic spirit, I'll just go ahead and recommend a

Re: [S2] struts2 validation for only one method in action

2007-02-22 Thread Allen Gilliland
Dale Newfield wrote: Allen Gilliland wrote: Would you mind sharing a couple details about how you have it configured, because if it's working for you then I suppose I must be doing something wrong? I am using Struts 2.0.5. Sure. I'll just mirror your snippets with my own. I am also

[OT] RE: Xml utilities

2007-02-22 Thread Dave Newton
JAXB or XPath. AFAICT all you're trying to do is bind XML to Java. I don't know what a generic schema would be; that doesn't really make any sense. --- Zhang, Larry (L.) [EMAIL PROTECTED] wrote: What your suggesting is close to what I am trying to do. Do you have some sample code or internet

Profiling Struts Application

2007-02-22 Thread Rahul Patel
Does anyone know of any article/document that will allow me to profile a Struts application? I am still using Struts 1.1 with Eclipse 3.1 as IDE. I tried TPTP but couldn't figure out how to use it for a web app. Thanks, Rahul

sample code for LazyActionForm needed

2007-02-22 Thread Vikash Manoranjan
Hi, i want to use LazyActionForm in my program. Kindly provide me with complete sample code like how to use it. Thanks and Regards, Vikash Manoranjan Senior Software Engineer Infotech Enterprises Limited B-37, Sector-1, Noida - 201301 Uttar Pradesh, India

chainConfig importance

2007-02-22 Thread yuubouna
Migrating from sruts 1.2.4 to struts 1.3.5 according to http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 StrutsUpgradeNotes12to13 in order for me to use the tiles I must set the chainConfig in web.xml. my questions are: 1. Even If I don`t set the chainConfig in web.xml my application

RE: Xml utilities

2007-02-22 Thread Kalra, Ashwani
There are already so many tools to automate this. With these tools you don't have to write ugly parsing code. Search for xml beans, jaxb, Castor. They all require schema to work on and then it will generate some stubs which are specific to your schema. These classes will be just like javabeans