Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Kyle Adams
Musachy Barroso wrote: > > Does it work with only zero conf? (no RestfulActionMapper) > Yup. Works if I turn off RestfulActionMapper (zero conf still used) and works if I turns off the namespace (zero conf still used). Just doesn't work if all three are in effect. Kyle -- View this message

Re: [S2] Why s:submit triggers dojo.event.topic twince?

2007-04-20 Thread Dave Newton
--- Minerva CC <[EMAIL PROTECTED]> wrote: > I tried form submit like the following code. But, I > found that every time when I clicked on the submit > button, the dojo.event.topic was called twince. Is > there anybody who has the same experience? Yes; everybody :) See the following link for detai

[S2] Why s:submit triggers dojo.event.topic twince?

2007-04-20 Thread Minerva CC
Hi, I tried form submit like the following code. But, I found that every time when I clicked on the submit button, the dojo.event.topic was called twince. Is there anybody who has the same experience? dojo.event.topic.subscribe("/notifyevent", function(data, type, request) { alert('Notify

Re: How to force request parameters to be passed to action through interceptor?

2007-04-20 Thread Dmitriy Kuznetsov
Mark Menard wrote: > > On 4/20/07 3:56 PM, "Dmitriy Kuznetsov" <[EMAIL PROTECTED]> wrote: > >> >> >> >> > class="myinterceptor.VoidInterceptor" /> >> >> >> >> > > I think this is your problem. Your voidInt interceptor is the only one > that > is b

Re: How to force request parameters to be passed to action through interceptor?

2007-04-20 Thread Mark Menard
On 4/20/07 3:56 PM, "Dmitriy Kuznetsov" <[EMAIL PROTECTED]> wrote: > > > >class="myinterceptor.VoidInterceptor" /> > > > > I think this is your problem. Your voidInt interceptor is the only one that is being called for this action. The setting of

Re: Flex front end

2007-04-20 Thread Martin Gainty
Assuming you're implement Serializable ..No work on the backend The real work is finding where does Adobe look for Java class files or jars Also I didnt see anything on the Adobe site or documentation on how a JavaClass is configured in Flex Thanks/ This email message and any files transmitted

RE: List of beans in a bean on a form

2007-04-20 Thread Will Budreau
You need to set the form as the root nesting context. I usually do this by wrapping the nested form content with In theory the nested taglib is supposed to override html:form to automatically set the root node, but I haven't got that to work. -Original Message- From: David Conrad

Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Kyle Adams
Kyle Adams wrote: > > As can be seen in the annotations, I'm using the JSON plugin to serve up > the result. Any ideas why it thinks "v1" is my action? Maybe it's the > combination of zero conf, a namespace, and RestfulActionMapper? > I should also note that when I remove the namespace annot

Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Musachy Barroso
Does it work with only zero conf? (no RestfulActionMapper) musachy On 4/20/07, Kyle Adams <[EMAIL PROTECTED]> wrote: Martin Gainty wrote: > > Does this help? > Hmm... not really. So the unit test works, but in my app I keep getting the following errors when trying to use namespaces in conj

Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Kyle Adams
Martin Gainty wrote: > > Does this help? > Hmm... not really. So the unit test works, but in my app I keep getting the following errors when trying to use namespaces in conjunction with the RestfulActionMapper: There is no Action mapped for action name v1. - [unknown location] This is a ver

List of beans in a bean on a form

2007-04-20 Thread David Conrad
I'm using Struts 1.3.5 and have a problem with a nested field. The tag is outputting: The problem is, the customers come from the customers collection on the firstLob object, which is a java bean on the form bean. Doesn't this need to be either "firstLo

RE: Flex front end

2007-04-20 Thread Joe Yuen
I saw that article on the Adobe web site too but my question really was meant to hear from others what their experiences have been integrating Flex to work with Struts 1 or Struts 2. If you have a current web application based on struts using the normal view technologies, i.e. JSP, JSTL, Javascr

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread john lee
David, tks for ur help. actually, my goal is to have multiple submit button on same page, do same thing, but carry different input value(different search result). john David Conrad <[EMAIL PROTECTED]> wrote: On 4/20/07, john lee wrote: > what is S1 tags? i still use struts 1.3.8. S

Re: Flex front end

2007-04-20 Thread robin bajaj
I just came across this article that explains how to use Flex front end for Struts web app. http://www.adobe.com/devnet/flex/articles/struts.html hope that helps, robin On 4/20/07, Richard Kroll <[EMAIL PROTECTED]> wrote: I am new to struts so bear with me if I'm slightly off, but Flex and str

RE: Flex front end

2007-04-20 Thread Richard Kroll
I am new to struts so bear with me if I'm slightly off, but Flex and struts really have no need to talk to one another. Struts is concerned with the view / controller layer of a MVC application. Flex acts internalizes the view / controller layer, and has a micro-framework called Cairngorm (http:/

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread David Conrad
On 4/20/07, john lee <[EMAIL PROTECTED]> wrote: what is S1 tags? i still use struts 1.3.8. Struts 1.x. S2 would be Struts 2.x. So, with 1.3.8, you are still using S1. So, no possible to submit formay array? > possible for me to implement the following code? > > for (i=1:i>

How to force request parameters to be passed to action through interceptor?

2007-04-20 Thread Dmitriy Kuznetsov
Hello! I am using Struts 2.0.6. I have a simple form: I have an action class SimpleAction with public setActionID(Long) and getActionID() methods, that extends ActionSupport. And i have a void interceptor class: public class VoidInterceptor extends AbstractI

Re: Flex front end

2007-04-20 Thread Felipe Rodrigues
I don't think there is "why" to use struts and flex together. Flex by itself is the hole View and controler part. When using with Java, through Flex Data Service or Remote Function Call, Java becomes responsible for the Model layer, and nothing more. The other things are inside ActionScript scope.

Re: AJAX validation

2007-04-20 Thread Felipe Rodrigues
Try take the theme="ajax" of your form. Put theme="ajax" in your submit button. Then, you can remove any DWR reference of your project if you're not using to anything else. Should work, at least until we got fixed the ajax validation. Regards, Felipe Musachy Barroso wrote: > > Ajax is experim

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread john lee
what is S1 tags? i still use struts 1.3.8. So, no possible to submit formay array? tks john Dave Newton <[EMAIL PROTECTED]> wrote: --- john lee wrote: > possible for me to implement the following code? > > for (i=1:i> { >response.Write("> styleId="+i); >

Re: ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
yes. But this is not the div I'm trying to update. Musachy Barroso wrote: > > Is the submit button inside the div? something like: > > > > > > > musachy > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: >> >> >> DEBUG: widget ID collision on ID: btGravar. I've changed this ID

Re: ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
I puzzled my last email. Sending again in the right order. The message was: "DEBUG: widget ID collision on ID: btGravar." But I already changed the Id. The problem keeps up. Thanks Felipe Rodrigues wrote: > > DEBUG: widget ID collision on ID: btGravar. I've changed this ID and I > don't get

Re: ActionContext not working properly with IE

2007-04-20 Thread Musachy Barroso
Is the submit button inside the div? something like: musachy On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: DEBUG: widget ID collision on ID: btGravar. I've changed this ID and I don't get this error anymore. But the problem persist. IE doesn't send any parameter. That was t

Re: ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
DEBUG: widget ID collision on ID: btGravar. I've changed this ID and I don't get this error anymore. But the problem persist. IE doesn't send any parameter. That was the message! Musachy Barroso wrote: > > Well we are getting closer then, it is not related to the ActionContext > (which I doub

Re: [S1] Is JSTL 1.1 compatible with Struts 1.2.9?

2007-04-20 Thread Wendy Smoak
On 4/19/07, Crawford, Preston <[EMAIL PROTECTED]> wrote: Anyone know? I know Struts 1.2 comes with JSTL 1.0. I read somewhere that you have to use JSTL 1.1 with a 2.4 container, which is what we have. I just need to figure out what version of JSTL we can/should run. The combinations are descri

Re: html:form array submit, capture inside ActionFrom question

2007-04-20 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > possible for me to implement the following code? > <% > for (i=1:i<=10:i++) > { >response.Write(" styleId="+i); >response.Write(" value="+i); >response.Write(""); >response.Write(""); >} > %> >

Re: [S1] Is JSTL 1.1 compatible with Struts 1.2.9?

2007-04-20 Thread Niall Pemberton
On 4/20/07, Crawford, Preston <[EMAIL PROTECTED]> wrote: Anyone know? I know Struts 1.2 comes with JSTL 1.0. I read somewhere that you have to use JSTL 1.1 with a 2.4 container, which is what we have. I just need to figure out what version of JSTL we can/should run. Struts ships with an optiona

html:form array submit, capture inside ActionFrom question

2007-04-20 Thread john lee
possible for me to implement the following code? <% for (i=1:i<=10:i++) { response.Write(""); response.Write(""); } %> but, how to capature form(0), form(1) with corrsponsed part inside ActionForm ? tks in advance john

Re: ActionContext not working properly with IE

2007-04-20 Thread Musachy Barroso
Well we are getting closer then, it is not related to the ActionContext (which I doubted anyway) but to ajax. Set debug="true" on the head tag and see if there are any errors. The other thing, is the submit button, or the anchor inside the div that you are trying to update (if it is then you need

Re: ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
Hi again, I tried without the theme="ajax" in the submit button. It worked even at IE, but then, I lost the ajax behavior. I need update a div. So I think it is a bug of ajax theme vs IE. What do you think? Thanks, Felipe Felipe Rodrigues wrote: > > Thanks for the help, > Now I'm trying wit

Re: Flex front end

2007-04-20 Thread Martin Gainty
Hi Frank- right now the 2 environments are separate and distinct (to everyones dismay..) I was looking into this myself and from what gather you'll need flex.war (Flex Data Services) installed on tomcat any doc and working examples are few and far between as if the vendor wants you to refactor

Re: ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
Thanks for the help, Now I'm trying with this simple form, simpler than the first. For my surprise I got the same problem. In Firefox works, in IE doesn't. Here goes my code, first the part I getting the ActionContext and getting the parameters: ActionContext ac = ActionContext.getContext(); Map

RE: Flex front end

2007-04-20 Thread Frank Russo
I'd be curious about this one myself. I've read some good things about Flex, but I'd like to see what comes of it as far as popularity. The fact that flash is what it renders holds me back a bit, but it's got some really nice features for doing ajax, but even better, it has a built in push techn

Flex front end

2007-04-20 Thread Joe Yuen
Has anyone had any experience getting Adobe's Flex product to work with struts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to change the Context Root of a webapplication

2007-04-20 Thread David Conrad
On 4/20/07, Gurram, Srinivas <[EMAIL PROTECTED]> wrote: I am new to struts. Currently my application url is like this http://www.site.com/contextname/Home.do I want to change this url to http://www.site.com/Home.do I need to remove the contextname. You need to change the contextroot in your

Re: ActionContext not working properly with IE

2007-04-20 Thread Musachy Barroso
You could compare what is getting submitted to the server by both FF and IE. But it does sound weird. Try to narrow it down to a simple form, with a simple action, with no extra-interceptors, etc. musachy On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: I don't want to screw up, but d

Re: AJAX validation

2007-04-20 Thread Musachy Barroso
Ajax is experimental on the 2.0 releases, and we are working to improve it for 2.1, that being said, I'm not sure that ajax validation was working on 2.0.6. What do you mean by "AJAX fields"? regards musachy On 4/20/07, King, Leon C <[EMAIL PROTECTED]> wrote: Hi all, I'm using str

Re: ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
I don't want to screw up, but doesn't it sound like a bug? I have nowhere more to look for a solution. {} Felipe Felipe Rodrigues wrote: > > Sure, > > Pls, excuse the names in portuguese. It is not a simple form, and it is in > this way because it is dinamicaly generated. > > --

AJAX validation

2007-04-20 Thread King, Leon C
Hi all, I'm using struts 2.0.6. I'm having an awful time trying to find a working example of form validation using AJAX. When I enable ajax on my forms, I notice a javascript error at the bottom of my MS IE 6.0 window. Is it possible to use plain Javascript for form validation if I

Re: [S1] Is JSTL 1.1 compatible with Struts 1.2.9?

2007-04-20 Thread Henri Yandell
Not that I've tested at all - but I suspect it works ok. Hen On 4/20/07, Crawford, Preston <[EMAIL PROTECTED]> wrote: Anyone know? Preston -Original Message- From: Crawford, Preston [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 6:39 PM To: 'Struts Users Mailing List' Subjec

RE: [S1] Is JSTL 1.1 compatible with Struts 1.2.9?

2007-04-20 Thread Crawford, Preston
Anyone know? Preston -Original Message- From: Crawford, Preston [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 6:39 PM To: 'Struts Users Mailing List' Subject: [S1] Is JSTL 1.1 compatible with Struts 1.2.9? Anyone know? I know Struts 1.2 comes with JSTL 1.0. I read somewhere

SOLVED RE: Maven Jetty plugin error

2007-04-20 Thread LAMY Olivier
If can help : don't use war inplace. -- Olivier -Message d'origine- De : LAMY Olivier [mailto:[EMAIL PROTECTED] Envoyé : jeudi 19 avril 2007 10:45 À : Struts Users Mailing List Objet : RE: Maven Jetty plugin error Nobody can help ? Thanks, -- Olivier -Message d'origine- De :

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-20 Thread Crawford, Preston
Just thought I'd see if I got any kind of response since earlier the server itself through a URI couldn't be reached exception, or something to that effect. I'm thinking this problem may be different, though, as it can't even locate local TLDs currently. Preston -Original Message- From:

s2 app reload

2007-04-20 Thread Hartrich, James CTR USTRANSCOM J6
I want to add a new namespace to the struts.xml on the fly. Is there a way to detect this change and reload the app context? I'm trying to avoid reloading the app in the tomcat manager. James - To unsubscribe, e-mail: [EMAIL PROTE

[FRIDAY] Re: [S2]Accessing a Bean within a Bean in my jsp

2007-04-20 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > All is well, and I can display levels of deepness as > needed. I said the same thing to my ex. Didn't take. d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http

Re: [S2]Accessing a Bean within a Bean in my jsp

2007-04-20 Thread Skip Hollowell
Mark Menard wrote: On 4/19/07 12:48 PM, "Skip Hollowell" <[EMAIL PROTECTED] > wrote: > I am not sure if this is possible, but can I access a bean within a > bean, and grab fields from it within my jsp? Yes, you can, and I d

Struts 1.3: Reset form values to previous state

2007-04-20 Thread Chaudhary, Harsh
Hi, I am using Struts 1.3. We have several strust forms which are pre-populated from a database. My questions is, if I want to provide the user with a way to reset the form to the initial values which were populated from the database. Is there any API or method calls for that. Automagic...FTW.

Re: Please help me get started

2007-04-20 Thread Ian Roughley
There is also a article / tutorial that I wrote late last year - http://www.infoq.com/articles/converting-struts-2-part1. It has the basic steps to get running. /Ian Shahak Nagiel wrote: Are you comfortable (at least to some degree) with all the technologies discussed in the Primer (http://

Re: [S2]Accessing a Bean within a Bean in my jsp

2007-04-20 Thread Mark Menard
On 4/19/07 12:48 PM, "Skip Hollowell" <[EMAIL PROTECTED]> wrote: > I am not sure if this is possible, but can I access a bean within a > bean, and grab fields from it within my jsp? Yes, you can, and I do it all the time. Sometimes with multiple levels of nesting (ie: order -> order line item ->

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-20 Thread Ken Miller
>>> On 4/20/2007 at 9:16 AM, in message <[EMAIL PROTECTED]>, "Craig McClanahan" <[EMAIL PROTECTED]> wrote: > On 4/20/07, Ken Miller <[EMAIL PROTECTED]> wrote: >> ... >> When I first started getting struts working in my environment, I deployed > the application with the struts jar files in the li

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-20 Thread Craig McClanahan
On 4/20/07, Ken Miller <[EMAIL PROTECTED]> wrote: >>> "Craig McClanahan" <[EMAIL PROTECTED]> 4/17/2007 4:33 PM >>> > > Craig McClanahan wrote: > > Yep ... it's magic :-). Ah, magic. Lots of hand waving, followed gasps and applause :-) Guys, thanks for the great info - this has all been really

Re: struts-menu plugin

2007-04-20 Thread Martin Gainty
Hi Darryl- I would deploy struts-menu-2.4.war http://sourceforge.net/project/showfiles.php?group_id=48726&package_id=44658 the backend jsps are missing but you can easily create those M-- This email message and any files transmitted with it contain confidential information intended only for the

URL parameters separator

2007-04-20 Thread Marcello Savino
In my jsp i've a code like this: The code works good. But the generated url are in this form: http://localhost:8080/myApp/myAction.do?id=161298&year=2005 Instead of http://localhost:8080/myApp/myAction.do?id=161298&year=2005 As required by the DTD declared

Re: ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
Sure, Pls, excuse the names in portuguese. It is not a simple form, and it is in this way because it is dinamicaly generated. - BEGIN OF CODE --- Variável Unid Valor Valor

SSL Interceptor

2007-04-20 Thread Shahak Nagiel
Following up on my thread from yesterday, I've finished work on the SSL Interceptor, which can be added to the default stack and works as follows: - If the associated action class is marked with the (custom) @SSLProtected annotation and it's an HTTP (non-SSL) GET request, then the interceptor wi

Re: Can we keep one action file for all jsp files?

2007-04-20 Thread Martin Gainty
I Agree with Harring.. Each Action should process one form-bean I would suggest you may want to think this through rather thoroughly before implementing as a struts-action is designed to interact/process one formbean and not many beans. If you want an example of nested beans take a look at str

Re: ActionContext not working properly with IE

2007-04-20 Thread Musachy Barroso
Can you post the form that you are submitting? musachy On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Hi guys, I'm using ActionContext to get get some fields from a form that is dinamically generated. So, I use, ActionContext.getContext( ).getParameters( ) that returns me a Map. It

Re: Struts 1.3.8: "Sidebar: Sharing JAR Files Across Web Applications"

2007-04-20 Thread Ken Miller
>>> "Craig McClanahan" <[EMAIL PROTECTED]> 4/17/2007 4:33 PM >>> > > Craig McClanahan wrote: > > Yep ... it's magic :-). Ah, magic. Lots of hand waving, followed gasps and applause :-) Guys, thanks for the great info - this has all been really helpful. However, I do have one question regard

struts-menu plugin

2007-04-20 Thread Darryl Culverwell
Has anyone managed to get the struts-menu stuff working in struts 2 -- -=Darryl Culverwell=- Cell: +27 82 494 1678 Phone: +21 21 448 1395 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: [s2] Problem with no checkboxes selected

2007-04-20 Thread Zoran Avtarovski
I have a solution, but it's not pretty. What I ended up having to do is set a hidden attribute with the same name as my check boxes and set it's value to -1 as below. And then in my service layer screen out any roleIds equal to -1. As I said not pretty. I'd appreciate a better option. Z. >

RE: How to change the Context Root of a webapplication

2007-04-20 Thread Gurram, Srinivas
Thanks wes -Original Message- From: Wesley Wannemacher [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 6:57 PM To: Struts Users Mailing List Subject: RE: How to change the Context Root of a webapplication IIRC, if you rename your web-app to "ROOT" then the container will treat it

RE: [s2] Problem with no checkboxes selected

2007-04-20 Thread Frank Russo
Sorry my response was too quick. I don't always realize the s2 in subject is there when I read the posts. I'm not sure how to do this in s2... -Original Message- From: Zoran Avtarovski [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 9:29 AM To: Struts Users Mailing List; Frank Rus

Re: URL parameters separator

2007-04-20 Thread Harring Figueiredo
I am not sure if the DTD declares that (I did not take a look at it), but basically the way to pass param on a HTML URL is the way it was generated - Every single HTTP server will not parse the parameters correctly if it is in the form that you want. If you have some special parser or that is inde

Re: [s2] Problem with no checkboxes selected

2007-04-20 Thread Zoran Avtarovski
Thanks Frank, But I thought that form.reset() was only for s1. Does s2 even have a reset method? Z. > Your form has to implement the ActionForm's reset method. In that method, you > should set all of your boolean attributes to false. The reason has to do with > http. Only checked checkboxes are

RE: How to change the Context Root of a webapplication

2007-04-20 Thread Wesley Wannemacher
IIRC, if you rename your web-app to "ROOT" then the container will treat it special. I've used this in Tomcat, but I fiddled around with it before I got into Struts. I can't say for sure, but I would assume that if your web-app is called "ROOT" then Struts would treat it special as well. Since th

Re: Can we keep one action file for all jsp files?

2007-04-20 Thread Harring Figueiredo
You can do this by declaring the method that will handle the request. My suggestion on this is that you should see if you REALLY need only one action to handle everything. This might make maintenance more difficult and you might have to mingle member variable that deal with different requests and

Re: How to change the Context Root of a webapplication

2007-04-20 Thread Mark Shifman
I don't think this is a struts issue. Look in the tomcat wiki http://wiki.apache.org/tomcat/HowTo#head-e82228c43a0ce77f71ebe64fc99ced33c9506ffe How do I override the default home page loaded by Tomcat? mas Gurram, Srinivas wrote: Hi I am new to struts. Currently my application url is like thi

RE: [s2] Problem with no checkboxes selected

2007-04-20 Thread Frank Russo
Your form has to implement the ActionForm's reset method. In that method, you should set all of your boolean attributes to false. The reason has to do with http. Only checked checkboxes are submitted on a post request, and only attributes that are submitted have their setters called. If you set

[S2 Tip] Define base class constants for common Result names

2007-04-20 Thread Ted Husted
The framework defines several constants that are used to identify common result use cases, such as, ERROR, INPUT, FAILURE, LOGIN. NONE, and SUCCESS. When an application has common result cases of its own, such HELP, MENU, or CANCEL, the application should define additional constants to represent

Re: [s2]Would like each action to go throught my parent class

2007-04-20 Thread Mark Menard
On 4/18/07 10:35 PM, "Drew Kutcharian" <[EMAIL PROTECTED]> wrote: > A little suggestion. Inside the interceptor, you can also put the User in the > ActionContext or your own custom ThreadLocal so you can use that all over the > stack for permissions/roles/etc as an alternative to say Acegi. In a

ActionContext not working properly with IE

2007-04-20 Thread Felipe Rodrigues
Hi guys, I'm using ActionContext to get get some fields from a form that is dinamically generated. So, I use, ActionContext.getContext( ).getParameters( ) that returns me a Map. It works fine in Firefox, but don't work in IE. When using IE it returns a empty Map. I tried get the request object,

[s2] Problem with no checkboxes selected

2007-04-20 Thread Zoran Avtarovski
I've run into a problem where when I edit a form which has check boxes. 1. If I create a new object via the form and have no check boxes selected it works fine. 2. If I create a new object via the form and have one or more check boxes selected it works fine. 3. If I edit an object which has had

How to change the Context Root of a webapplication

2007-04-20 Thread Gurram, Srinivas
Hi I am new to struts. Currently my application url is like this http://www.site.com/contextname/Home.do I want to change this url to http://www.site.com/Home.do I need to remove the contextname. It refers to the application name under webapps. Could any one suggest the solution. Thanks in

Re: [S2] (Newbie) Using Preparable

2007-04-20 Thread Martin Gainty
For Implementation for preparable interface Musachy has a full example located at http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html The prepare() method may be used in your class such to obtain ID as the prepare method will execute before the execute() method prepare method will

Can we keep one action file for all jsp files?

2007-04-20 Thread prafull.jain
Hi, I have 5-6 Jsp pages and all are inter connected. If any one make changes, these changes should be display in the database. In this case, I need only one Action class which can hold or manipulate all changes from all jsp pages. I am not sure "Can we keep one action file for all jsp files?"

Re: [S2] RestfulActionMappers and Namespace

2007-04-20 Thread Martin Gainty
Hi Kyle- Did you get a chance to look at org.apache.struts2.dispatcher.mapper.RestfulActionMapperTest.java ActionMapping am = new ActionMapping(); am.setName("view"); am.setNamespace("secure"); Does this help? M-- This email message and any files transmitted with it con

[OT] Re: URL parameters separator

2007-04-20 Thread Antonio Petrelli
2007/4/20, Marcello Savino <[EMAIL PROTECTED]>: The code works good. But the generated url are in this form: http://localhost:8080/myApp/myAction.do?id=161298&year=2005 Instead of http://localhost:8080/myApp/myAction.do?id=161298&year=2005 As required by the DTD declared (xhtml 1.0 strict)

Problems when using s:include together with s:param.

2007-04-20 Thread Ågren , Erik
Hi I'm using Struts 2.0.1 and I have some problems using the include tag together with param. What is tricky is that everything works fine most of the times. But now and then the parameter passing doesn't seem to work correctly. What I'm doing is the following: //Part of the jsp-page that has

Re: [S2] (Newbie) Using Preparable

2007-04-20 Thread Alexis Pigeon
Hi Roger, On 20/04/07, Roger Varley <[EMAIL PROTECTED]> wrote: Hi Can someone please explain the point of the Preparable interceptor and prepare(). What do I gain over doing everything in the execute() method of my action. Obviously there must be some advantage otherwise Preparable wouldn't be

[S2] (Newbie) Using Preparable

2007-04-20 Thread Roger Varley
Hi Can someone please explain the point of the Preparable interceptor and prepare(). What do I gain over doing everything in the execute() method of my action. Obviously there must be some advantage otherwise Preparable wouldn't be there, but I can't see it at the moment. Regards Roger

Re: html:checkbox value show object refrence

2007-04-20 Thread Dave Newton
--- Chandrakant wrote: > value=" value='${annuitType.annuitid}'> >"> > You can't nest tags like that. Depending on what version of servlet/jsp your container supports you can either use JSP EL directly or the struts-el tags. d. ___

html:checkbox value show object refrence

2007-04-20 Thread Chandrakant
Hi All, I created action form which contains List holding Id and name fields. In JSP I use When I see the source page the output is like In value I get refrence. If I use normal http://www.patni.com World-Wide Partnerships. World-Class Solutions.

RE: [S1] The proper way to define taglibs in a jsp file

2007-04-20 Thread Dave Newton
--- "Crawford, Preston" wrote: > I did. It's expecting the one you listed. I just get > a "Not Found" error if I go there. Why are you trying to go there? It's not a URL. You're saying your server/IDE is trying to hit that address? Something is set up funny if it is. d. ___

Re: How to set filter in Struts2?

2007-04-20 Thread Laurie Harper
red phoenix wrote: I want to set a filter,then I set different character code by this filter,such when a request from a1.action,I will set this character code is UTF-8,a request from a2.action,I will set this character code is ISO88591,and so on.I don't know how to realize above function in filte

PreResultListener for codebehind doesn't work

2007-04-20 Thread Thomas Wiradikusuma
Hello, I'm currently playing with codebehind and zero conf in Struts 2. My objective is to make CRUD application easy: you don't have to create Action, you don't have to wire them using XML stuff or Annotation (and you don't have to create DAOs and Managers and tables, just domain models) Codebe