RE: Newbie having trouble with validation... doesn't seem to do anything...

2007-01-02 Thread Raghu
below code can be used to get message from different applicatyion resource files. -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 03, 2007 4:03 AM To: user@struts.apache.org Subject: Re: Newbie having trouble with validation... doesn't seem to d

RE: Performance issue

2007-01-02 Thread Raghu
You need to set the collection to actionform every time when page loads if there are many actionforms in request scope. If the actionform is in session then it is required to set the collection when page loads. It depends on how your application is designed in terms of actionforma and their prop

Re: InvalidCancelException

2007-01-02 Thread Niall Pemberton
Is tiles using an action to render the view - looks that way from the stack trace. Niall On 12/28/06, Hehl, Thomas <[EMAIL PROTECTED]> wrote: We just upgraded to struts 1.2.9 and started getting this message when I pressed the cancel button. I fixed it once before, but it's popped up on anothe

Re: How to reduce redundant form code in JSPs?

2007-01-02 Thread Martin Gainty
gets the job done.. Alternatives? M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, propr

Re: How to reduce redundant form code in JSPs?

2007-01-02 Thread Leon Rosenberg
scriptlets aren't we considering scriptlets evil? :-) Leon On 1/2/07, Martin Gainty <[EMAIL PROTECTED]> wrote: conceptually you could pull bean:message key and input type when previously populating Bean properties using the example of LabelValueBean <%@ page import="java.util

Re: Max length of String - report in a single string for display

2007-01-02 Thread Leon Rosenberg
Hello Sharon, Now, after I understand your environment better, there are several opportunities to mention. First of all we can consider your network connection between HOST and EJB many times faster than the connection between CLIENT (browser) and HOST. Further lets assume that the amount of data

Re: returning error from action page to jsp

2007-01-02 Thread Laurie Harper
Meenakshi j wrote: Hello, Can someone tell me, in case a null value, how I can use ActionErrors to return an error to a jsp page and show a pop up to a user describing the error? To send the error from your action: public String execute( HttpServletRequest request,

Re: How to reduce redundant form code in JSPs?

2007-01-02 Thread Martin Gainty
conceptually you could pull bean:message key and input type when previously populating Bean properties using the example of LabelValueBean <%@ page import="java.util.*"%> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <

Re: Validate forms

2007-01-02 Thread Laurie Harper
LIM Adam wrote: Hi y'all and Happy New Year! This is my problem: I have a form which includes another form. When the included one is not filled correctly, errors are not displayed in the JSP related to the parent form but in the JSP related to the inner form. I want them to be displayed in the

Re: Problem with encoding

2007-01-02 Thread Laurie Harper
Mike Baroukh wrote: Hi. I have a problem with accents. My project is entirely in utf-8 : jsps, java sources, resources properties Depending on the way I put accents in my jsp, it works or not : work : - directly in the jsp source - with s:property -> converted with à by freemarker. -

Re: How to reduce redundant form code in JSPs?

2007-01-02 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Hi, My application consists of several forms, all following a common style. Each form is rendered using a table. This results in the following code for each field: The only variations are the name of the field ("xxx" in the snippet) as well as the field

Re: Newbie having trouble with validation... doesn't seem to do anything...

2007-01-02 Thread Laurie Harper
Do you get any output if you include a html:errors tag somewhere without a 'properties' attribute? It could be that the unconventional property naming is messing things up. Can you display message resources using bean:message? For example, do you get what you expect if you include property="se

Re: Problem with Tiles an ActionForms

2007-01-02 Thread Laurie Harper
I don't know why setting validate=true would change how Tiles constructs the page, but a couple of observations which might help: - your action mapping doesn't have an 'input' attribute defined to tell Struts what to display if validation fails - your form bean extends ActionForm, not Validat

RE: Max length of String - report in a single string for display

2007-01-02 Thread Sharon Jolly
Hi, Thank for the quick response. I do retrieve and cache the report in chunks before i put it into the request scope as string. But i do not have control over the amount of data that i would retrieve from the host for the report. If may be few bytes or may be 1GB, how do you think that i a St

returning error from action page to jsp

2007-01-02 Thread Meenakshi j
Hello, Can someone tell me, in case a null value, how I can use ActionErrors to return an error to a jsp page and show a pop up to a user describing the error? Thanks in advance for your help. MJ __ Do You Yahoo!? Tired of spam? Yahoo! Mail

Re: Validator error what does this mean?

2007-01-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Hehl, Thomas wrote: > I'm still pretty new to struts and am taking over an app from a previous > developer. I have added some validation and got the following error: > > ValidWhen Error for field ' additionalInfo' - line 1:18: unexpected toke

Re: Performance issue

2007-01-02 Thread Leon Rosenberg
u welcome :-) L On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: Thanks Leon!!!, I got it!!! 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: > > On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > > Thanks > > > > Leon, about using the servlet context, I read that on a distri

