Any Takers ?RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
Any help/takers ? -Original Message- From: Janarthan Sathiamurthy Sent: Thursday, March 25, 2004 10:16 PM To: [EMAIL PROTECTED] Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3 are

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

2004-03-26 Thread Dmitrii CRETU
Hello Marco, maybe this will help (using struts-el): bean-el:message key='prompt.productType.${product.productType}'/ Dima. Thursday, March 25, 2004, 6:02:54 PM, you wrote: MM Hi all, MM I was wondering if anyone of you have a solution MM For this dilemma. MM I have a collectin of

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
As someone with good experience in MVC-based applications but a newbie to Struts, what I understand from this discussion is that the recommended implementation would have to comply, at least, with this guidelines: - The conversion code is encapsulated in a separate class (I suppose one converter

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread anuj . upadhyay
+1 I also suggest this approach to keep the date as string during posts and convert them to date object when porcessing the entered dates, surely not in the Form. Depends on what you really want to achieve. Would suggest the KISS rule..:-) Robert Taylor [EMAIL PROTECTED] on 03/25/2004

Re: html inside an action

2004-03-26 Thread ruben
Hi, thanks everybody for the responses, they help us a lot to make a decision, i think that it could be better solution trying to do my requirements with tags , but i need that an import could load a resource dinamycally, something like these c:import url=${sessionScope.SomeVariable} /

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
I think the way of going about converting is pretty open, either have some conversion utils between the web tier and the model. I tend to do it in the action and then when things get long or i need the code again move it out into a util class or like you're saying make my model util classes

RE: problem with module

2004-03-26 Thread Colm Garvey
I've just finished fixing what I think is the same problem you guys have been having i.e. switching modules on Struts 1.1 First, make sure you have the most recent release build of struts, as I had problems with earler 1.1 builds on weblogic 8.1 I originally started with the

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Joe Hertz
Since I just wrestled greatly with this particular beast, my $.02 follows. Subclass whatever flavor of ActionForm you use, and give it a method with a footprint like- java.util.Date StringToDate(String) { } This way you can do something like this in your action: public ActionForward

How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Hi, Suppose I've got a web based form that posts data to an action, and I have that action protected by container form based authorization - how does the ActionForm data get through. I have a situation like this, and my ActionForm is empty after I've been through the form-based login page. One

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
Mark, didn't mean to be pedantic... just wanted to prevent everybody from going through all the (obvious / basic / simple) details and just go to the important stuff. Neither am I an MVC guru. In any case, thanx everybody 4 your help. Regards, Freddy. -Mensaje original- De: Mark Lowe

Re: i18n with Japanese characters and tags....

