struts2 form validation theme cann't work with IE6.0?

2009-06-24 Thread FreshAir
Hi, I was trying to use struts2 (2.1.6)validation in my web project. When I used code like: s:form theme=css_xhtml validate=true in jsp, it works fine in firefox. However, when validation(client side) failed, the IE prompt a dialog, saying An exception occurred: Error wrong attribute. Is it this

Re: Update to Struts 2.1.7

2009-06-24 Thread Pro1712
You are right! 'name=*' is not necessary but it also does not cause any problems... I will remove it! But that's not my problem! What I forgot to mention in my first post is that I use dynamic method invocation and pass the param e.g. method:input to the action. Sorry for this...

RE: struts2 form validation theme cann't work with IE6.0?

2009-06-24 Thread Vishnu Vyasan Nelliparmbil
Not sure, But check whether the Javascript is enabled in IE. -Original Message- From: FreshAir [mailto:lichen...@yahoo.com.cn] Sent: 24 June 2009 11:52 To: user@struts.apache.org Subject: struts2 form validation theme cann't work with IE6.0? Hi, I was trying to use struts2

RE: struts2 form validation theme cann't work with IE6.0?

2009-06-24 Thread FreshAir
vishnu.vyasan wrote: Not sure, But check whether the Javascript is enabled in IE. -Original Message- From: FreshAir [mailto:lichen...@yahoo.com.cn] Sent: 24 June 2009 11:52 To: user@struts.apache.org Subject: struts2 form validation theme cann't work with IE6.0?

Reg: XHTML Theme's Control Footer Reference

2009-06-24 Thread Sathish Kumar
Hi, In struts 2 applications, we used to cover the HTML controls using themes ( like text input, combo box etc ), This will add some *wrappers *around the controls that will be used to display label, validation messages etc.. In the XHTML theme ( Folder: template/xhtml ) these wrappers will be

Help on struts1 plugin

2009-06-24 Thread Abhijeet.Gohil
Hi, I am trying to integrate action and form beans written in struts1 with struts 2.1.6. I would like to know how to configure struts.xml to provide the method name to be invoked. I am using DispatchAction. Can i use something like method as a child of the action tag and provide a request

Struts2 - validation

2009-06-24 Thread Kishan G. Chellap Paandy
Hi Folks, I'm populating a list in my action class, which will be used in the JSP for populating a s:select/ tag. Now, I'm submitting the form, where I'm doing validation (server side validation) thru validation.xml. And this throws some action/field errors and the same JSP page is rendered

Struts2/Javascript: Action class cannot get property from jsp

2009-06-24 Thread Mirko
Hi all, I'm new to Struts and struggling with Struts2/Javascript. I have a jsp website with a search form (textfield and submit button). Submitting the button calls the Struts action SearchAction. SearchAction gets the property searchInput from the jsp website and does something with it.

Re: Update to Struts 2.1.7

2009-06-24 Thread Wes Wannemacher
On Wed, Jun 24, 2009 at 4:53 AM, Pro1712pro1...@yahoo.de wrote: But that's not my problem! What I forgot to mention in my first post is that I use dynamic method invocation and pass the param e.g. method:input to the action. Sorry for this... No problem, but I was wondering how you knew

Re: Struts2 - validation

2009-06-24 Thread Greg Lindholm
This question gets asked about once a week on this list ;) http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html On Wed, Jun 24, 2009 at 9:07 AM, Kishan G. Chellap Paandy kishanchellapaand...@spanservices.com wrote: Hi Folks, I'm populating a list in

struts2 - url parameters - oc4j

2009-06-24 Thread jill juneja
In the crud app I am having problem with s:url paramter. url parameters are not being passed. URL in browser shows the parameters. http://149.10.178.12:8990/crud/crud!input.action?employee.employeeId=1 but But employee or employee.employeeId is null is the action object. After doing lots of

Re: Struts2/Javascript: Action class cannot get property from jsp

2009-06-24 Thread Dave Newton
Mirko wrote: Hi all, I'm new to Struts and struggling with Struts2/Javascript. I have a jsp website with a search form (textfield and submit button). Submitting the button calls the Struts action SearchAction. SearchAction gets the property searchInput from the jsp website and does something

Re: Struts2/Javascript: Action class cannot get property from jsp

2009-06-24 Thread Mirko
Thanks Dave, ok I did that and got it working. Although it's not clear to me why my first attempt doesn't work. I read about the built-in ajax features. Not sure if they are approriate for my needs. Have to go into that more thoroughly, later. Regards, Mirko Am 24.06.2009 um 15:44

