Re: Doubt with using check box

2009-06-20 Thread Paweł Wielgus
Hi Vishnu, on the html page you will have a list of checkboxes with the same name selectedEmployees and a value of an employee identificator. In the action create settet setSelectedEmloyees(String[] selectedEmployees), then in execute You can access this table of employee identificators. Just as a

RE: Doubt with using check box

2009-06-20 Thread Vishnu Vyasan Nelliparmbil
Pawel , can you expalin with a example. I am totally new to struts. I tried with another way. Ie by adding a 'selected' field to the EmployeeBean. logic:iterate id=EmployeeBean name=EMPLOYEE scope=session tr td bean:write name= EmployeeBean property=employee_name //td td

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

2009-06-20 Thread phillips1021
Nils-H: I created a Jira Issue (WW-3164) and attached a sample app that you can use to duplicate the problem I'm encountering. Bruce Nils-Helge Garli wrote: It would be helpful if you could create a sample app and attach it to a JIRA issue. Then I'll have a look at it. Nils-H

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

2009-06-20 Thread phillips1021
Nils-H: I did some more trouble-shooting and think I may have found what is causing the problem. I noticed that the originator of this thread said his action was causing a jsp to render that included the s:form tag. My application's action that would cause the NullPointerException also was

File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
Dear all, Can anyone tell me what is wrong with the following errors: 00:05:59,378 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException: /html/portlet/onlinepayment_portlet/order.jsp(1,1) File /WEB-INF/tld/struts-bean.tld not found org.apache.jasper.JasperException:

RequestProcessor and contentType response header

