is it possible to define a validation that runs only server side or client side (validation.xml )

2004-03-25 Thread Seyhan BASMACI \(Internet Yazilimlari Yetkilisi\)
I have a LoginForm form extends ValidatorForm and I want to decide a validaton runs only on the server or client side, (or both ) is there any way to do this_? form name=LoginForm field property=userno depends=required arg0 key=caption.wusernono/ /field /form

custom tag called with bean properties as attributes

2004-03-25 Thread Kransen, J.
Hello, I'm trying to iterate through a collection of beans and call a custom tag for each bean. logic:iterate id=dezeSchaal name=%=Risc.BEREKENING% property=profielSchalen / risc:staaf schaal_nummer=bean:write name=dezeSchaal property=schaalNummer/

Re: is it possible to define a validation that runs only server side or client side (validation.xml )

2004-03-25 Thread ruben
Seyhan BASMACI (Internet Yazilimlari Yetkilisi) wrote: I have a LoginForm form extends ValidatorForm and I want to decide a validaton runs only on the server or client side, (or both ) is there any way to do this_? form name=LoginForm field property=userno depends=required arg0

RE: html:javascript question

2004-03-25 Thread Colm Garvey
And alternatively, logic:messagesPresent script language=jscriptalert('bean:message key=global.error.heading/\n\nhtml:messages id=error - bean:write name=error/\n\n/html:messages') /script /logic:messagesPresent global.error.heading=An Error(s) has occured: Colm -Original Message-

problem with module

2004-03-25 Thread ruben
hi everybody, excuse me for my english, that is the scenario, i've got 2 modules, default and mod1, i call from mod1 an action that load a page with 2 iframes, that load a page resource, these resources are in the /page context, struts add /mod1 to the context, and i have to use a

Users, Roles Access Control in Struts Applications - Where to get information?

2004-03-25 Thread Tom Bednarz
Hello, I need some pointers and information about the assignment and management of users and roles in a Struts based web application. I currently run that application (Struts 1.0 and Velocity) with very limited control over WHO is allowed to do WHAT. Currently I only have three roles and all

Html:radio

2004-03-25 Thread Vijay.Nair
Hello All, I have been using the html:radio tag quite usefully until I hit a road block of using scriptlets while using the onclick attribute of the Tag. It just seems to render the scriptlet as is without bothering to execute it as a scriptlet. E.g. html:radio onclick=%=index.toString%

db error

2004-03-25 Thread Rajat Pandit
Hello All, i am trying to connect a oracle database, and i get this stack trace, can someone please tell me what is wrong with it. !-- stack trace -- javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE at

RE: db error

2004-03-25 Thread McCormack, Chris
Check your database is up before trying to connect to it. If it is and you can ping the database from your application server box, then check your spelling in the data source definition. Chris McCormack -Original Message- From: Rajat Pandit [mailto:[EMAIL PROTECTED] Sent: 25 March 2004

Re: db error

2004-03-25 Thread Rajat Pandit
Thanks chris, so this is not because of any missing classes or jar files? is this a connectivity issue? the database server isup and my other applications sqlplusw can access it. any pointers? sorry about read reciept thing in my previous mail. rajat - Original Message - From: McCormack,

DynaForm Type Conversion

2004-03-25 Thread Joe Hertz
I have a bean I persist with Hibernate. It's properties are: 2 Floats 1 Integer (the key) 2 Dates Now, relying on my handy dandy copies of Struts KickStart, Struts In Action, and all of the Web, I'm apparently supposed to declare these methods in the Form I am using as Strings since automatic

Re: Users, Roles Access Control in Struts Applications - Where to get information?

2004-03-25 Thread Adam Hardy
This might come through twice - if so, sorry. On 03/25/2004 11:28 AM Tom Bednarz wrote: 1) How are Roles defined? Where are they stored? I don't want these things stored in a XML file. Is there a way to store these things in a database? Is there any documentation about a datamodel (Fields,

RE: db error

2004-03-25 Thread McCormack, Chris
It doesnt appear to be a case of missing classes etc This exception seems pretty descriptive : UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE It looks like struts cannot physically get a connection to the specified source, so a. it doesnt exist

