[compound form bean] copy properties problem

2006-05-15 Thread Michal Ostruszka
Hi all, In my application I have an ActionForm which contains some simple properties of types: String, int, boolean, but also contains another bean, and indexed property (as follows) ChartForm: - String name; - SeriesBean[] series; - MarkerBean marker; All the properties in all beans have

problem with using Tag and Scriplets together

2006-05-15 Thread J Gotsch
Any idea how I can set a local JSP variable with the value of a bean property in a JSP? In the example below, I want to set tempRole to the value of the securityRoleName prperty. But This is not working. % String tempRole = null; % logic:present name=securityRoleTO

Validation Bug 29151

2006-05-15 Thread Vinit Sharma
Hi, Can some one please elaborate the resolution on bug 29151 in Validator 1.2.0: http://issues.apache.org/bugzilla/show_bug.cgi?id=29151 I'm pretty much confused with what Don has mentioned in para 1 and para 2. I think instead of mentioning While I'm not convinced that is a good idea for most

Re: Conditional Statements (if/else) Using logic tag

2006-05-15 Thread Jorge Martín Cuervo
Filter the List before sent to jsp, can you do it? or you must do it in jsp? you can implement your own custom tag extending iterate. Other solution is to define a variable in jsp with c:set when you found and item, and only print when variable isn't set or false. Take a look to jstl common

Re: problem with using Tag and Scriplets together

2006-05-15 Thread Jorge Martín Cuervo
You can't mix jsp and scriptlet those manner. Scriptlet generates the output, and the output can't modify the scriptlet code. Instead of using scriptlets try to use c:set tag from jstl library. El lun, 15 de 05 de 2006 a las 09:04, J Gotsch escribió: Any idea how I can set a local JSP

Re: Browser Back Button

2006-05-15 Thread Lixin Chu
A cleaner back button solution is almost a must-have for logout: after logout, the back button should not bring back the previous page. looking at that Gmail does. any idea how it is implemented ?

Class diagrams in an Struts application

2006-05-15 Thread Vaneet Sharma
Hii Frnds I ahve developed a application using Struts and EJB, Now i need to create class daigrams of my projrect. Can somebody clear some doubts In class diagrams do we incl;ude action classes, form beans classes ,helper classes, (EJB classes) ? Disclaimer : This message and any

Re: Browser Back Button

2006-05-15 Thread Manfred Wolff
Lixin. I think mostly it is no problem to go back in a struts implemented application. If it ist a problem (e.g. after a logout or if you saved data) you can take the struts token mechanism to prevend such backs. Manfred Lixin Chu wrote: A cleaner back button solution is almost a must-have

Indexed Properties

2006-05-15 Thread Vidya \(Suvarna\) Mahavadi
Hi everyone! I am having problem to use indexed properties. I need to display a table with the list of transactions and a check box next to each transaction which can add the transaction amount to a text field. In my action form I have a list of displayObjects and the displayObject is like

RE: Indexed Properties

2006-05-15 Thread Vidya \(Suvarna\) Mahavadi
I wonder why there are no responses today.. Guys, I really need help on this.. Any expert views? -Original Message- From: Vidya (Suvarna) Mahavadi [mailto:[EMAIL PROTECTED] Sent: Monday 15 May 2006 11:42 To: Struts Users Mailing List Subject: Indexed Properties Hi everyone! I am

getting datas from another session

2006-05-15 Thread Andreas . Hartmann
Hello! I have an application, which uses session-id's handled by URL-rewriting in a loginfilter, which checks for an existing session user object. The user has the choice to open a new window of the application, which must get a new session-id. If the user opens this new window, there should

format/format key in bean:write

2006-05-15 Thread Vidya \(Suvarna\) Mahavadi
Hi, Need some info.. How do we specify the values for the attributes format and format key in bean:write? Thanks, Vidya This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Discovery

RE: Indexed Properties

2006-05-15 Thread I HARIKRISHNA
Ad you have a list of checkboxes,its better to use multi box and try to reduce javascript code Harikrishna Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] wrote: I wonder why there are no responses today.. Guys, I really need help on this.. Any expert views? -Original Message- From:

two forms on the same page?

2006-05-15 Thread Franklin Phan
I am working with a page that has essentially two forms. Top form is search criteria, a table with three text input boxes and a submit button. Upon getting results from searching, the bottom table appears. The bottom table is where I like it to be a second form because that's where users

Re: Browser Back Button

