Re: datetimepicker does not work

2007-03-29 Thread David Harland
Hi, Thanks that got it working but when I click on it it messes up my page can you help please. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> testtitle // Dojo configuration djConfig = { baseRelativePath: "/sms/struts/dojo", isDebug: f

Using ActionForm in struts2

2007-03-29 Thread Syed Ibrahim
Hi, I want to use Simple ActionForms or POJO in Struts 2. Instead of writing the getter and setters in Action I would prefer then to be written separately as the same bean can be used elsewhere in models or DAO transfer objects. How to achieve that in Struts 2 ? Thanks in advance Ibrahim

Re: File upload fails first time, then works after page reload

2007-03-29 Thread Shuai Zheng
co-ask I face the same problem, the upload fails(the backend can't get any parameter value -- all are nulls). Anybody know how to solve it completely? Regards, Zheng Shuai On 3/29/07, Kurapica <[EMAIL PROTECTED]> wrote: I replace the jsp file with a pure HTML file and let it works with servl

Re: Struts ui components inside in a single line.

2007-03-29 Thread joey
web page designers should like your method.You also can achieve it by overriding the template file which genernate the html codes. regarding joey On 3/30/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Hi guys, I found the solution to my case. I got the rendered html and put it direct on my

Re: Struts ui components inside in a single line.

2007-03-29 Thread Ted Husted
I believe most of the Ajax/Dojo plugin is already done in the HEAD. The one that's still in the talking stage is moving the porlet support to a plugin. :) On 3/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: I know there's some talk about making the ajax support a plugin... I don't know exactly

Re: Jasper result tag

2007-03-29 Thread Felipe Rodrigues
your/location/file.jasper dataSource Regards, Felipe Manoel Pimentel wrote: > > Hi > > Please, Can somebody explain to me how configure the file strust.xml for > to use the jasper result tag? and > if possible, send to me any little sample, ok? > >

Re: Jasper result tag

2007-03-29 Thread Felipe Rodrigues
Hi Manoel, Didn't you forgot to put all the required libs for jasper work? How about the DataSource you are passing to the result param? Could you post the code that you're using to set the DataSource? Regards, Felipe Manoel Pimentel wrote: > > Hi > > Please, Can somebody explain t

Re: Param tag inside a URL does not work properly.

2007-03-29 Thread Felipe Rodrigues
Here goes the code: Link I debugged and the value in session for total is 1200. When debuggin I found the object (I don't remember the name now) and I saw its parameter map. The value was 1200. But it is at render time. I didn't look at the rendered html. Tomorrow may be a good day to

Re: Struts ui components inside in a single line.

2007-03-29 Thread Felipe Rodrigues
So, I'll create a Jira issue for that. May I? []'s Felipe Musachy Barroso wrote: > > For the autocompleter and datetimepicker, if the "label" attribute is set, > it renders a row, with the 2 cells, like in the xhtml now, but the submit > tag doesn't. This could change based on feedback, and n

Re: Struts ui components inside in a single line.

2007-03-29 Thread Felipe Rodrigues
Hi guys, I found the solution to my case. I got the rendered html and put it direct on my jsp page. But I've thinking. Could anyone figure out how to create an attribute like autoLayout="true" to the forms tags? Anyway, I will study the code when I get some time, and if nobody say anything agains

Re: Struts ui components inside in a single line.

2007-03-29 Thread Musachy Barroso
For the autocompleter and datetimepicker, if the "label" attribute is set, it renders a row, with the 2 cells, like in the xhtml now, but the submit tag doesn't. This could change based on feedback, and now it would be a good time for it :) regards musachy On 3/29/07, Dave Newton <[EMAIL PROTECT

Re: Struts ui components inside in a single line.

2007-03-29 Thread Dave Newton
--- Felipe Rodrigues <[EMAIL PROTECTED]> wrote: > It worked. I only needed some clue like that. Sometimes the answer is right in front of you and you just can't see it... happens to me a *LOT* :/ > PS.: But I still think we could create some attribute > to set this behavior or not to the ajax the

Re: Struts ui components inside in a single line.

2007-03-29 Thread Ted Husted
For Struts 2.1.x, the Ajax theme is being migrated to a plugin, and I don't know how much of this would apply. On 3/29/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: PS.: But I still think we could create some attribute to set this behavior or not to the ajax theme. Something like ( automatciLa

Re: Struts ui components inside in a single line.

2007-03-29 Thread Felipe Rodrigues
Great!!! It worked. I only needed some clue like that. I didn't had figured out that I can use the rendered html direct on my jsp. So, now I have more time to learn how to extend a theme. PS.: But I still think we could create some attribute to set this behavior or not to the ajax theme. Somethi

Re: Struts ui components inside in a single line.

2007-03-29 Thread Dave Newton
--- Felipe Rodrigues <[EMAIL PROTECTED]> wrote: > Are you sure the only way to do that is by extending > a theme? I'm sure there's all sorts of ways to do what you want. Frankly, if I had been doing it, I would have just looked at how the button rendered with the ajax theme and just put that in

Re: Struts ui components inside in a single line.

2007-03-29 Thread Felipe Rodrigues
Yes, I will have to learn how to extends a theme, only to make a button stay on the line. Thi is why I put it at StrutsDev forum, to see if it is really correct make some inexperient users, like me, to make a new theme. Of course it is possible, and some of us can say it is easy, but I have a rea

Re: Struts ui components inside in a single line.

2007-03-29 Thread Dave Newton
--- Felipe Rodrigues <[EMAIL PROTECTED]> wrote: > Did you take a look at my code, in the this thread? His suggestion to consider modifying/creating a theme was probably a good idea. d. Food fight? Enjoy some

Re: Annotation support for interceptor-ref

2007-03-29 Thread Dave Newton
--- Dave Newton <[EMAIL PROTECTED]> wrote: > Right now I'm not even picking up any properties > files :/ Just a quick followup on this, because it's confusing me... it's picking up the properties now, but I don't know what was wrong before, if I deployed funkily, or what. Hopefully it'll break aga

Re: Struts ui components inside in a single line.

2007-03-29 Thread Felipe Rodrigues
Sorry Ted, these informations I already had read at docs. Did you take a look at my code, in the this thread? I think, you could have a better idea of what I mean. Thanks anyway... Felipe Ted Husted-4 wrote: > > To include your own formatting, use the simple theme. > > The default theme can

Re: Struts ui components inside in a single line.

2007-03-29 Thread Ted Husted
To include your own formatting, use the simple theme. The default theme can be specified for the application in the struts configuration. A different theme can be specified for individual forms as needed. http://struts.apache.org/2.x/docs/template-loading.html HTH, Ted

Re: Annotation support for interceptor-ref

2007-03-29 Thread Dave Newton
--- Chris Pratt <[EMAIL PROTECTED]> wrote: > I've also gone on to discover that you can't > mix-n-match either. If you use the @Result > annotation and an (with no 's) it > blows up big time. Wait, what? You mean mix configuring a single Action with both annotations *and* an XML config? That

Re: Struts ui components inside in a single line.

2007-03-29 Thread Felipe Rodrigues
How about that? If you have some time, try this code and tell me how to keep this form in a single line, and use the ajax behavior to the button. Register Form!

Re: [S2] Error loading actions in appfuse

2007-03-29 Thread Dave Newton
--- appfused <[EMAIL PROTECTED]> wrote: > AJust a hint would be suffiicient. Any help > appreciated You'll probably get an answer here, but did you try asking on the AppFuse list/etc? > > There is no Action mapped for namespace / and > action name summary. - > > [unknow > > n location] > > > >

Re: Annotation support for interceptor-ref

2007-03-29 Thread Chris Pratt
Sorry, I didn't find that discussion when I did my search, any chance you know where it is. I've also gone on to discover that you can't mix-n-match either. If you use the @Result annotation and an (with no 's) it blows up big time. Which was a bit surprising to me, seems like this will be nec

Re: Struts ui components inside in a single line.

2007-03-29 Thread Dave Newton
--- Felipe Rodrigues <[EMAIL PROTECTED]> wrote: > Does somebody have an example about how make a form > using the struts tags, > with all of components in a single line? I believe you already got the answer to this, but for the sake of completeness... setting theme="simple" on a component will ke

Re: Param tag inside a URL does not work properly.

2007-03-29 Thread Dave Newton
--- Felipe Rodrigues <[EMAIL PROTECTED]> wrote: > Sounds like a bug? Did anybody lived this problem? I use the pattern fairly extensively and have never seen it. Perhaps if you posted the suspicious fragments someone could help shed some light. d. > Felipe Rodrigues wrote: > > > > Hi, > > >

Re: Annotation support for interceptor-ref

2007-03-29 Thread Dave Newton
--- Chris Pratt <[EMAIL PROTECTED]> wrote: > I'm trying to learn the Zero Configuration > Annotations by converting the > mailreader2 to be Annotation based. Unfortunately > the first page I attempted uses an > tag in the action mapping. Is there an > equivalent Annotation? Not yet, as discuss

Re: [S2] Error loading actions in appfuse

2007-03-29 Thread appfused
AJust a hint would be suffiicient. Any help appreciated appfused wrote: > > I keep getting the following message when i try to access various links on > the page i created after deploying the struts2 basic achetype. Any ideas > what i might be doing wrong? > > There is no Action mapped for nam

Annotation support for interceptor-ref

2007-03-29 Thread Chris Pratt
I'm trying to learn the Zero Configuration Annotations by converting the mailreader2 to be Annotation based. Unfortunately the first page I attempted uses an tag in the action mapping. Is there an equivalent Annotation? (*Chris*)

Struts ui components inside in a single line.

2007-03-29 Thread Felipe Rodrigues
Hi guys, Does somebody have an example about how make a form using the struts tags, with all of components in a single line? I tried this, but did not worked: some text other text Thanks, Felipe -- View this message in context: http://www.nabble.com/Struts-u

Re: datetimepicker does not work

2007-03-29 Thread Musachy Barroso
Check this thread to see if it is the same problem: http://www.mail-archive.com/user@struts.apache.org/msg57030.html musachy On 3/29/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Did you setted the in your jsp? If you did and it is still not working, post your code here, so we can figure

Re: Param tag inside a URL does not work properly.

2007-03-29 Thread Felipe Rodrigues
Sounds like a bug? Did anybody lived this problem? Thanks, Felipe Felipe Rodrigues wrote: > > Hi, > > I'm sending a param using a inside a . It is working, but > the problem is, when the action gets the value, > it has a " after the value. I've debbuged and the parameter is being > setted i

Re: datetimepicker does not work

2007-03-29 Thread Felipe Rodrigues
Did you setted the in your jsp? If you did and it is still not working, post your code here, so we can figure out the problem. Regards, Felipe David Harland wrote: > > I am trying to use the datetimepicker but I am getting the following error > > 22:03:16,676 INFO [STDOUT] 22:03:16,666 ERR

Re: Help: Need of Structs aplication

2007-03-29 Thread Felipe Rodrigues
Did you tried a look at struts-blank application? Once you have more specifics doubts, when looking at struts-blank, you can post it here. Regards, Felipe Sreedhar Murthy wrote: > > HI friends iam new member to the struts.apache.org list. I need a small > application using structs which consi

Re: Help: Need of Structs aplication

2007-03-29 Thread Felipe Rodrigues
Ray, I think they already have the struts-showcase and struts-blank to figure out what a struts app looks like, don't you think? Regards Felipe Ray Clough wrote: > > Is there a place where small demo apps like this can be posted for > others to use/evaluate? I have such a program, but with

Re: [S2] JAAS & redirection

2007-03-29 Thread James Mitchell
This seems to be a bug in the Struts tags. For now, just use a jsp page that doesn't have any Struts tags in it. Not sure what else to tell you. -- James Mitchell http://jamesmitchell.us On Mar 29, 2007, at 10:43 AM, Pascal Lalonde wrote: This looks logic, but it's tomcat that handles the

datetimepicker does not work

2007-03-29 Thread David Harland
I am trying to use the datetimepicker but I am getting the following error 22:03:16,676 INFO [STDOUT] 22:03:16,666 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSuppor

Re: Help: Need of Structs aplication

2007-03-29 Thread Ray Clough
Is there a place where small demo apps like this can be posted for others to use/evaluate? I have such a program, but with the libraries, it is far too big to email. - Ray Clough [EMAIL PROTECTED] Brian Thompson wrote: Sounds like AppFuse would probably do the trick: http://appfuse.org/ O

Re: Struts2 and table tag

2007-03-29 Thread Musachy Barroso
The table tag is deprecated and will must likely be dropped soon, you may want to look at tabletags: http://cwiki.apache.org/S2PLUGINS/table-tags.html regards musachy On 3/29/07, Marcin Zduniak <[EMAIL PROTECTED]> wrote: Hello, I would like to use table tag with Struts2 that is described h

Re: Help: Need of Structs aplication

2007-03-29 Thread Brian Thompson
Sounds like AppFuse would probably do the trick: http://appfuse.org/ On 3/29/07, Sreedhar Murthy <[EMAIL PROTECTED]> wrote: HI friends iam new member to the struts.apache.org list. I need a small application using structs which consists of login page and registeration page(like online student

Struts2 and table tag

2007-03-29 Thread Marcin Zduniak
Hello, I would like to use table tag with Struts2 that is described here: http://struts.apache.org/2.x/docs/table.html Unfortunately I'm not able to find any example of how to do this, the documentation is rather sketchy. Could someone show how to use it ? Kind regards, Marcin ---

Re: CompositeActionMapper

2007-03-29 Thread Darren Salomons
Deryl, I'm not sure if you solved your problem but this is how I got it to work. In the struts.mapper.composite value it is a list of the bean references from the struts-default.xml it is not a list of class names. The bean name for the DefaultActionMapper is struts. So you could configure the

Re: Struts 1.2 validation not working!

2007-03-29 Thread Niall Pemberton
Use the validation-rules.xml that comes with the version of Struts you're using. This exception usually happens when people upgrade their version of Struts but don't use the validation-rules.xml that ships with the new version. Niall On 3/29/07, davout <[EMAIL PROTECTED]> wrote: I've added Str

Re: Parsed contentType in Stream result type, JR plugin

2007-03-29 Thread Dale Newfield
Patrick J Kobly wrote: 'twould be useful to be able to get StreamResult to take the contentType param as an index into the value stack (I have an action that determines content type based on user input). If you include true then you should be able to include OGNL expressions (in "${"..."}") in

Re: can anyone recommended books which will help me learn Struts 2

2007-03-29 Thread Ted Husted
On 3/29/07, Cecilia Castillo <[EMAIL PROTECTED]> wrote: I do have some issues with the Wiki from time to time...I'll send you an email when they come up. The Wiki seems to have been written more as a reference for people who already understand how things work...it is often hard for me to figure

Re: Struts 2 with Acegi

2007-03-29 Thread Guilherme
Hi, I have an example using Acegi Security + Struts 2, but i'm using only login functionality. If anyone have an example to help us. Regards. 2007/3/29, Chris Pratt <[EMAIL PROTECTED]>: I've been trying to find a starter example or tutorial that talks about using Acegi Security with Struts 2

Struts 2 with Acegi

2007-03-29 Thread Chris Pratt
I've been trying to find a starter example or tutorial that talks about using Acegi Security with Struts 2 and Springs, but I've been unsuccessful. If anyone knows where I should look, or even has some pointers on getting started, I'd appreciate it. Thanks. (*Chris*)

Re: can anyone recommended books which will help me learn Struts 2

2007-03-29 Thread Ted Husted
It's true that most of WebWork in Action applies. The package names changed, and we've added some features, but the fundamentals remain the same. From a technical perspective, Struts 2 is WebWork 3. * http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1932394532 Online, there's a

Re:[OT] [JAVA -THREADS]

2007-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 temp temp, First, please set your real name in your email client. It's just rude to have a name like "temp temp". (Apologies if your name is actually "Temp Temp". :) temp temp wrote: [snip] > private static ResourceManagerFactory fResourceManagerFa

Re: can anyone recommended books which will help me learn Struts 2

2007-03-29 Thread Cecilia Castillo
Thanks! I do have some issues with the Wiki from time to time...I'll send you an email when they come up. The Wiki seems to have been written more as a reference for people who already understand how things work...it is often hard for me to figure out how things work. I use a lot of trial a

[JAVA -THREADS]

2007-03-29 Thread temp temp
I have a singleton class with private constructor Example public class ResourceManagerFactory { private static ResourceManagerFactory fResourceManagerFactory= new ResourceManagerFactory(); private

Parsed contentType in Stream result type, JR plugin

2007-03-29 Thread Patrick J Kobly
G'day, Don't know if this has been mentioned before, but 'twould be useful to be able to get StreamResult to take the contentType param as an index into the value stack (I have an action that determines content type based on user input). Worked around this by extending StreamResult and overr

RE: Validation, ModelDriven and Field Errors

2007-03-29 Thread Juan Espinosa
Hi dave here is all the data you ask I have a jsp where i register a customer, diferent kind of customer, personalcustomer, enterprisecustomer depending on the type of customer in the action variable "customer" the file i use to validate.. I have several validation files Personal-validation.xml, En

Re: can anyone recommended books which will help me learn Struts 2

2007-03-29 Thread Dave Newton
--- Cecilia Castillo <[EMAIL PROTECTED]> wrote: > Can anyone recommend any good books which will help > me learn Struts 2. WebWork in Action (Manning Press). Last I heard there was an S2 book in the works but haven't heard anything about it since the fall, more or less. > although I don't believ

can anyone recommended books which will help me learn Struts 2

2007-03-29 Thread Cecilia Castillo
Can anyone recommend any good books which will help me learn Struts 2. If there are no books on Struts 2...are there any books on Struts which would be of value? I am new to both Struts and Struts 2 as well as tag libraries, JSP and JavaScript. I am not new to Java or JDBC. I have been usin

Param tag inside a URL does not work properly.

2007-03-29 Thread Felipe Rodrigues
Hi, I'm sending a param using a inside a . It is working, but the problem is, when the action gets the value, it has a " after the value. I've debbuged and the parameter is being setted in the right value, so I think it is a bug when the action gets the value. the value send it 1200 and the val

Re: Multiple ActionMappers per Namespace

2007-03-29 Thread Darren Salomons
Sorry maybe my question wasn't clear enough. I just did some digging around in the source code and found CompositeActionMapper. This looks like a way to use multiple ActionMappers. I havn't tried it yet but I'll let you know how it works out. Thanks, Darren Martin Gainty wrote: > > Hi Darre

Re: [S2] JAAS & redirection

2007-03-29 Thread Pascal Lalonde
This looks logic, but it's tomcat that handles the redirection to the JSP right ? So how control that it will get through the Filter ? James Mitchell wrote: Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) tags, so it

Re: Tiles 2

2007-03-29 Thread Greg Reddin
On 3/29/07, David Harland <[EMAIL PROTECTED]> wrote: Does anyone know when Tiles 2 will have a production release? Not really. It's based on quality more than an arbitrary tag. The best way to speed up the process is to have people start using it in earnest and giving feedback in earnest.

Re: [S2] JAAS & redirection

2007-03-29 Thread James Mitchell
Right. That's what I meant when referring to the mailreader welcome page. That page only uses the text, url, and anchor (a) tags, so it should not care that there was no stack available (not having gone through an action first). I suppose the answer to all of this is simply to make sure t

Re: Multiple ActionMappers per Namespace

2007-03-29 Thread Martin Gainty
Hi Darren- supplied namespace is 2nd param to constructor for ActionMapping http://jsourcery.com/api/apache/struts/2.0.6/org/apache/struts2/dispatcher/mapper/ActionMapping.source.html#j1144438949 Does this answer your question? M--

Re: Zero-config and annotations

2007-03-29 Thread Ted Husted
On 3/29/07, alkira <[EMAIL PROTECTED]> wrote: As far as feedback, in my opinion it would be nice if I can use the same result type String in the annotations as they are in the XML files, as this would provide better consistency and I wouldn't need to remember all the Result class names (such as t

Re: Zero-config and annotations

2007-03-29 Thread alkira
I like the result annotations along with codebehind/zero config, but I'm looking forward to the Interceptor annotation to have a completely usable implementation, and will check out the patch. As far as feedback, in my opinion it would be nice if I can use the same result type String in the ann

Re: avax.servlet.ServletException: BeanUtils.populate

2007-03-29 Thread Dave Newton
--- Nitin Ahuja <[EMAIL PROTECTED]> wrote: > - Root Cause - > java.lang.IllegalArgumentException: argument type mismatch Probably BeanUtils can't populate something in your form. In other words, it cannot convert between what's in the HTML form (Strings) into one of the form elements. d.

Re: File upload fails first time, then works after page reload

2007-03-29 Thread Kurapica
I replace the jsp file with a pure HTML file and let it works with servlet. Now the ploblem happens occasionally, about one fail in ten submits. 2007/3/29, Kurapica <[EMAIL PROTECTED]>: I met the same problem. When I use struts 2 Action to accept the form, it fails occasionally. Then I wrote a

Re: [S2] JAAS & redirection

2007-03-29 Thread Pascal Lalonde
Us we have only elements. Prviously, with webwork, those tags were not problematic and we were also applying the decorator manually. James Mitchell wrote: I was getting the same error when trying to use a form () in a jsp without first going through an action in my app. ActuallyI just

Re: File upload fails first time, then works after page reload

2007-03-29 Thread Kurapica
I met the same problem. When I use struts 2 Action to accept the form, it fails occasionally. Then I wrote a servlet to replace the form. With servlet, it always fails at first time, and success after press backspace and submit the form again. 2007/3/28, Kelly Morrison <[EMAIL PROTECTED]>: I re

Re: Struts 2 and Validation Testing

2007-03-29 Thread Thomas Ferris Nicolaisen
I'm getting the same problem. The problem occurs in the ValidatorFileParser.addValidatorConfigs method on : objectFactory.buildValidator(className, new HashMap(), null); The objectFactory originates from ObjectFactory.getObjectFactory() where it is set by some Guice DI: @Inject public static

avax.servlet.ServletException: BeanUtils.populate

2007-03-29 Thread Nitin Ahuja
I am working on Strut based Application. I am facing the error while submitting a form. I have attached error message , JSP and strut config file. Please let me know the possible reasons of the error. Thanks Error Message:- [28/Mar/2007:09:27:54] failure (18159): for host 129.146.11.110 try

Multiple ActionMappers per Namespace

2007-03-29 Thread Darren Salomons
Is it possible to have a different ActionMapper per namespace? -- View this message in context: http://www.nabble.com/Multiple-ActionMappers-per-Namespace-tf3485257.html#a9729751 Sent from the Struts - User mailing list archive at Nabble.com. ---

Tiles 2

2007-03-29 Thread David Harland
Does anyone know when Tiles 2 will have a production release? __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in Engl