Re: Can this be breaking security ?

2009-06-20 Thread Girish Naik
sorry its not possible to pick files from the clients machine as when a file is uploaded it (someone) creates a tmp file in 'work\Catalina\localhost\\upload__70e25ce7_121fcf971b2__7ff2_0003.tmp' hmm ... super. Regards, - Girish Naik Mob

Cannot retrieve mapping for action

2009-06-20 Thread Sam Wun
Dear all, I am a bit confused about generating mapping in the structs-config.xml file (with Xdoclet). Currently, I am getting this error: 15:55:47,890 INFO [PluginPackageUtil:1391] Finished checking for available updates in 2 ms 15:55:54,284 ERROR [PortletRequestDispatcherImpl:316] org.apa

Can this be breaking security ?

2009-06-20 Thread Girish Naik
Hi, i was just implementing file upload in struts 2.0. When the form with file is submitted, I can see the full path in the path property of file. Can it be possible for any one to get the path and look for any other file in that location of folder? Regards, -

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 Lebowitz - "Lif

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: javax.servlet.Servl

Re: Doubt with using check box

2009-06-20 Thread Girish Naik
You can look at *Map Backed ActionForms*Section 4.3.3 Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com P. J. O'Rourke

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 Youngman -

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 t

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 pi

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: This works as I want it to. My question is, if I want values for 'list' and 'value' coming from the action class then should the method for list be returning a hashMap? and value be returning a list? is that the only way?

confusion about s:select with multiple true

2009-06-20 Thread Bhaarat Sharma
I have been playing around with this sample code: This works as I want it to. My question is, if I want values for 'list' and 'value' coming from the action class then should the method for list be returning a hashMap? and value be returning a list? is that the only way?

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 To: Struts Users Mailing List Sent: Saturday, June 20, 2009 8:35:50 PM Subject: Re: Custom validation interceptor Peter Bliznak wrote: > It is across entire app (

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 p

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 l

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: Just FYI, the "escape" attribute is a boolean (true/false). I forget when 's "escapeAmp" property was added--knowing what version of S2 you're using would be a helpful diagnostic. Dave --

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 e

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: On Sat, Jun 20, 2009 at 7:25 PM, Bhaarat Sharma wrote: > 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 acc

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 wrote: > Hi, > I have following requirement: > If

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 wrote: > Hello, > > I am using param tag inside s:url tag like the following

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 "> hshid is int sSN is string However, in the final URL the two parameters are separated by & This should not be there. Does anyone know how to avoid &?

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 appreciatedPeter.

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 er

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 por

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: and I have created this application.properties in the followiong path: # pwd /usr/liferay-portal-5.2.3/dev/portlets/online-payment/docroot/WEB-INF/classes/resources On Sun

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 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 Carlin - "

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 Newton wrote: > Did you remove the configurations from the web.xml

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 uri="http://struts.apache

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 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 /tags/struts-bean

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

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:

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 caus

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: 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. Now I am getting the values of selected as false in the Action. Even though I have selected it. I am us

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