2006-05-15 Thread temp temp
Can U suggets me an article which clearly explains using struts tokens mechanisim? Manfred Wolff [EMAIL PROTECTED] wrote: Lixin. I think mostly it is no problem to go back in a struts implemented application. If it ist a problem (e.g. after a logout or if you saved data) you can take the

Re: Conditional Statements (if/else) Using logic tag

2006-05-15 Thread Dave Newton
J Gotsch wrote: I guess my problem is larger than using an if/else statement. This much is certainly true ;) I figured how to do that, but I'm iterating over a List in the JSP, and want to be able to exit the loop whenever certain item exist. I don't suppose there's a way to do that, is

How to dertermine the url from which a request is made ?

2006-05-15 Thread temp temp
The method request.getServletPath returns current request uri.Can I get the previous request uri .ie I have a filter which is mapped to all .do's .So any .do is called this filter is invoked.In this filter I can retrieve the requested url. Is there any way I can determine url from which

Re: How to dertermine the url from which a request is made ?

2006-05-15 Thread Ed Griebel
You can check the referer field in the request, notice that the actual field name is misspelled. Also, the field is optional and browser-dependent if it's sent (but most/all modern browsers will send it), and a user could spoof this field as well. You may be better off putting the current URL in

Re: [shale] clay jsfid=void

2006-05-15 Thread Ryan Wynn
Try the following: p jsfid=void allowBody=falseRemove Me/p Hey Gary, Soon after I created this email I noticed I had an unmatched /span tag. After I corrected this the void component worked properly. Is there any support to report on non well-formed templates? Thanks, Ryan

Set selected item to html:select

2006-05-15 Thread Yariel Ramos Moreno
Hi everybody: How can I set the selected value to html:select??? My problem is that I have a html:select field in my site (using struts-tiles) that remains functional in every page of it. When I submit the form that contains it (in it's tile), the selected value is loaded from the ActionForm

RE: Automatic bean introspection in jsp form

2006-05-15 Thread Williams, Kevin C
Is it possible that I can use JSTL to solve this problem? -Original Message- From: Williams, Kevin C Sent: Friday, May 12, 2006 6:27 PM To: user@struts.apache.org Subject: Automatic bean introspection in jsp form Forgive me if this is simple but so far I haven't figured out

Re: How to dertermine the url from which a request is made ?

2006-05-15 Thread Hassan Schroeder
On 5/15/06, temp temp [EMAIL PROTECTED] wrote: The method request.getServletPath returns current request uri.Can I get the previous request uri .ie I have a filter which is mapped to all .do's .So any .do is called this filter is invoked.In this filter I can retrieve the requested url.

today in Silicon Valley

2006-05-15 Thread netsql
http://www.baychi.org/bof/java/20060515 This is today. I'll be there, you can say hi. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Browser Back Button

2006-05-15 Thread Manfred Wolff
Found at http://husted.com/struts/catalog.html Use the Action Token methods to prevent duplicate submits There are methods built into the Struts action to generate one-use tokens. A token is placed in the session when a form is populated and also into the HTML form as a hidden

Re: Automatic bean introspection in jsp form

2006-05-15 Thread Dave Newton
Williams, Kevin C wrote: Is it possible that I can use JSTL to solve this problem? JSTL? Don't really see how. You basically need to be able to generate HTML from an introspected bean, correct? Personally I'd skip doing this w/ Struts. Barring that, I'd write custom tags to do this (if I

What am I missing here?

2006-05-15 Thread Larry Meadors
OK, I did this tutorial thing that was like webwork for struts devs. Then last week, a friend of mine did a little load test with it. We discovered that when I use this code on a form: === w:form action=employee.action?action=save theme=xhtml w:hidden name=employee.employeeId/

Re: [shale] clay jsfid=void

2006-05-15 Thread Gary VanMatre
From: Ryan Wynn [EMAIL PROTECTED] Try the following: p jsfid=void allowBody=falseRemove Me/p Hey Gary, Soon after I created this email I noticed I had an unmatched /span tag. After I corrected this the void component worked properly. Is there any support to report on non

Re: What am I missing here?

2006-05-15 Thread Jerome Gagner
I saw very similar results: This is on a Dual Core Intel iMac, running Resin. The command is ab -c 50 -n 1000 (Do 1000 requests 50 at a time) and the DAO is in memory (hashmap essentially). Two separate pages, but doing the exact same operations: But this time, not with JSTL, but with Quercus

Wrapper cannot find servlet class

2006-05-15 Thread M Faizal
Hi, I am using struts 1.2.9 with tomcat 4.1.27..and Jbuilder X i have just one jsp in my root context and my web.xml has configured like below servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param