Generating Dynamic radio button list

2009-06-24 Thread BlackKnight
Hi, I am trying to generate a dynamic raido buttom list using s:radio name=%{optionname} list=%{optionvalue} / where optionvalue is stored in database equal #{'Faculty':'FacultyBR','Staff':'StaffBR','Resident':'ResidentBR','Intern':'InternBR'} however struts2 doesn't generate the radio button

Re: Error when deploying portlets beside a normal Struts2 web app?

2009-06-24 Thread phillips1021
I added to the Jira bug report another example application that demonstrates the problem. The example application is a simple Struts 2 (using 2.1.6) application that has both normal actions and Portlet actions. You can also download this example application (an archive of an Eclipse Dynamic Web

Re: Generating Dynamic radio button list

2009-06-24 Thread Jim Kiley
You need to provide Struts with an actual List (or Set or the like). It looks like you are providing a single String. You will need to parse that String out into a List of Strings in order for s:radio to treat it as a List. jk 2009/6/24 BlackKnight ar3...@gmail.com Hi, I am trying to

Step to Validate Drop Down List Struts 2.1.6

2009-06-24 Thread Yanto
Hi All, any one here have implement successfully validator for Drop Down List ? we've try to validate our Drop Down list using validation.xml, so far no luck. after we populate the list in prepare method and the select the list, however the validation always asume we do not select any value, and

Client-side and server-side struts validation

2009-06-24 Thread Greg Allen
Is there a way to make the client-side struts validation behave like the server-side validation? Specifically I would like the client-side validation to put error messages in the html:messages or html:errors tags rather than using alert boxes. Is this possible? I haven't been able to find

Re: Step to Validate Drop Down List Struts 2.1.6

2009-06-24 Thread Dave Newton
Yanto wrote: any one here have implement successfully validator for Drop Down List ? we've try to validate our Drop Down list using validation.xml, so far no luck. Yes. How to do it, of course, depends on details. Dave - To

Re: Update to Struts 2.1.7

2009-06-24 Thread musomesa
Are you saying you have a method called input() in the action or is it that you are getting a result code input which would imply a validation error? -Original Message- From: Pro1712 pro1...@yahoo.de To: user@struts.apache.org Sent: Tue, Jun 23, 2009 9:34 am Subject: Update to

Re: Struts2 static content

2009-06-24 Thread musomesa
I would think this is even more expensive that just doling out static content from Tomcat as Struts 2 is also creating a whole bunch of objects for the request cycle. Chris -Original Message- From: Wes Wannemacher w...@wantii.com To: Struts Users Mailing List

Cannot find bean in scope

2009-06-24 Thread Sam Wun
Hi, Can anyone help me please? I got this errors: 12:42:04,269 INFO [PluginPackageUtil:1391] Finished checking for available updates in 3 ms 12:42:14,020 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:

Re: Step to Validate Drop Down List Struts 2.1.6

2009-06-24 Thread Yanto
Hi Dave, actually we already follow the suggestion from the forum as below : 1. Call the Login Action 2. we are loading the dropdown values using prepare method otherwise dropdowns values not populated . Because prepare interceptor before the validation interceptor. 3.validation.xml followed the

Pre setAttribute for a form

2009-06-24 Thread Sam Wun
Hi, I noticed the setAttribute() method is called too late in one of my Action class: import javax.portlet.PortletConfig; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import

Re: Pre setAttribute for a form

2009-06-24 Thread Nils-Helge Garli Hegvik
Haven't looked very deeply into it, but could it be that you're setting the attribute in the action phase, and trying to access it in the render phase? That won't work. In that case, you have to set it as a session attribute, or set some kind of id as a render parameter and re-fetch the object in

Re: Pre setAttribute for a form

2009-06-24 Thread Sam Wun
How to do that with session? I am currently setting it in the execute() and render method with the following code: req.setAttribute(RedirectHelpForm, redirectHelpForm); but this is for request rather than session? Thanks for the suggesion. sam On Thu, Jun 25, 2009 at 3:09 PM, Nils-Helge Garli

Re: Pre setAttribute for a form

2009-06-24 Thread Nils-Helge Garli Hegvik
Did you try request.getSession().setAttribute(RedirectHelpForm, redirectHelpForm)? Nils-H On Thu, Jun 25, 2009 at 7:14 AM, Sam Wunswun2...@gmail.com wrote: How to do that with session? I am currently setting it in the execute() and render method with the following code: