Unable to Repopulate the select control once the validation failed

2007-09-03 Thread vamsi
Hi, I am using struts validation frame work. if the validation fails I am returning to the same jsp page. Here in this page there is some date is which was populated when the jsp page initially loaded. when saving the data I am performing the validation if it fails I

Re: Struts2: How to handle errors and messages with ajax requests

2007-09-03 Thread Leonidas Papadakis
Hi Marc, if you are using struts2 , i guess that your action result is xslt (returning xml) . Normally when no errors occur you will parse this xml and populate the list with javascript. Why don't you set a flag on your xml result i.e. errorid1/errorid errormessageInvalid input/errormessage

dojo form submission not working in IE

2007-09-03 Thread Hari Prasad
Hi, I used simple ajax form submission in my application and it worked in both Mozilla and Internet Explorer. and now, I shifted to DOJO and my form is like this.. @s.div id=login_box_ajx theme=ajax @s.form action=login name=login_form id=login_form method=POST

Animated Tutorial for Struts2

2007-09-03 Thread Mohammad SeyedAlavi
Dear all, In order to better understanding and using of Struts2, I have created the Animated Tutorial for Struts2 that shows how does struts work. My goal for creating this document was to show basic primitives such as request scope value stack, action classes and objects to

Re: dojo form submission not working in IE

2007-09-03 Thread Jeromy Evans
In IE6 the s:a can't have a target equal to a div that contains the itself unless you set showLoadingText=false The problem is that in IE6 the form nodes are overwritten by the loading text before its actually read and posted. Disable the loading text and it will be okay. regards, Jeromy

Re: MVC2 question

2007-09-03 Thread Leon Rosenberg
1) there is no such thing as MVC2. You are probably mixing things up: Model2 for JSP Development and MVC Pattern. 2) If you are talking about struts 2, there is a major difference between a servlet and an action, since the action incorporates both, request data and logic, which servlet doesnt.

Re: dojo form submission not working in IE

2007-09-03 Thread Hari Prasad
Wow...thank you very much.. its working.. Jeromy Evans - Blue Sky Minds wrote: In IE6 the s:a can't have a target equal to a div that contains the itself unless you set showLoadingText=false The problem is that in IE6 the form nodes are overwritten by the loading text before its

Re: ServletRequestAware

2007-09-03 Thread vamsi
why can't u get request object from ServletContext? - Original Message - From: Alvaro Sanchez-Mariscal [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, September 03, 2007 6:53 AM Subject: Re: ServletRequestAware As far as I know, the only way is

Re: How to give a text field name dynamically?

2007-09-03 Thread Subhani Shaik
Thanks Nuwan. It's working. -- View this message in context: http://www.nabble.com/How-to-give-a-text-field-name-dynamically--tf4358482.html#a12460663 Sent from the Struts - User mailing list archive at Nabble.com. - To

Struts and JNDI

2007-09-03 Thread Mary Poppins
I have a struts application, deployed using tomcat 5, that uses database pooling. I have a helper class called DAOhelper that encapsulates database interactions. The problem I have is that the class only works during application initialisation. I have an ApplicationInitaliser class that extends

Running Dojo on a struts project

2007-09-03 Thread Session A Mwamufiya
Hi, I'm attempting to follow a Dojo tree widget tutorial, http://willcode4beer.com/ware.jsp?set=dojoTreeWidget, where Dojo is used to define a tree. Unfortunately nothing comes up on the page, even though the page source shows the tree definition. The tree page is set as the result page for

Re: MVC2 question

2007-09-03 Thread Alexandre Seabra
Leon, Frist of all, I wanna say hi to the community. I just sign in the list, and hope we have a good time! I don't remember reading a book about MVC2, but informaly, with friends at work, this subject comes up some times. The MVC2 is not doesn 't depend on struts. Struts uses is implemented

RE: Running Dojo on a struts project

2007-09-03 Thread Session Mwamufiya
To follow up on this; I used firebug to try to figure out what was going on, and this is the error message I get in the console: djConfig.baseScriptUri has no properties getBaseScriptUri()dojo.js (line 155) loadPath(src/lang/__package__.js, dojo.lang, undefined)dojo.js (line 187)

Re: MVC2 question

2007-09-03 Thread Leon Rosenberg
On 9/3/07, Alexandre Seabra [EMAIL PROTECTED] wrote: Leon, Frist of all, I wanna say hi to the community. I just sign in the list, and hope we have a good time! welcome aboard. I don't remember reading a book about MVC2, but informaly, with friends at work, this subject comes up some

RE: Running Dojo on a struts project