2004-03-26 Thread atchy
Thank you for your assist, Mr. Jason (B (BJason Lea [EMAIL PROTECTED] wrote: (B (B He was saying it 'can' display Japanese characters. The example doesn't (B have any Japanese characters in in (if i remember correctly), but if (B they are put into the properties files for the locale they

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
Freddy. No, you misunderstood if you thought I was responding with any hostility whatsoever. There is a general problem where input would be better validated in the web tier so it can be decoupled from the model. So times comparing two dates would be useful and so on. But i think its also try

RE: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Freddy Villalba Arias
Cool! No offence, Mark. In part, it's my fault since English is not my native tongue and sometimes the same word translated into other language changes the connotation of a phrase. Sh*t happens! :) I believe yours is a valid approach (in fact, was one of the options I was considering for the

Global locale in Struts web applications?

2004-03-26 Thread Jan Normann Nielsen
Hello I have multiple Struts web applications deployed within Jetty but the locale that Struts saves in the session is not shared between the contexts. I guess that is to be expected. But how do I create a work-around for this problem? I need the applications to share the locale so that if

RE: Pls help me in configuring common logger

2004-03-26 Thread sougata
Hi Van I am not using simple logger.I am using apache's commons logger.Pls le me know how to do it Thanks Sougata -Original Message- From: Van Riper, Mike [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 12:38 PM To: 'Struts Users Mailing List' Subject: RE: Pls help me in

[OT] WSAD problems with Struts

2004-03-26 Thread Oliver Thiel
Hi, I read that some of you had some problems to run Struts apps on WSAD and as I run into that problem too i wanted to know how you solved it! I as far as I understand some turned of different validations including the on concerning Struts, but where couldn't fide the right place to do that!

Re: [OT] WSAD problems with Struts

2004-03-26 Thread Susan Bradeen
Oliver, What version of WSAD are you running? What problems are you having specifically? Validation is controlled through the menu option Window Preferences Validation Susan Bradeen Oliver Thiel [EMAIL PROTECTED] wrote on 03/26/2004 08:09:34 AM: Hi, I read that some of you had some

Re: [OT] WSAD problems with Struts

2004-03-26 Thread Rouven Gehm
Which version of WSAD are you using ? I don't have problems with 5.0 + updates or 5.1. Rouven - Original Message - From: Oliver Thiel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 26, 2004 2:09 PM Subject: [OT] WSAD problems with Struts Hi, I read that some of you

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Well I've just simplified by login form - plain html - no struts stuff going on. I've also simplified the filter so detects a fresh logon and starts a session accordingly - no longer any redirecting to LoginAction. However the critical behaviour is still the same - existingCustomerForm - the

Re: [OT] WSAD problems with Struts

2004-03-26 Thread Oliver Thiel
Hi, I have to use: WebSphere Studio Application Developer (Windows) Version: 5.1.0 I developed my app with the StrutsStudio, as it is not that complex. But know I have to run it on WSAD and run into different problems: a. WSAD did not like the validation.XML (so deleted it cause I did

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Joe Germuska
At 1:59 PM + 3/26/04, Martin Alley wrote: Well I've just simplified by login form - plain html - no struts stuff going on. I've also simplified the filter so detects a fresh logon and starts a session accordingly - no longer any redirecting to LoginAction. However the critical behaviour is

Re: Pls help me in configuring common logger

2004-03-26 Thread roy-strutsuser
On 26 Mar 2004 13:59:25 -, struts-user-digest-help wrote Re: Pls help me in configuring common logger 109791 by: sougata sougata, if you're using Log4j you need to add a file called commons-logging.properties file under your WEB-INF/classes directory. In that file you need one line:

Re: html inside an action

2004-03-26 Thread Niall Pemberton
I posted a tag (StoreTag) which will store the generated html from a jsp in a bean, then in your action you can get the RequestDispatchter and do an include: Details in the following messages: http://www.mail-archive.com/[EMAIL PROTECTED]/msg94956.html http://www.mail-archive.com/[EMAIL

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Hi Joe, I might be able to put some general code in the login form (as a jsp) that puts all form data present in the previous page into the login form so it could be passed on, but that will still leave the problem of the method becomes GET instead of POST. I'm really hoping there's a more

RE: How does ActionForm data pass through container called form b ased login page?

2004-03-26 Thread Pady Srinivasan
This is the only solution I can think of: public class RedirectServletRequest extends HttpServletRequest { public RedirectServletRequest(HttpServletRequest req) { this.request = req; } public String getParameter(String name) { if (

Re: Struts Validator and Select boxes

2004-03-26 Thread Niall Pemberton
Posting whats in your validation.xml for the form and the bit of your jsp with your select fields would be helpfull. If you take the fromDay as an example, you are using field.getVarValue(fromDay) - if you don't have a var defined in your validation.xml for fromDay then that would cause the No

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Joe Germuska
I might be able to put some general code in the login form (as a jsp) that puts all form data present in the previous page into the login form so it could be passed on, but that will still leave the problem of the method becomes GET instead of POST. I'm really hoping there's a more elegant

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
Paddy, Looks like you've been here before!! :-) It'll take me a bit of time to digest this, but I'll have a look. Does this actually work for you? Thanks Martin -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 15:21 To: Struts Users Mailing List

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
I think I need to do some simple test cases - with and without struts. Martin -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 15:20 To: Struts Users Mailing List Subject: RE: How does ActionForm data pass through container called form based login

RE: How does ActionForm data pass through container called form b ased login page?

2004-03-26 Thread Pady Srinivasan
We were going to implement this today or early next week :-)...looking at the code, I feel you don't need to extend ActionServlet at all. Instead the filter will create the request before forwarding to the ActionServlet. public class LoginFilter implements Filter { public void

RE: How does ActionForm data pass through container called form based login page?

2004-03-26 Thread Martin Alley
I'll be very interested to here the outcome... Thanks Martin -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 16:07 To: Struts Users Mailing List Subject: RE: How does ActionForm data pass through container called form based login page? We were

[OT] JTA, JDBC and data persistence

2004-03-26 Thread Freddy Villalba Arias
Hello everybody, An off-topic question (it's Friday, I hope you accept it!): I want to implement a Business Object Model on top of many DAOs. Those BOs will be - obviously - related to each other (mainly 1:n and m:n relationships). I must implement this in such way that, when - for

Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Denis Laroche
Hello everybody, I hope it's not a trivial question. I'm trying to access the current Locale from a JSP page. The key to access the Locale is stored in variable org.apache.struts.Globals.LOCALE_KEY. So what I did is to look up the value of the variable in the source file

Re: Calling Class Methods

2004-03-26 Thread Nizeyimana Zabulon
let say your class' name is A and your static method is aaa(); all you hava to do is A.aaa(); --- Sunny [EMAIL PROTECTED] a écrit : How can i invoke static methods of a Class without instantiating it in struts - To

Re: Dynaform Type Conversion

2004-03-26 Thread Joe Germuska
--- Joe Hertz [EMAIL PROTECTED] wrote: Does Struts provide a method where I provide it the name of the bean defined in the struts-config.xml and it return me an instance of the appropriate class, with all the dyna properties set up? At 3:19 PM -0800 3/25/04, Hubert Rabago wrote: It does

Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
Folks, this may be an off topic question, but I am curious to understand why. We know that Http protocol has features such as Headers. Both response and request have HTTP headers. It is easy to get the headers in J2EE from a HttpServletRequest objects using getHeader() and/or getHeaders()

RE: access variable value in html tag

2004-03-26 Thread Steltner, Joern
Hallo together, Thx, for the help. I installed the Tomcat v5.x engine and now it's working like you guys suggested without EL. Regards Joern -Original Message- From: Brian Buchanan [mailto:[EMAIL PROTECTED] Sent: Dienstag, 23. März 2004 15:12 To: Struts Users Mailing List Subject: RE:

help with modules

2004-03-26 Thread Bruce Christie
Hello, I am playing around with modules and things work pretty nicely = except I have a tiles template that reads in a menu.jsp from the default = WEB-INF. The links to the actions are prepended with the module. (i.e. = html:link action =3Dmodule1/dosomething.do/. ) This works fine expect

Re: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Richard Yee
Larry, I'll go out on a limb here and say that since the response is being generated on the server by a servlet or JSP, there is no need for getHeader() or getHeaders() methods because the developer is setting them. The HttpServletResponse interface has addHeader() and addXXXHeader() methods to

Re: Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Nizeyimana Zabulon
try this session.getAttribute(Globals.LOCALE_KEY); --- Denis Laroche [EMAIL PROTECTED] a écrit : Hello everybody, I hope it's not a trivial question. I'm trying to access the current Locale from a JSP page. The key to access the Locale is stored in variable

Re: Global locale in Struts web applications?

2004-03-26 Thread Nizeyimana Zabulon
try change the scope of the le locale from session to application --- Jan Normann Nielsen [EMAIL PROTECTED] a écrit : Hello I have multiple Struts web applications deployed within Jetty but the locale that Struts saves in the session is not shared between the contexts. I guess that is

Re: [OT] JTA, JDBC and data persistence

2004-03-26 Thread Bill Siggelkow
Freddy, I think you only need to look into using JTA and XA transactions if you are spanning multiple data sources (databases). If you are not, then I would look into using an Object-relational mapping tool like Hibernate or OJB to do what you want to do. These tools usually provide support

Re: Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Denis . Laroche
Thanks, but is there a way to do it without using Java code directly in the JSP page? Nizeyimana

Re: [OT] JTA, JDBC and data persistence

2004-03-26 Thread ian_d_stewart
Freddy, You may want to take a look at Hibernate (http://www.hibernate.org), if you haven't done so already. Hibernate is a persistence mechanism which utilizes XML mappings to map Java objects to relational database schemas, and does support cascading deletes, amoung other things. HTH, Ian

FW: newbie html-el question

2004-03-26 Thread Bender, James
I am trying to display a value from a requestAttribute in an html-el:text ... but I can't get it to work. Here is my code: html-el:text: property=searchType value=%=request.getAttribute(searchType)%/ I recieve the error: Attribute searchType has no value Someone told me I have to

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

2004-03-26 Thread Bill Siggelkow
And if you wanted to use JSTL you would use: c:out value=${info.infoName} escapeXml=false/ Bill Siggelkow 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 /

Re: [OT] WSAD problems with Struts

2004-03-26 Thread ian_d_stewart
You can also override the global Validation preferences within the Validation portion of the Project Properties. Ian Susan Bradeen

RE: newbie html-el question

2004-03-26 Thread Slattery, Tim - BLS
I am trying to display a value from a requestAttribute in an html-el:text ... but I can't get it to work. Here is my code: html-el:text: property=searchType value=%=request.getAttribute(searchType)%/ I recieve the error: Attribute searchType has no value Someone told me I have

RE: newbie html-el question

2004-03-26 Thread Wendy Smoak
From: Bender, James [mailto:[EMAIL PROTECTED] I am trying to display a value from a requestAttribute in an html-el:text ... but I can't get it to work. Here is my code: html-el:text: property=searchType value=%=request.getAttribute(searchType)%/ I recieve the error: Attribute searchType

[OT] SELECT ... LIKE with iBatis

2004-03-26 Thread Andy Engle
Hi all, I am trying to write a SELECT ... LIKE %whatever% statement with iBatis but I can't seem to get it to work, nor can I find a clear explanation of how to do this. Does anybody have a code snippet they could share with me of how to do this? Thanks in advance. Andy

Re: Accessing Struts beans with keys defined in the Globals class

2004-03-26 Thread Joe Germuska
At 1:03 PM -0500 3/26/04, [EMAIL PROTECTED] wrote: Thanks, but is there a way to do it without using Java code directly in the JSP page? In this cases there is not, although this has been discussed just today on struts-dev: http://article.gmane.org/gmane.comp.jakarta.struts.devel/18429/ In

Re: [OT] SELECT ... LIKE with iBatis

2004-03-26 Thread Ronald Rotteveel
Hi Andy, we have a same kind of statement in our xml file and it looks like this: codesnippet mapped-statement name=statementName result-map=result SELECT * FROM tbl_name WHERE column_name LIKE '%'; /mapped-statement /codesnippet Pay attention to the single quotes around the %-sign! Good

RE: Pls help me in configuring common logger

2004-03-26 Thread Van Riper, Mike
Sougata, I can point you in the right direction, but, I don't have time to spell everything out for you. I think you need to do some work on your own reading the commons logging docs. You need to understand the commons logging package and how to configure it to use log4j or the native logging

RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Zhang, Larry (L.)
Richard, Thanks for your answers. I think that makes great sense; though I still think to have getHeader() or getHeaders() may be helpful when doing debug for response object. Larry -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 12:06 PM To:

RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Yee, Richard K,,DMDCWEST
Larry, For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is useful. It's in the Jakarta Soap project jar file. It will let you view the headers and the markup sent to/from your browser. -Richard -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]

RE: html:options where values have embedded quotes

2004-03-26 Thread Colm Garvey
It might not be sexy, but a fast solution would be to use something else instead of quotes e.g. ^ or | and then use a small Javascript replace function to write out the text correctly? Colm -Original Message- From: Doug [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 23:25 To: Struts Users

RE: newbie html-el question

2004-03-26 Thread Bender, James
Hi Wendy, Thanks for responding! Someone showed me a way to do what I needed to do, but the way I'm approaching the entire problem may be kludged: The user can click Search Attributes | Search Components | Search Templates I've provided html:link's like these respectively:

RE: Populating a Listbox

2004-03-26 Thread Colm Garvey
I've come across this in a few difference manifestations and the best course of action I've come across is dependant on the number of variations. If you're only talking about a couple of hundred or less, use a javascript array to populate the second dropdown on the fly. If you're dealing with

RE: .swf file

2004-03-26 Thread Colm Garvey
Just the same as any other hyperlink you create with Flash. Just point your hyperlink to nameoflink.do instead of nameoflink.jsp Colm -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:02 To: [EMAIL PROTECTED] Subject: .swf file Dear Friends, Can

RE: blocking bookmarked actions

2004-03-26 Thread Colm Garvey
Or wrap the whole app up in frames. That'll do the trick. Colm -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:32 To: Struts Users Mailing List Subject: Re: blocking bookmarked actions where do I do the blocking? The action I am having problems

RE: newbie html-el question

2004-03-26 Thread Wendy Smoak
From: Bender, James [mailto:[EMAIL PROTECTED] The user can click Search Attributes | Search Components | Search Templates I've provided html:link's like these respectively: doPrepareSearch.do?searchType=attribute | doPrepareSearch.do?searchType=component |

Re: [OT] SELECT ... LIKE with iBatis

2004-03-26 Thread Andy Engle
Ronald Rotteveel [EMAIL PROTECTED] wrote: Hi Andy, we have a same kind of statement in our xml file and it looks like this: mapped-statement name=statementName result-map=result SELECT * FROM tbl_name WHERE column_name LIKE '%'; /mapped-statement Right, but I was running into trouble

Re: help with modules

2004-03-26 Thread James Norman
Try adding contextRelative=true to the forwards in your struts-config. I remember a similar problem I had a while back, but I'm not entirely sure this will solve it. Here is an example of an Action I had in a struts module I wrote: action path=/listLoggers

Re: Dynamic forward in tiles

2004-03-26 Thread Pedro Salgado
On 25/03/2004 13:22, Mariano García [EMAIL PROTECTED] wrote: 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

Use JSP Expression Language in custom tags?

2004-03-26 Thread Chan, Jim
Sorry this is not directly related to Struts, but is it possible to use the expression language in custom tags? I think you can, but I am not quite sure how to do it. Do you get this for free by just upgrading to a JSP 2.0 compliant server? Or do I have to do something with the custom tags to

RE: Help on struts

2004-03-26 Thread Shoaib
Thanks for your guidance. You are right , we are in the case where user will come back from search page. I will try as you suggested and give feedback. Regards Shoaib I guess the first thing to consider is what you mean by come back to the previous page. Do you just mean have the user

Tomcat -- JSP -- KeyPairGenerator -- Security Exception

2004-03-26 Thread Michael McGrady
When I am using Tomcat I get a security exception when I try to access a java.security.KeyPairGenerator for a Diffie-Hellman key pair. I don't get it with other servers. Anyone know why this is? java.security.NoSuchAlgorithmException: DH KeyPairGenerator not available

RE: Struts Validator and Select boxes

2004-03-26 Thread Janarthan Sathiamurthy
Hi Niall, I am attaching the validation.xml and the jsp that i have used. I have done the exact thing that you had specified earlier before posting to the mailing list. I am not clear where i am going wrong. The Struts-config entry goes like - form-bean name=ocsReportForm

RE: html:text -- value attribute won't take rtexprvalue

2004-03-26 Thread Wendy Smoak
From: Bender, James [mailto:[EMAIL PROTECTED] I'm new to Struts and have searched without luck on this one: I have an html:text ... that I'm simply trying to put a runtime expression into, like % String rtexpr = bob; % html:text property=searchType value=%=rtexpr % And instead of