2009-06-20 Thread Avlesh Singh
I am using Struts 1.2.7 I wrote a Filter which intercepts all requests and applies response headers (based on some external configuration) to it. All response headers applied in my Filter other than Content-Type were obeyed and sent to the client. Content-Type was always text/html. After a lot of

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Girish Naik
I would sugest you to remove the taglib configuration in ur web.xml. As it is matching the uri and trying to load from the local file. In my previous application i had given : %@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean % in my jsp header and taglib

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
thanks for the response. I moved the following taglib lines into the /** ***/ area in the jsp file, and the recompile/deploy with ant. It still give me the same errors. Here is the jsp file load the tld files: % /** %@ taglib uri=http://java.sun.com/portlet_2_0; prefix=portlet % %@ taglib

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Dave Newton
Did you remove the configurations from the web.xml file? Sam Wun wrote: Here is the jsp file load the tld files: % /** %@ taglib uri=http://java.sun.com/portlet_2_0; prefix=portlet % %@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean % %@ taglib

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
Yeah, it works after removed them all :) but what have happened? I just don't know why another project works wtih these lines here, may be there is some xml configuration difference. Thanks On Sun, Jun 21, 2009 at 1:41 AM, Dave Newtonnewton.d...@yahoo.com wrote: Did you remove the

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Girish Naik
as you dont have the files in WEB-INF can you remove the mapping in web.xml and run again? Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com George Carlinhttp://www.brainyquote.com/quotes/authors/g/george_carlin.html -

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
Hi, Thanks for the instruction. It works after removed the struts-bean lines in web.xml and the lines in jsp files. But now I can't display message from the struts tags as shown below: The message This is Order page!! is shown in my portlet page, the rest of struts tagged message are not shown.

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
I have already defined the following xml codes in the struts-config.xml file: message-resources parameter=resources.application null=true/message-resources plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Dave Newton
Did you un-comment the taglib directives? Sam Wun wrote: Hi, Thanks for the instruction. It works after removed the struts-bean lines in web.xml and the lines in jsp files. But now I can't display message from the struts tags as shown below: The message This is Order page!! is shown in my

Re: Input validation in Struts 2 and extrating the errors in jsp

2009-06-20 Thread Thomas Rene Vervik
Perfect, thanks both, it solve the issue :) Thomas Rene Vervik wrote: I manage to do input validation when I have one of the default themes selected (xhtml, css_xhtml, etc). But what if I dont want to use Freemarker, I want to build the whole HTML in my Jsp, how do I extract the error

Custom validation interceptor

2009-06-20 Thread Peter Bliznak
Hi,I have following requirement:If validation of the page fails 3 times in row - invalidate session and redirect to index page.Should I replace default validation interceptor in default stack with my own to achieve what I am after?I there any other way?Any hint would be greatly

using multiple param in s:url tag

2009-06-20 Thread Bhaarat Sharma
Hello, I am using param tag inside s:url tag like the following td class=nav s:url action=ActionEditSave method=input id=url s:param name=fmrTenant.sSN value=sSN/ s:param name=fmrTenant.hshid value=hshid/ /s:url a href=s:property

Re: using multiple param in s:url tag

2009-06-20 Thread Bhaarat Sharma
according to documentation...if I try to use escapeAmp property in my s:url tag then I get the following error... Attribute escapeAmp invalid for tag url according to TLD On Sat, Jun 20, 2009 at 7:16 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Hello, I am using param tag inside s:url tag

Re: Custom validation interceptor

2009-06-20 Thread Wes Wannemacher
I don't think a custom interceptor is required. You could probably get this done through hidden parameters or by storing attempts in the session or something. Do you have this req for one action or all actions in the app? On 6/20/09, Peter Bliznak bliz...@rogers.com wrote: Hi, I have following

Re: using multiple param in s:url tag

2009-06-20 Thread Bhaarat Sharma
nevermind..solved it. had to used 'escape' in s:property tag. like this: s:property value=#url escape=amp;/ On Sat, Jun 20, 2009 at 7:25 PM, Bhaarat Sharma bhaara...@gmail.com wrote: according to documentation...if I try to use escapeAmp property in my s:url tag then I get the following

Re: Custom validation interceptor

2009-06-20 Thread Dave Newton
Peter Bliznak wrote: I have following requirement: If validation of the page fails 3 times in row - invalidate session and redirect to index page. Should I replace default validation interceptor in default stack with my own to achieve what I am after? I there any other way? Is this across the

Re: using multiple param in s:url tag

2009-06-20 Thread Dave Newton
Bhaarat Sharma wrote: had to used 'escape' in s:property tag. like this: s:property value=#url escape=amp;/ Just FYI, the escape attribute is a boolean (true/false). I forget when s:url's escapeAmp property was added--knowing what version of S2 you're using would be a helpful diagnostic.

Re: Custom validation interceptor

2009-06-20 Thread Peter Bliznak
It is across entire app (there are many dozen of actions) - every single action has to have same behavior - 3 crosses go and try again. It's app for changing personal info on government issued documents - sorta wizard like thing. I can see how I can do it by keeping eye of parameters - but I am

Re: Custom validation interceptor

2009-06-20 Thread Dave Newton
Peter Bliznak wrote: It is across entire app (there are many dozen of actions) - every single action has to have same behavior - 3 crosses go and try again. It's app for changing personal info on government issued documents - sorta wizard like thing. I can see how I can do it by keeping eye of

Re: Custom validation interceptor

2009-06-20 Thread Peter Bliznak
Preciously!..what you said about changing form is exactly what I was thinking. From: Dave Newton newton.d...@yahoo.com To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, June 20, 2009 8:35:50 PM Subject: Re: Custom validation interceptor

confusion about s:select with multiple true

2009-06-20 Thread Bhaarat Sharma
I have been playing around with this sample code: s:select label=Months name=months headerKey=-1 headerValue=Select Month list=#{'01':'Jan', '02':'Feb'} value=#{'01','02'} multiple=true required=true/ This works as I want it to. My question is, if I want values for

Re: confusion about s:select with multiple true

2009-06-20 Thread Dave Newton
Bhaarat Sharma wrote: I have been playing around with this sample code: s:select label=Months name=months headerKey=-1 headerValue=Select Month list=#{'01':'Jan', '02':'Feb'} value=#{'01','02'} multiple=true required=true/ This works as I want it to. My question

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
Opps. I commented out the taglibs in a jsp file. Added back in, now got antoehr problem with the getters: 14:48:04,429 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: No getter method for property: ship

RE: Doubt with using check box

2009-06-20 Thread Vishnu Vyasan Nelliparmbil
Can anybody help me on this issue? -Original Message- From: Vishnu Vyasan Nelliparmbil [mailto:vis...@mun.gov.bh] Sent: 20 June 2009 13:21 To: Struts Users Mailing List Subject: RE: Doubt with using check box Pawel , can you expalin with a example. I am totally new to struts. I

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Girish Naik
can you change the bean id to something different than the property name. and check again. Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Henny Youngmanhttp://www.brainyquote.com/quotes/authors/h/henny_youngman.html -

Re: Doubt with using check box

2009-06-20 Thread Girish Naik
You can look at *Map Backed ActionForms*http://struts.apache.org/1.x/userGuide/building_controller.htmlSection 4.3.3 Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com P. J.

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Sam Wun
Hi, I changed the property match the get methods, eg. if a getter is getShippingAddress(), my property is ShippingAddress. but it still complained ShippingAddress has no getter method: 3:20,454 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException:

Re: File /WEB-INF/tld/struts-bean.tld not found

2009-06-20 Thread Girish Naik
If your getter is 'getShippingAddress()' then your property will be 'shippingAddress' . Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Fran Lebowitzhttp://www.brainyquote.com/quotes/authors/f/fran_lebowitz.html - Life