Re: db error

2004-03-25 Thread Rajat Pandit
Hello, i tried your suggestion but i continue getting the same error. javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j ava:1091) at

Set focus and html:messages

2004-03-25 Thread Daniel
I need set focus on the input field, but it's depends of the error. Then how can I make to read the type of msg for set this focus,the job of set focus is javascript .it's ok, my dificult is verify the type of message, someone know one way tho make it..., I set the message on the action

RE: pre-populating DynaValidatorForm

2004-03-25 Thread Takhar, Sandeep
Isn't this assuming there are no modules? sandeep -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:11 PM To: 'Struts Users Mailing List' Subject: RE: pre-populating DynaValidatorForm Dean, Here's the essential code in order

how can I access form validations defined in validation.xml file using ModuleConfig or something else.....

2004-03-25 Thread Seyhan BASMACI \(Internet Yazilimlari Yetkilisi\)
. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LookupDispatchAction default

2004-03-25 Thread Brian Sayatovic/AMIG
Well, I tried overriding unspecified and I still get the following (mind you that I didn't change the parameter name yet) when I hit /admin/list.do: Error 500: Request[/admin/list] does not contain handler parameter named submit My unspecified method I simply overrode from

RE: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Pady Srinivasan
I spent a few hours trying it out yesterday. There is a Tiles ReloadAction which I tried to set in the struts-config and tried to call it. But it didn't help. Finally I went with the Tomcat manager ( app reload ). If Tomcat recognizes class changes ( WEB-INF/classes ), maybe there is a way to

Re: Dynamic forward in tiles

2004-03-25 Thread Mariano García
El mié, 24-03-2004 a las 20:21, Pedro Salgado escribió: Below is a reply sent to this mailing list about something very similar to what you are looking for. but there is any way to use dynamic content only using tiles tags? In my case, I have a 'setAttribute(serverLocation, Location)'

R: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Leonardo Francalanci
I wrote the following on 01/23/2004 on the mailing list, but nobody cared... I wrote a servlet to trigger off a reload of the struts-config.xml. The servlet is: protected void doGet(..) { ActionServlet as =

Re: Re[2]: Are you sure?

2004-03-25 Thread [EMAIL PROTECTED]
Hi Dima, list, [Dima wrote] we tried to use this (form.onsumbit=return f()) but encountered a problem: if JavaScript is disabled in browser the submiting goes on without confirmation dialogue and other stuff done by JS (wich in our case was more important). We solved this by

using html:form with el logic tags

2004-03-25 Thread Simon Pett
Hi, Can someone tell me why I get an unbalanced error when I try to optionally use a form tag? org.apache.jasper.JasperException: /pages/common/layouts/layout.jsp(56,1) The end tag /c:when is unbalanced tiles:useAttribute name=action/ tiles:useAttribute name=focus/

Re: DynaForm Type Conversion

2004-03-25 Thread Hubert Rabago
Take a look at BeanUtils.copyProperties. By default, though, it doesn't support conversion of dates, since it wouldn't know how you'd want your dates formatted. Check the archives of this list, there's been some discussion on that. Another archive you can check is that of the commons-user list.

reload application.properties

2004-03-25 Thread Janarthan Sathiamurthy
Hi , How can i programmatically reload the application.properties file without a server restart/redeploy ? It happens as our clients may change the value of the keyes specified in the properties files. Does Struts provide any readymade class for this ? Thanks Regards, Janarthan S.

RE: using html:form with el logic tags

2004-03-25 Thread Takhar, Sandeep
I'm going out on a limb here, but usually I wouldn't do the xml like that with html:form since it is unbalanced... You'll have to find a workaround I think... sandeep -Original Message- From: Simon Pett [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:31 AM To: 'Struts Users

RE: custom tag called with bean properties as attributes

2004-03-25 Thread Hibbs, David
risc:staaf schaal_nummer=bean:write name=dezeSchaal property=schaalNummer/ This is a standard tag nesting error. You can't put tags inside of tag attributes. You CAN put scriptlets, such as your first tag... logic:iterate id=dezeSchaal

[REPOST] alternate resource bundle

2004-03-25 Thread Otto, Frank
Hi, I have defined an alternate resource bundle in my struts-config.xml: message-resources parameter=AlternateResources null=false key=alternate/ In element global exceptions I have some Exceptions. One of this should use the bundle alternate, but it was ignored. global-exceptions

Re: LookupDispatchAction default

2004-03-25 Thread Mark Shifman
Look at the sourc for LookupDispatchAction snippet below: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Identify the request parameter containing the

Re: blocking bookmarked actions

2004-03-25 Thread Mark Shifman
Thanks , I was using jakarta-struts-1.1-rc1 which did the nul parameter trapping. mas Wendy Smoak wrote: From: Mark Shifman [mailto:[EMAIL PROTECTED] Unfortunately LookupDispatchAction checks for the parameter an throws an error before it gets a chance to use unspecified(), but it should be

Re: problem with module

2004-03-25 Thread Daniel
Hi I have the the same problem, but in other situation, I using popups windows of other modules, if you find the solution tell me , if I find the solution I tell you... - Original Message - From: ruben [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday,

Re: LookupDispatchAction default

2004-03-25 Thread Brian Sayatovic/AMIG
That's exactly my point. If there is no submit=xxx parameter/value to the action, then it throws a NullPointerException. So my action works like this: /admin/list.do?submit=Refresh But not like this: /admin/list.do In the second case, there is no submit parameter. For now,

Re: LookupDispatchAction default

2004-03-25 Thread Mark Lowe
/admin/list.do?method On 25 Mar 2004, at 14:02, Brian Sayatovic/AMIG wrote: Well, I tried overriding unspecified and I still get the following (mind you that I didn't change the parameter name yet) when I hit /admin/list.do: Error 500: Request[/admin/list] does not contain handler

Re: problem with module

2004-03-25 Thread Daniel
If someone know the solution help us.. - Original Message - From: Daniel [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 11:01 AM Subject: Re: problem with module Hi I have the the same problem, but in other situation, I using popups

Re: html:options where values have embedded quotes

2004-03-25 Thread Joe Germuska
We have some customer-supplied selection options that have double quotes in their values, and Struts 1.1 isn't seeming to handle this correctly. Best I can tell from the HTML spec, these should be placed on the page as quot; , which will submit them as %22 , which *should* be seen on the

Re: R: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Joe Germuska
If I don't remove the attribute following requests will not work (because of the code in ActionServlet.getRequestProcessor) Is this a bug? That sounds like a bug to me. I'm thinking that destroy methods should remove from the application context anything the instance put into the context

RE: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Pady Srinivasan
I used your code ( Thanks ) and I finally got it to work with a Filter. We have a login filter in our app. So I added a method which runs only in development mode. * Set the DEVELOPMENT_MODE system property during development. * Add the WEB-INF directory to the classpath. ( does Tomcat include

Exception handling in struts

2004-03-25 Thread Tate Austin
I'm trying to write an exception handler in my struts-config to clean up my application's exception behavior. Well, I've followed the directions in the docs to a T, I have this entry in my struts config: global-exceptions exception key=uncaught_exception type=java.lang.exception

RE: LookupDispatchAction default

2004-03-25 Thread Wendy Smoak
From: Brian Sayatovic/AMIG [mailto:[EMAIL PROTECTED] That's exactly my point. If there is no submit=xxx parameter/value to the action, then it throws a NullPointerException. So my action works like this: /admin/list.do?submit=Refresh But not like this: /admin/list.do

Interpretation of struts tags

2004-03-25 Thread Vijay.Nair
Hello All, We have a slight problem wherein we need to make the Writer interpret the Struts tags rather than as a String in a Custom Tag that we are writing? Has anyone ever done this? Please note that we have made this custom tag work when we have the Struts tags in the body of the custom

Re: Users, Roles Access Control in Struts Applications - Where to get information?

2004-03-25 Thread Tom Bednarz
Hi Adam, Great infos, thanks a lot. I will have to extend the JDBCRealm a little bit. Tom Adam Hardy wrote: This might come through twice - if so, sorry. On 03/25/2004 11:28 AM Tom Bednarz wrote: 1) How are Roles defined? Where are they stored? I don't want these things stored in a XML

R: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Leonardo Francalanci
I used your code ( Thanks ) and I finally got it to work with a Filter. We have a login filter in our app. So I added a method which runs only in development mode. just one thing: I'm not sure, but it seems that sometimes Tomcat does not re-read the file. It's like it keeps it cached

RE: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Pady Srinivasan
The parseModuleConfigFile method in ActionServlet ( called by init() ) seems to get the resource and reparse the information. Unless there is a screw up somewhere there, I don't know why the re-read should fail. I will see if that can be reproduced. Thanks -- pady [EMAIL PROTECTED]

Re: db error

2004-03-25 Thread Larry Meadors
It has been a while since i used oracle, but that url looks wrong: jdbc:oracle:thin:oci8:1521:ora9i Can you have thin and oci in one url? Larry [EMAIL PROTECTED] 03/25/04 4:10 AM Thanks chris, so this is not because of any missing classes or jar files? is this a connectivity issue? the

Re: Exception handling in struts

2004-03-25 Thread Nick Wesselman
Didn't someone already answer this for you? Maybe we need to be more explicit. Try this: global-exceptions exception key=uncaught_exception type=java.lang.Exception path=/jsp/error.jsp handler=com.graysail.pgbadmecs.exceptions.ExceptionCatcher scope=request/ /global-exceptions

RE: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Pady Srinivasan
I made a small change to the code where setting WEB-INF in the classpath is not required. private long lastModified = 0; private void reloadConfig(HttpServletRequest request) { if ( System.getProperty(DEVELOPMENT_MODE) != null ) { try { File f = new

Re: problem with module

2004-03-25 Thread ruben
Daniel wrote: If someone know the solution help us.. - Original Message - From: Daniel [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 11:01 AM Subject: Re: problem with module Hi I have the the same problem, but in other situation, I

Re: db error

2004-03-25 Thread Daniel H. F. e Silva
About that url try this: jdbc:oracle:thin:@oci8:1521:ora9i considering 'oci8' is your database server name and 'ora9i' is your Oracle's instance (service) name. Regards, Daniel Silva. --- Larry Meadors [EMAIL PROTECTED] wrote: It has been a while since i used oracle, but that url looks

dynamic widgets

2004-03-25 Thread Dean A. Hoover
Scenario: An HTML form is contructed using JSP where most of the widgets are statically created (except for labels). However, there is a group of check boxes which are created based on information contained in a database. There may be one checkbox or many. How would you express this in the

html inside an action

2004-03-25 Thread ruben
hi! how can i get the output generate in a .jsp inside an action like it was a resource that i can process(a String or something else)??? thanks a lot in advance. PD: I need to call jasper compiler or something similar? what can i do that? thanks

Struts tag problem (bean:message and bean:write)

2004-03-25 Thread Marco Mistroni
Hi all, I was wondering if anyone of you have a solution For this dilemma. I have a collectin of product DTOs to show on my jsp. One of DTO's property is, let's say, the type, which is listed in number. (let's say, 10 or 20). ON the DTO I will have the value 10,20 ecc but on the jsp I

RE: html inside an action

2004-03-25 Thread Qureshi, Affan
What part of JSP do you want to generate? Is it Java code in the JSP that you want to generate or static HTML/JavaScript? You might want to look at Tag Libraries as well. -Original Message- From: ruben [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:00 AM To: Struts Users

Templating

2004-03-25 Thread Freddy Villalba Arias
Scenario: Sort of a templating system, based on the usual design patterns: Template, Attribute-Value, etc... (don't remember the exact names, but I'm confident you all know what I mean) :-) There are different entities whose (type's) properties are stored as attributes that are grouped

Re: html inside an action

2004-03-25 Thread ruben
Qureshi, Affan wrote: What part of JSP do you want to generate? Is it Java code in the JSP that you want to generate or static HTML/JavaScript? You might want to look at Tag Libraries as well. -Original Message- From: ruben [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:00

RE: html inside an action

2004-03-25 Thread Qureshi, Affan
So why cant you use simple JSTL or struts-EL tags to do it? Ideally you shouldn't be doing any client-side stuff in your Actions. A cleaner approach would be to use Custom Tags to have the HTML generation code and you can call them from your JSPs. (Remember that JSPs are not sent to the

RE: Struts tag problem (bean:message and bean:write)

2004-03-25 Thread Paul McCulloch
Something like bean:define id=type bean:write name=product property=productType /bean:define bean:message key=%='prompt.productType.' + type%/ Paul -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 16:03 To: 'Struts Users Mailing List'

Re: html inside an action

2004-03-25 Thread ruben
hi These are my requirements, i have to convert objects to html, in my action and get this html in a String, i thought that the jsp is a good way to do this, I want the code that jsp generate (that is sent to the browser) on my action , is it possible? thanks a lot , Regards. Qureshi, Affan

RE: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Kris Schneider
Seems like somebody ought to point out that calling lifecycle methods (like Servlet.init and Servlet.destroy) from app code is generally a bad idea. OTOH, if it works for you... Quoting Pady Srinivasan [EMAIL PROTECTED]: I made a small change to the code where setting WEB-INF in the classpath

Struts Validator and Select boxes

2004-03-25 Thread Janarthan Sathiamurthy
Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3 are displayed in seprate combo/select boxes. I need to do some custom validations on these fields. I wrote a custom class for the same Looks like - public static boolean validateDates(Object

Tiles exception handling problem using controllerUrl

2004-03-25 Thread Paul Watson
Hi All, I may have found a bug in Tiles and exception handling when using the controllerUrl attribute within the tiles definition (fyi:xml format). In my case the controllerUrl points to a TilesAction subclass that collects some business data. The problem is thus; if it encounters an error,

Re: html inside an action

2004-03-25 Thread ruben
hi Those are my requirements, i have to convert objects to html, in my action and get this html in a String, i thought that the jsp is a good way to do this, I want the code that jsp generate (that is sent to the browser) on my action , is it possible? thanks a lot , Regards. Qureshi, Affan

RE: html inside an action

2004-03-25 Thread Hookom, Jacob
You are much better off doing JSP tags for something like this. I don't understand why people are so afraid of doing custom tags? -Original Message- From: ruben [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:54 AM To: Struts Users Mailing List Subject: Re: html inside an

Res: html inside an action

2004-03-25 Thread ruben
hi Those are my requirements, i have to convert objects to html, in my action and get this html in a String, i thought that the jsp is a good way to do this, I want the code that jsp generate (that is sent to the browser) on my action , is it possible? thanks a lot , Regards. Qureshi,

RE: html inside an action

2004-03-25 Thread Qureshi, Affan
HttpUnit is also a neat tool which might help. Have a JSP generate the HTML and access that using HttpUnit (or a simple URLConnection/Socket for that matter). And you can get the generated HTML in your Action. I hope I understand you this time. -Original Message- From: ruben

RE: html inside an action

2004-03-25 Thread Brendan Richards
I'm not entirely sure what you're after - do you mean get a string with the contents populated by another jsp - independent from the current request being served? I created a test jsp in tomcat containing a jsp:include / tag, ran it and looked in tomcat's work folder at the servlet code generated

RE: html inside an action

2004-03-25 Thread Brendan Richards
There's also jakarkta commons-httpclient http://jakarta.apache.org/commons/httpclient/ -Original Message- From: Qureshi, Affan [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 17:04 To: Struts Users Mailing List Subject: RE: html inside an action HttpUnit is also a neat tool which might

Re: Res: html inside an action

2004-03-25 Thread Richard Yee
Ruben, Why is it your requirement to get a page as HTML inside an Action? It seems like you've made an implementation decision. Like several people have suggested, it is much easier to do this (and probably better too), by using a custom tag library inside the JSP itself. Several tag libraries are

Re: Tile Problem

2004-03-25 Thread Tin Pham
Hi, You need to do the following in the jsp page, tiles:useAttribute name=title/ Then where you want the internationalized text to appear you use, bean:message name=title/ Oh yeah you will need to add your taglib references as follows, %@ taglib uri=/whateverYourPathIs prefix=tiles % %@ taglib

tiles question

2004-03-25 Thread Mariano García
Hi all, I have an html page (external.html) and in another my struts application is running, could I use a title:put pointing to his web page? That page is a dynamic perl page... I don't know if tiles:get tag gets directly a file, o maybe it can do a http request to another machine, in order to

Re: html inside an action

2004-03-25 Thread Mark Lowe
I'd go n have a cup of tea.. On 25 Mar 2004, at 17:54, ruben wrote: hi Those are my requirements, i have to convert objects to html, in my action and get this html in a String, i thought that the jsp is a good way to do this, I want the code that jsp generate (that is sent to the browser) on

RE: pre-populating DynaValidatorForm

2004-03-25 Thread Yee, Richard K,,DMDCWEST
Takhar, Yes. If you are using modules, then you'd have to add: fbc.setModuleConfig(mapping.getModuleConfig()); -Richard -Original Message- From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:47 AM To: Struts Users Mailing List Subject: RE: pre-populating

Re: Exception handling in struts

2004-03-25 Thread Tate Austin
ooops, thank you regarding the java.lang.Exception. As for ExceptionCatcher all that is correct. I did make that change in an earlier iteration. That lowercase wasn't the issue sadly. Now, when I installed Easy Struts just now it told me path not found in webapp which is not true from my

Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
All, We are facing a problem when we define java.util.Date field in ActionForm. Is there any way to override the default behavior provided by Struts? I very much appreciate your help!! Thanks and Regards, Sree/-

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
What's the problem? robert -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:28 PM To: Struts Users Mailing List Subject: Handling Date objects in ActionForm gracefully All, We are facing a problem when we define

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote: All, We are facing a problem when we define java.util.Date field in ActionForm. Is there any way to override the default behavior provided by

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
The date fields in jsp are not mandatory. So there will be null strings in the request/session. As I understand, Struts tries to create Date object out of the null string and chokes on it. I would like to know if my understanding is correct ? If this is true are there any solutions for the

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
I am thinking of overriding the struts default mechanism. Override the default behavior of org.apache.commons.beanutils.ConvertUtils by registering a valid converter... I want to know if the above is possible.. Thanks and Regards, Sree/-

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
+1 -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:36 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully Have it as a string and convert it to a date or calendar when you pass it back to

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
yes it is. It should be done once per classloader. When struts populates the dyna form it is string array to string array conversion and uses populate method of BeanUtils which eventually calls the converters. sandeep -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
Do you know if the behavior can be overridden? Thanks and Regards, Sree/- This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
Ask yourself why are you trying to convert types for user input? On 25 Mar 2004, at 21:11, Sreenivasa Chadalavada wrote: Do you know if the behavior can be overridden? Thanks and Regards, Sree/- --- - This is a

Re: Struts tag problem (bean:message and bean:write)

2004-03-25 Thread Daniel H A Lima
Marco, can you use bean:define and a scriptlet code inside bean:message ? Something like : bean:define id=suffix name=product property=productType/ bean:message key='%=prompt.productType.+suffix%'/ --- Marco Mistroni [EMAIL PROTECTED] escreveu: Hi all, I was wondering if anyone of you

How to display a bean property with html markup?

2004-03-25 Thread S W
Hi, Anybody knows how to display a bean property with html markup properly in the output. I have the JSP snippet code as follows: HTML abcdefg bean:write name=info property=infoName / /HTML The infoName is a string I got directly from database as follows: String infoName = br pfont

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread anant.parnami
Define your own Form bean class which extends the DynaForm and then you can override the get/set methods In those methods you need to check if the type is Date then perform whatever operation you want Regards Anant -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
There are converters that can be used for overriding. For example BigDecimalConverter is a converter that handles any object going to a BigDecimal. you need to register the converters. Take a look at BeanUtils.deregister which is called in a static block at the beginning of BeanUtils.

RE: How to display a bean property with html markup?

2004-03-25 Thread Slattery, Tim - BLS
Anybody knows how to display a bean property with html markup properly in the output. I have the JSP snippet code as follows: HTML abcdefg bean:write name=info property=infoName / bean:write name=info property=infoName filter=false/ filter=false tells the tag not to replace things like

form based auth and session timeout and post data

2004-03-25 Thread Martin Alley
Hi, I've got a struts based app using form based authentication (started out as xpetstore). I have a situation where if I'm on a web form protected by role based security, and the session times out, and then I submit the form, I get to the login page, login, but then the original form data is

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
That's one mean filter. It's not part of struts but judging merely from its name, it's obviously built into the app security. What does xpetstore say it's meant to do? Have you checked the filter's javadoc? Adam On 03/25/2004 10:07 PM Martin Alley wrote: Hi, I've got a struts based app

Re: dynamic widgets

2004-03-25 Thread Adam Hardy
Give us an example. What is the form editing? The iterate tag is probably what you want, if it's simple. Or you could use NestedBeans. If the form edits the actual object, you can get a bunch of beans, each representing x pieces of info, and store them inside the main object. Just throwing

RE: form based auth and session timeout and post data

2004-03-25 Thread Martin Alley
Hi Adam, I modified the filter from xpetstore when I introduced container based security. It should now redirect the user to the signonAction to synchronise container based auth with session based (legacy) record of the logged in user. Thinking about it there could be some problems in there,

Using JSTL Instead of Nested Tags

2004-03-25 Thread Mike Duffy
I'm trying to convert an application from Struts display tags to JSTL (still using Struts as the MVC). I am having some difficulty converting nested tags to JSTL. Can anyone offer any guidance? Thanks. Mike __ Do you Yahoo!? Yahoo! Finance Tax Center - File

RE: Using JSTL Instead of Nested Tags

2004-03-25 Thread Robert Taylor
Mike, you will have to expose the form like: c:set var=form value=${myForm}/ ...where myForm is its name defined in the struts-config file. If its DynaForm then you have to expose the form map: c:set var=form value=${myForm.map}/ Once you do this, you can use JSTL to access and render

html:image indexed and DynaActionForm

2004-03-25 Thread Thomas Plümpe
Hi all, I have a bit of a problem grasping how to implement a seemingly simple thing with struts. What I want to do is have a JSP page listing items each with its own Delete or Edit button, like this: Chocolate |Delete| |Edit| (index 0) Bananas |Delete| |Edit|

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
Martin, I'm not familiar with xpetstore, so I didn't say anything when I read that you had container-managed security and a sign-on filter redirecting unauthenticated users. Basically you have made the sign-on filter redundant by implementing container-managed security. However that's not to

validwhen (please help)

2004-03-25 Thread Betty Koon
Hi all, I have followed the example in struts documentation (validwhen validaton section). I have an email address field that needs to be validated when one other field's value is set to true. But I can't get it to work at all. This is the example I cut and paste from struts web site. I am

Re: Dynaform Type Conversion

2004-03-25 Thread Joe Hertz
Well, I was using copyProperties...or rather I\'d want to. I\'m just trying to avoid having to declare my Transfer Objects the hard way. Say I use Mark Lowe\'s idea of the Nested Form Bean (makes sense in alot of ways), but I want to do it dynamically. i.e. DynaForm A has a List property of

Re: Dynaform Type Conversion

2004-03-25 Thread Hubert Rabago
It does for the nightly build and Struts 1.2.0, though I can't recall the name of the method. For pre-1.2, you'll need to write code to do that. There was a thread that discussed this, with the last few messages (of that thread) still coming in today. Just look for that. Richard Yee pasted

RE: How to display a bean property with html markup?

2004-03-25 Thread S W
Hi Tim, Yes, it solved the problem. Thanks a lot, Shirley Slattery, Tim - BLS [EMAIL PROTECTED] wrote: Anybody knows how to display a bean property with html markup properly in the output. I have the JSP snippet code as follows: abcdefg filter=false tells the tag not to

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
You deal with the conversion else where but not in the form bean, you can argue about it or just believe me. The action form sits between the view and the action, the date conversion goes on between the action and the model. Your approach isn't that bad its just not to the MVC pattern that

Re: Tile Problem

2004-03-25 Thread Caroline Jen
I followed your suggestion. Now, when I ran my application, I got article.Main.title???en_US.??? displayed in the browser. Still, cannot pick up the article.Menu.title=Registered Members in the application.properties (which is located in the ApplicationRoot/WEB-INF/classes/resources

  1   2   >