Re: Paging with DisplayTag and encoded table name

2008-05-01 Thread Zoran Avtarovski
You can implement the org.displaytag.pagination.PaginatedList class and use any parameters you like. Also helps when dealing with large lists. Z. > 2008/5/1 Brad A Cupit <[EMAIL PROTECTED]>: >>> > > I'm curious if there is a neat way to have the page >>> > > parameter mapped onto action or some

Support for Struts 2 in NetBeans IDE

2008-05-01 Thread Pedro Herrera
I found this NetBeans plugin. Is it working well ? https://nbstruts2support.dev.java.net/ netBeansPluginStrtus2 Herrera -- View this message in context: http://www.nabble.com/Support-for-Struts-2-in-NetBeans-IDE-tp16996455p16996455.html Sent from the Struts - User mailing list archive at Nabb

Re: Way to forward to another action in Struts 1

2008-05-01 Thread Mead Lai
just input the URL of Action in the path="someAction": On Fri, May 2, 2008 at 9:02 AM, bhaarat Sharma <[EMAIL PROTECTED]> wrote: > Hi > > I started struts with struts 2 but currently am in a project which is using > struts 1 > > we have tags like these > > type="org.cipe.c

Way to forward to another action in Struts 1

2008-05-01 Thread bhaarat Sharma
Hi I started struts with struts 2 but currently am in a project which is using struts 1 we have tags like these where the forward path is in a tiles definition. I am wondering if there is a way to forward the control to another struts1 action when forward name is success?

Action executed many times

2008-05-01 Thread Márcio Gurgel
Hi, Does someone can tell me why does a action is called more than once? I've a action to populate some fields (I call it once), by debugging I saw that this method is called three times. Is it normal? If it'snt how to prevent? Thanks! Márcio Gurgel

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-01 Thread tom tom
Hi Jeromy, Sorry, I forgot one more question, Eventhough we use dojo 1.1 directly, we need to have dojo.js, wouldn't this conflict with the one which comes as part of struts bundle --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > tom tom wrote: > > Hi, > > > > In order to leverage the full capabil

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-01 Thread tom tom
Thanks Jeromy, Yes that is what I also thought, On the other hand I came to know that Struts 2.1 got lot of tag enhancements with regards to dojo The main thing which I can't understand is, why struts provides AJAX theme at all, DOJO to me is not only a set of javascript, it is a framewor

ActionValidatorManagerFactory

2008-05-01 Thread Jay Bose
While I used WebWork-2, and the XWork associated with it, I was able to programmatically retrieve action validation using the ActionValidatorManagerFactory. Now, it seems this class was removed. Any suggestions on how to programmatically get a ValidatorFactory instance?

2

2008-05-01 Thread Ian Meikle
Hi, In the doc for it says: "The value sent to the server is a locale-independent value, in a hidden field as defined by the name attribute. The value will be formatted conforming to RFC3 339 (-MM-dd'T'HH:mm:ss) " >From my debugging two values are sent to the server. 1) dojo.attr

tag

2008-05-01 Thread Ian Meikle
Hi, We are trying to the the tag for date fields. The doc says that this tag should accept and display dates in the user locale. All seems well as long as the user has US english locale defined in his browser. However if the user uses another locale, en-gb (English), no_NO (norwegian) ect, the

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-05-01 Thread Dave Newton
--- Sandy143 <[EMAIL PROTECTED]> wrote: > I have replaced with normal href ... > > I am able to view Login.jsp. But when I click on submit ...it throws me > out. > > Please let me know at your earliest possible Are you billing by the hour for this? Seriously, have you seen the last three times

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-05-01 Thread Sandy143
Yes ... I have replaced with normal href ... I am able to view Login.jsp. But when I click on submit ...it throws me out. Please let me know at your earliest possible newton.dave wrote: > > --- Sandy143 <[EMAIL PROTECTED]> wrote: >> Let me be clear then ... >> >> I am trying to migrate fro

Re: Paging with DisplayTag and encoded table name

2008-05-01 Thread Paweł Badeński
2008/5/1 Brad A Cupit <[EMAIL PROTECTED]>: > > I'm curious if there is a neat way to have the page > > parameter mapped onto action or something alike > > You should be able to put a setter on the Action. So, if your url parameter > is named pageNum, your action would have a setPageNum() method.

RE: Paging with DisplayTag and encoded table name

2008-05-01 Thread Brad A Cupit
> I'm curious if there is a neat way to have the page > parameter mapped onto action or something alike You should be able to put a setter on the Action. So, if your url parameter is named pageNum, your action would have a setPageNum() method. Brad Cupit Louisiana State University - UIS

Re: Struts and OsGI

2008-05-01 Thread Musachy Barroso
Spring also has support for loading beans from bundles, independent from the MVC part, which we are using in the OSGi plugin. musachy On Wed, Apr 30, 2008 at 11:41 PM, Don Brown <[EMAIL PROTECTED]> wrote: > Spring MVC is taking a significantly different approach than Struts 2, > as I understand

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-05-01 Thread Jeromy Evans
ravi_eze wrote: hi, even this doesnt seem to be working. is it possible to load the constant class to the context and then display it form there.? or in that case it expects a setters and getters... or some way of getting this done.. the code is very bad to read 'cos every time i am using @com.

Re: jsp page with s:action to call an action with a redirect-action

2008-05-01 Thread Ralf Fischer
Hi! On Wed, Apr 30, 2008 at 2:21 AM, crappycrumpet <[EMAIL PROTECTED]> wrote: > Ralf Fischer-2 wrote: > > > > Please tell us exactly what you want to do, as there might be a > > simpler solution to your problem. > > > > Okay I don't have hibernate and this is what I'm sort of doing. Let's sa