Re: Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
Thanks Leon!!!, I got it!!! 2007/1/2, Leon Rosenberg <[EMAIL PROTECTED]>: On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Thanks > > Leon, about using the servlet context, I read that on a distributed > application the share information of the servlet context is not entererly > gl

Re: Performance issue

2007-01-02 Thread Leon Rosenberg
On 1/2/07, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: Thanks Leon, about using the servlet context, I read that on a distributed application the share information of the servlet context is not entererly global right?: Right, but since the data is readonly its ok to have a copy per webser

How to reduce redundant form code in JSPs?

2007-01-02 Thread uni
Hi, My application consists of several forms, all following a common style. Each form is rendered using a table. This results in the following code for each field: The only variations are the name of the field ("xxx" in the snippet) as well as the field type (in most cases html:t

Re: Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
Thanks Leon, about using the servlet context, I read that on a distributed application the share information of the servlet context is not entererly global right?: *"...In the case of a web application marked "distributed" in its deployment descriptor, there will be one context instance for each

Re: struts/hibernate/tomcat question

2007-01-02 Thread uni
Hi Rick, I am using a utility class as proposed in the book "Hibernate in Action". The session and the transaction is stored in a ThreadLocal. The utility class itself has the following methods: - getSession / closeSession - beginTransaction / commitTransaction / rollbackTransaction In your action

Validator error what does this mean?

2007-01-02 Thread Hehl, Thomas
Hey! I'm still pretty new to struts and am taking over an app from a previous developer. I have added some validation and got the following error: ValidWhen Error for field ' additionalInfo' - line 1:18: unexpected token: ) Here is the code from Validator-defaults.xml

struts/hibernate/tomcat question

2007-01-02 Thread Rick Schumeyer
The examples I have seen (in S1) for using hibernate with struts involve using a plugin which creates a hibernate sessionFactory and stores it in session context. Each Action then retrieves the sessionFactory from the session and passes it to a model bean. It is my understanding that if I wer

Re: Max length of String - report in a single string for display

2007-01-02 Thread Leon Rosenberg
What about retrieving and storing byte chunks? This way you don't have to copy the data and its easier to write out the chunks one-by-one for the outputstream too, since writing out a huge string is kindof messy for the performance. However it doesn't matter for the vm whether you store the data i

Re: Performance issue

2007-01-02 Thread Leon Rosenberg
The easiest way is to initialize the data once in the init(ServletConfig) method of the servlet and put them into the application scope (servletcontext). The struts tags will be able to access the data directly, so you don't need to change a bit. Of course the data structures theirself must be thr

Re: Problem with encoding

2007-01-02 Thread Tom Schneider
Does it have anything to do with HTML escaping? There is no way to turn off html escaping in the s:text tag. (I probably should file a bug) I didn't see anything for textfield--I'm not sure what the escaping behavior is. What shows up on the screen in the non-working case, escaped HTML or noth

Re: preInvokeJS does not work for tag

2007-01-02 Thread Musachy Barroso
What version are you using? using head svn , I modified showcase's remote link first example to this: targets="t1,t2" notifyTopics="/after" preInvokeJS="alert('test')">Update 'Div 1' and 'Div 2', publish topic '/after', use indicator and it shows "test". "preInvokeJS" is deprecated. I

Max length of String - report in a single string for display

2007-01-02 Thread Sharon Jolly
Hi, I am currently working on a struts based web application which interacts with legacy systems to retrieve data for display and update. There is one scenario in my application where the ejb layer makes multiple host calls to the legacy system to retrieve data for a report. I was handling thi

Re: using 1.2.4 and s2 together

2007-01-02 Thread Jon Wilmoth
I'm using 1.2.9 w/ 2.0.1 beta successfully. You may also want to check out http://struts.apache.org/2.x/docs/migration-strategies.html - Original Message From: "Asthana, Rahul" <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Tuesday, January 2, 2007 10:06:46 AM Subject: using 1.2.4

using 1.2.4 and s2 together

2007-01-02 Thread Asthana, Rahul
Hi All, We have a fairly large application, with about 500 actions.We have a release every 6 months in which about 50 actions get added. We are currently on ver 1.2.4 but want to use S2.Is it possible and feasible to use s2 only for the new actions that get added(probably use a new extension?)?

RE: Performance issue

2007-01-02 Thread Asthana, Rahul
Assuming the lists are user dependent.. 1)You should run some profiling and load tests.There may be no performance issue in the first place. 2)Keep the actual content of the lists in application scope and only the ids in session.Lets say you have to show {"New York","London",Toronto"}; keep an in

Fwd: Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
-- Forwarded message -- From: Daniel Chacón Sánchez <[EMAIL PROTECTED]> Date: 02-ene-2007 11:52 Subject: Re: Performance issue To: Struts Users Mailing List Hi Mike, the list are not user-dependant, I load those list from the database, and are the same for all users, but how can

Re: Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
Hi Mike, the list are not user-dependant, I load those list from the database, and are the same for all users, but how can I put then on the application context?? 2007/1/2, Mike Baroukh <[EMAIL PROTECTED]>: If those lists are not user-dependant, you can put them in application context. This wa

Re: Performance issue

2007-01-02 Thread Mike Baroukh
If those lists are not user-dependant, you can put them in application context. This way, they will be shared by all your users. If they are user-dependant, I think I would have done a bean that provides properties that get data from db on the fly. Of course, if an error occur, it will be in

Performance issue

2007-01-02 Thread Daniel Chacón Sánchez
Hi all, I'm using struts framework on my application, but I have a perfomance question. When my application starts I load objects in session that may or may not will be used (depends on what the user does), for example I load the health centers, hospitals, countries, etc, that will be available

Problem with encoding

2007-01-02 Thread Mike Baroukh
Hi. I have a problem with accents. My project is entirely in utf-8 : jsps, java sources, resources properties Depending on the way I put accents in my jsp, it works or not : work : - directly in the jsp source - with s:property -> converted with à by freemarker. - in input box of s:te

preInvokeJS does not work for tag

2007-01-02 Thread Célio Cidral Junior
Hi, The preInvokeJS attribute does not work for the tag as described in the example from . That feature seems to be originated from the issue . Below is a snippet of my source JSP code. The anch

RE: [ANN] Java Web Parts 1.0 (GA) is now available

2007-01-02 Thread Martin Gainty
Good Morning Frank 3 items for suggestion box suggest ant javawebparts/WEB-INF/src/build.xml doesnt seem to include dependencies e.g suggest placing target to build war file target suggest bin distro to have some samples.war already packaged much like struts Also what are the implications f

Re: links and samples of struts

2007-01-02 Thread oughlad
thk u very much -- View this message in context: http://www.nabble.com/links-and-samples-of-struts-tf2907353.html#a8125642 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTEC

Re: links and samples of struts

2007-01-02 Thread Ted Husted
Please only post links to the autoexport version, not directly to the wiki site. * http://struts.apache.org/2.x/docs/home.html -Ted. On 1/2/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: You can start here: http://cwiki.apache.org/confluence/display/WW/Home musachy oughlad wrote: > hi all;

Re: links and samples of struts

2007-01-02 Thread Musachy Barroso
You can start here: http://cwiki.apache.org/confluence/display/WW/Home musachy oughlad wrote: hi all; i m new in developping with struts framfork, and to understand i need some links,tuto and examples of application that work with struts, thks u in advance ---

Re: links and samples of struts

2007-01-02 Thread Martin Gainty
Have a Look at struts showcase http://localhost:8080/struts2-showcase-2.0.1/showcase.action Anyone else? M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which

Best practive for request attributes with validation?

2007-01-02 Thread uni
Happy new year to everyone! In my application, I'm putting some attributes into the request that are used by the JSP. The approach works fine, but when I have a form and the validation fails, the input JSP is redisplayed but lacking the former request attributes. My current workaround is to put th

links and samples of struts

2007-01-02 Thread oughlad
hi all; i m new in developping with struts framfork, and to understand i need some links,tuto and examples of application that work with struts, thks u in advance -- View this message in context: http://www.nabble.com/links-and-samples-of-struts-tf2907353.html#a8122569 Sent from the Struts - Use

Validate forms

2007-01-02 Thread LIM Adam
Hi y'all and Happy New Year! This is my problem: I have a form which includes another form. When the included one is not filled correctly, errors are not displayed in the JSP related to the parent form but in the JSP related to the inner form. I want them to be displayed in the main page. Has