2007-09-03 Thread Session A Mwamufiya
Who has experience using Dojo? Please help me get it setup. I added the dojo.js file from the 0.9.0 release (I think it's the latest) to my webcontent folder in an eclipse WAP project, but firebug keeps giving me the same error djConfig.baseScriptUri has no properties

Re: Running Dojo on a struts project

2007-09-03 Thread Frank W. Zammetti
It *looks* like your using a Dojo profile that doesn't include the pieces you need, and Dojo is going off and trying to import them and not finding them. Have a look here: http://www.nabble.com/djConfig-params-t2109960.html You should set djConfig.baseScriptUri first, see if that resolves

sending values to form when using ValidateDispatchAction

2007-09-03 Thread abhiram
iam using ValidateDispatchAction to handle multiple submit buttons in a form. in this form, i display images and a submit for each of them. i want the id of the image(which i already have in the form) to be submitted to the form-bean on clicking the corresponding submit button. problem

Re: Running Dojo on a struts project

2007-09-03 Thread Session A Mwamufiya
Thanks for the input Frank. I found out my mistake, I didn't have the scripts in the header section, they were in the body, that's why the djConfig wasn't going through properly. Thanks, Session It *looks* like your using a Dojo profile that doesn't include the pieces you need, and Dojo is

[S2] Wildcard action name that includes slashes?

2007-09-03 Thread Neil Aggarwal
Hello: In my struts.xml, I have this property: constant name=struts.enable.SlashesInActionNames value=true/ At the very end of my actions, I have this one: action name=* class=page.NavUtil result name=success type=tilespage.products/result /action This works if I have a url

Fwd: Re: sending values to form when using ValidateDispatchAction

2007-09-03 Thread abhiram
iam sorry that was LookupDispatchAction, not ValidateDispatchAction.. abhiram - Once upon a time there was 1 GB storage in your inbox. Click here for happy ending.

Sorting Problem with Displaytag and Struts2

2007-09-03 Thread Marc Eckart
Hi, I use Displaytag and want to use the sorting capability. So I configured the displaytag to go to a empty action, because my list is in the session - nothing should be loaded again, just using the existing search results. display:table uid=row name=searchResults pagesize=15 sort=list

Re: Struts and JNDI

2007-09-03 Thread Ray Clough
(Mary Poppins: 'Practically Perfect in Every Way') This is a complicated scenario, what with a private static final ThreadLocal in a class with a public constructor. Without coding it and tracing the ThreadLocal context, my guess is that the ThreadLocal is not being carried thru the various

RE: Can you specify the name of struts.xml for Struts2?

2007-09-03 Thread Lane, Ron
Should I open up a JIRA issue? Please explain how to do that and what it means. Thanks, Ron -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 5:00 PM To: 'Struts Users Mailing List' Subject: RE: Can you specify the name of struts.xml for

Formating dates and numbers

2007-09-03 Thread Marcos Mendonça
Hello How do I format dates and numbers with Struts2? I tried following this tutorial found on documentation but it didn't work. Could anyone point me to a working example or tell me how to do it. I did not want to have to create methods to format dates and numbers in my action.

Re: [S2] Wildcard action name that includes slashes?

2007-09-03 Thread Don Brown
Use two astrisks - '**' Don On 9/4/07, Neil Aggarwal [EMAIL PROTECTED] wrote: Hello: In my struts.xml, I have this property: constant name=struts.enable.SlashesInActionNames value=true/ At the very end of my actions, I have this one: action name=* class=page.NavUtil result

Re: Can you specify the name of struts.xml for Struts2?

2007-09-03 Thread Don Brown
Yes, the way to specify the location is the 'config' parameter in web.xml, however, it will try to load the path from the classpath, not the webapp root. If you do specify it, it is recommended to add to the existing - 'struts-default.xml,struts-plugin.xml,struts.xml' - rather than replacing it,

Using checkboxes

2007-09-03 Thread Marcos Mendonça
Hello I'm trying to use checkboxes for a service/product selection. But following the documentation I wasn't able to set the value of each option. My code: s:iterator value=%{services.iterator} tr td s:checkbox label=%{name} name=name value=id//td /tr /s:iterator Resulting in input

What is the S2 equivalent

2007-09-03 Thread tom tom
Hi, In S2, how can we import a remote URL or file inside a JSP. JSTL I think we can use c:import, what is the S2 equivalent of that. Thanks, Ready for the edge of your seat? Check out tonight's top

Re: What is the S2 equivalent

2007-09-03 Thread Don Brown
Use the JSTL tag. The Struts 2 tags aren't meant to replace JSTL, but complement it in ways that are useful. There are several tags that do overlap with JSTL, such as the iterator tag, but they are kept mainly to keep backwards-compatibility. Don On 9/4/07, tom tom [EMAIL PROTECTED] wrote:

Re: What is the S2 equivalent

2007-09-03 Thread tom tom
Thanks, Yes I do agree with you, Reason for this question is still we have not mixed JSTL with S2, I thought can we get this going with S2 tags, it would have been cleaner. thanks --- Don Brown [EMAIL PROTECTED] wrote: Use the JSTL tag. The Struts 2 tags aren't meant to replace JSTL, but