Re: Struts2.1: Is Validation Annotations on Nested Objects Supported?

2008-05-01 Thread egetchell
Thanks all for the information. Since it seems that a few others out there had similar questions, I’ll add to this post for future reference. Like the Action examples, as long as the get...() property on the parent class is properly annotated with the VisitorFieldValidator, the annotations corre

Struts2 and tiles NullpointerExxception

2008-05-01 Thread Yayo
I simply can't find anything wrong in my config, I've got a simple app with a login action returning "success" this is my Struts.xml file: working.page and this is my tiles.xml:

StrutsRequestWrapper causing NotSerializableException?

2008-05-01 Thread mojoRising
I have this exception from Weblogic that tells me something in my session (org.apache.struts2.dispatcher.StrutsRequestWrapper) is not serializable. Does anyone understand what is going on here? I am not sure whether the org.apache.struts2.dispatcher.StrutsRequestWrapper should be in the session

Paging with DisplayTag and encoded table name

2008-05-01 Thread Paweł Badeński
Hi, I want to implement paging with DisplayTag, but I'm stuck with encoded table name (d--p). As for now I have my Action implement ParameterAware and manually grab the page number from the map. I'm curious if there is a neat way to have the page parameter mapped onto action or something alike (so

Re: usage of Preparable interface?

2008-05-01 Thread Adam Hardy
Jeromy Evans on 01/05/08 14:49, wrote: That way you could remove all the boilerplate from your actions. eg, If it placed the model into the actioncontext you could potentially use without your action providing the list or getter at all (except something must instruct the interceptor to load

Re: usage of Preparable interface?

2008-05-01 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans <[EMAIL PROTECTED]> wrote: I've been toying with the idea of creating a custom interceptor to do this. It would be effectively the same as you describe, except that it would inspect the action for the presence of some interface, annotation, or method, an

Re: usage of Preparable interface?

2008-05-01 Thread Jeromy Evans
Adam Hardy wrote: Adam Hardy on 01/05/08 13:51, wrote: Jeromy Evans on 01/05/08 12:48, wrote: Adam Hardy wrote: I have been casting around for a while for the most elegant and quick-to-code mechanism for putting populating lists for select controls. I wanted to run this one idea past the st

Multiple Results or How should I handle this?

2008-05-01 Thread Richard Sayre
I have an Action that could display several pages based on some info passed to it. Basically, its a preview action that will show the proper preview page based on some input. The way I am think of doing it is to use custom results to redirect to the proper preview page: if (preview1) { retur

Re: usage of Preparable interface?

2008-05-01 Thread Dave Newton
--- Jeromy Evans <[EMAIL PROTECTED]> wrote: > I've been toying with the idea of creating a custom interceptor to do > this. It would be effectively the same as you describe, except that it > would inspect the action for the presence of some interface, annotation, > or method, and examine the re

Re: Sending Email Notifications

2008-05-01 Thread Jon Wynacht
Hi Jeromy, I never received the responses. Not sure why. I initiated the message from Nabble but it asked that I signed up to the listserv. I did that but it acted as if the message never posted. So I signed up again and posted the message again. I see my question on Nabble and Markmail b

Re: usage of Preparable interface?

2008-05-01 Thread Adam Hardy
Adam Hardy on 01/05/08 13:51, wrote: Jeromy Evans on 01/05/08 12:48, wrote: Adam Hardy wrote: I have been casting around for a while for the most elegant and quick-to-code mechanism for putting populating lists for select controls. I wanted to run this one idea past the struts users to get a

Re: usage of Preparable interface?

2008-05-01 Thread Adam Hardy
Jeromy Evans on 01/05/08 12:48, wrote: Adam Hardy wrote: I have been casting around for a while for the most elegant and quick-to-code mechanism for putting populating lists for select controls. I wanted to run this one idea past the struts users to get any feedback on something I may have mi

Re: Sending Email Notifications

2008-05-01 Thread Jeromy Evans
Jon Wynacht wrote: Hi, I have a Struts action that, when invoked, needs to send email to about 50 people. From what I've read in this forum it seems I should use JMS for this. Any suggestions on which route to take? I'm running Tomcat 5.5.20. Any pointers? Is this overkill? Better solutions?

Re: usage of Preparable interface?

2008-05-01 Thread Jeromy Evans
Adam Hardy wrote: I have been casting around for a while for the most elegant and quick-to-code mechanism for putting populating lists for select controls. I wanted to run this one idea past the struts users to get any feedback on something I may have missed or need to know. One requirement

usage of Preparable interface?

2008-05-01 Thread Adam Hardy
I have been casting around for a while for the most elegant and quick-to-code mechanism for putting populating lists for select controls. I wanted to run this one idea past the struts users to get any feedback on something I may have missed or need to know. One requirement I set myself is tha

Sending Email Notifications

2008-05-01 Thread Jon Wynacht
Hi, I have a Struts action that, when invoked, needs to send email to about 50 people. From what I've read in this forum it seems I should use JMS for this. Any suggestions on which route to take? I'm running Tomcat 5.5.20. Any pointers? Is this overkill? Better solutions? Thanks, Jon

RE: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-05-01 Thread ravi_eze
hi, even this doesnt seem to be working. is it possible to load the constant class to the context and then display it form there.? or in that case it expects a setters and getters... or some way of getting this done.. the code is very bad to read 'cos every time i am using @com.company any

Displaying results on main window (when submitted from pop window no. 2)

2008-05-01 Thread sri2003
Hi, Logged in to my web application using Internet Explorer. >From the home page (JSP), opened one popup window (no. 1) ; then from window 1, opened other window no. 2; now submitting (an struts action from jsp)on window no. 2 , should show the results on the base(main) window ie. where i firs