Re: REPOST: Internationalized messages for pure JavaScript client side validations

2006-12-09 Thread Paul Benedict
Tarek, The Struts framework should be using the locale of the user. If you want to grab a certain language, have you set the locale first? Paul Chris Pratt wrote: Seems to me that if it returned a key instead of a message that you could use to retrieve the appropriate internationalized mess

Re: struts action servlet interaction with jsp files

2006-12-09 Thread Rick Schumeyer
Can I ask, what is the reason for avoiding the Struts tags and using the JSTL tags? (It begs the question, what is the purpose of the struts tags?) Wendy Smoak wrote: On 12/9/06, Fabio Miranda Hamburger <[EMAIL PROTECTED]> wrote: How can I 'send' this array from fooBarStrutsAction.java, and

Re: struts action servlet interaction with jsp files

2006-12-09 Thread Wendy Smoak
On 12/9/06, Fabio Miranda Hamburger <[EMAIL PROTECTED]> wrote: How can I 'send' this array from fooBarStrutsAction.java, and its method: public ActionForward execute(...) TO a jsp file, let's say display.jsp? and by the way, how to access that array within the JSP file. I think I am missing a c

Re: datasource creation problem?

2006-12-09 Thread Chris Pratt
I believe the proper classname is org.apache.commons.dbcp.BasicDataSource (*Chris*) On 12/4/06, Mallik <[EMAIL PROTECTED]> wrote: Hi Friend How to add jar files to path in Exadel stuio? Ur's Mallik Venkata Phani Kumar wrote: > > Hi mallik, > just try by adding commons-dbcp.jar to build pa

Re: REPOST: Internationalized messages for pure JavaScript client side validations

2006-12-09 Thread Chris Pratt
Seems to me that if it returned a key instead of a message that you could use to retrieve the appropriate internationalized message cooresponding to the error. (*Chris*) On 12/4/06, Tarek Nabil <[EMAIL PROTECTED]> wrote: -Original Message- From: Tarek Nabil Sent: Wednesday, November

struts action servlet interaction with jsp files

2006-12-09 Thread Fabio Miranda Hamburger
Hello, I am migrating some PHP application to struts to take advantage of MVC. Check this situation: I have a struts action in fooBarStrutsAction.java. After a request, this action perform a database transaction and arrange the final result in an array. Now I want to display this array in a

Tiles inclusion of action *.do

2006-12-09 Thread Joseph McGranaghan
Stupid question I'm sure, but how do you have a tiles-def that inserts an action? I'm getting "stream closed" exceptions in tomcat 5.0.28 I need to do this: The reason is that so my Action class can get some db stuff to put into the request and then show my view.

Action maps back to same page...best way to reset ActionForm?

2006-12-09 Thread Rick Schumeyer
I have jsp containing a form to add employees. This submits to an action that adds the new employee to the database, and then forwards back to the add employee page so that more employees can be added. Currently, when I get back to the jsp the ActionForm still contains the original data, but

Re: getting formbean properties in Action class

2006-12-09 Thread Chris Pratt
At that level there really isn't an advantage. The advantage comes in when you use Struts' abiltity to traverse nested beans. In other words if you create an ActionForm that has some bean attributes you Struts will manage all that complexity for you. Maybe an example: public class DateBean {