how do struts resolve the variable?

2006-08-14 Thread Michael Cheung
Hi, all; I create some action which have form on it. Sometime I can access the ActionForm bean via classname, sometime I can access it via variablename(*1), and sometime I have to set it into request object (*2) to access it. *1: in Action, write this code, and access ActionForm via myForm. MyAct

Re: Re: Struts encoding problem ?

2006-08-14 Thread Dakota Jack
Just a thought, which I hope is helpful: package com.topiatechnology.mdci.core.framework.util.console; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.Serializable; import com.topiatechnology.mdci.core.framework.report.util.UnicodeFor

What's the difference between struts-base and struts-el?

2006-08-14 Thread Michael Cheung
Hi, all; What's the difference between struts-base to struts-el. Document here said: http://struts.apache.org/1.2.9/userGuide/building_view.html#struts-el Standard support JSP expression like <%= stringvar %> and EL support EL expression. But my test on base taglib shows, EL expression is suppor

what's the c.tld in struts-el designed for?

2006-08-14 Thread Michael Cheung
Hi, all; c.tld in struts-el is not support rtexprssion. So every flag should be set via action. I don't think it can finish any job in this style. What's the taglib designed for? Should I use c-rt.tld as default? Thanks Regards; Michael

Re[2]: How to convert absolute URL to context-relative URL?

2006-08-14 Thread Michael Cheung
Hi,Monkeyden; Thanks for your reply. Now I can get the context-relative path, but the extension is also omitted. How to get the path with extension? Actually, I want to do this. URL: /context-name/appname.do?param1=1¶m2=2 I want to get /appname.do?param1=1¶m2=2 and use this string to new Actio

RE: Splitting validation.xml

2006-08-14 Thread Kevin Maeer
> > If you have time, can you try the example apps from 1.3 with your > setup? The apps now load validator-rules.xml from struts-core.jar. > Probably the easiest thing is to download struts-1.3.5-apps.zip from > here, > http://people.apache.org/builds/struts/1.3.5/ > deploy the struts-cookbook

Re: Struts encoding problem ?

2006-08-14 Thread Mark Breitner
If there is any way to escape the character (and all unicode characters) via javascript before I send it - this would be the solution. But I havent found one yet. Original-Nachricht Datum: Mon, 14 Aug 2006 13:56:11 -0400 Von: Monkeyden <[EMAIL PROTECTED]> An: "Struts Users Mai

Re: Struts encoding problem ?

2006-08-14 Thread Mark Breitner
1) send the Euro character via struts : This means I have a form:text field and enter the "€" character 2) I am sending the entity itself Original-Nachricht Datum: Mon, 14 Aug 2006 13:30:17 -0400 Von: Monkeyden <[EMAIL PROTECTED]> An: "Struts Users Mailing List" Betreff: Re:

[SOLVED?] Re: Map-based nested bean--No bean specified?

2006-08-14 Thread Scott Van Wart
OK so I replaced the 'getChild( String id )' method with the following: public ChildPerson getChild( String id ) { ChildPerson child = this.children.get( id ); if ( child == null ) { child = new ChildPerson(); this.children.put( id, child ); } return child; } And my p

Re: Struts encoding problem ?

2006-08-14 Thread Monkeyden
This avoids the real question. I would have to hear a pretty good case as to why the character itself needs to be sent to begin with. On 8/14/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: Try sending its Unicode Equivalent. Available from www.unicode.org. CHetan -Original Message- Fro

RE: Struts encoding problem ?

2006-08-14 Thread Chetan Pandey
Try sending its Unicode Equivalent. Available from www.unicode.org. CHetan -Original Message- From: Mark Breitner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 12:55 AM To: user@struts.apache.org Subject: Struts encoding problem ? Hi, I´ve got the problem the I want to send

Re: Struts encoding problem ?

2006-08-14 Thread Monkeyden
First, what does "send the Euro character via struts" mean? Second, are you using the entity or numeric references (€ and € respectively)? Do you really need to "send the character" itself? It may be best to use the character itself just for presentation purposes and pass some string that indica

Struts encoding problem ?

2006-08-14 Thread Mark Breitner
Hi, I´ve got the problem the I want to send the "€" (Euro) character via struts and whenever this character appears in a string, all I receive in my action is an empty string. Is this an encoding problem and what do I have to do to solve it ? -- Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nu

RE: JavaScript validation errors

2006-08-14 Thread O'Shea, Sean
Hi all, It appears a faulty JavaScript function was being plugged in elsewhere in the application. This was causing JavaScript rendering errors when the page loaded. I've removed the faulty script and the client side validation works perfectly. Thanks for all the suggestions Sean -Original

Map-based nested bean--No bean specified?

2006-08-14 Thread Scott Van Wart
I posted on this before, so I thought I'd post a more concrete example this time. I'm using a map-based nested bean, and I'm getting the following error: java.lang.IllegalArgumentException: No bean specified org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyU

RE: JavaScript validation errors

2006-08-14 Thread Srinivas_Biragoni
Try to put instead of ...just a trial.. Thanks, Srinivas. "O'Shea, Sean" To

Re: No getter method for property

2006-08-14 Thread Srinivas_Biragoni
I think you are missing Thanks, Srinivas. "Daoud Abdelmonem Faleh"

RE: JavaScript validation errors

2006-08-14 Thread O'Shea, Sean
Hi Srinivas, I tried setting my login form like this: . ... Still no luck in getting the javascript function called though. I've checked the source of the generated page and it looks like the validateLoginForm function is getting generated: function validateLoginForm(form) {

Re: How to convert absolute URL to context-relative URL?

2006-08-14 Thread Monkeyden
You may want to look at ActionMapping.getPath(). "Return context-relative path of the submitted request, starting with a slash ("/") character, and omitting any filename extension if extension mapping is being used." On 8/14/06, Michael Cheung <[EMAIL PROTECTED]> wrote: Hi, all; I get reques

Re: How to handle session validation in struts 1.1

2006-08-14 Thread Wendy Smoak
On 8/14/06, Anil Kumar T <[EMAIL PROTECTED]> wrote: I need to validate the user session in all actions. For this I tried using saveToken, isTokenValid(), but failed to use them. Not sure what the reason is but it fails during second request. Any info on this particular step or is there any other

Re: Using Resource Bundle

2006-08-14 Thread Daan
See the getResources(HttpServletRequest request) in the Action class Regards On 8/14/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: Dear All, I want to know if I can use the resource bundle defined in struts-config from Action Class I can use it in JSP using JSTL or struts tag lib, but for some r

How to handle session validation in struts 1.1

2006-08-14 Thread Anil Kumar T
Hi All, I need to validate the user session in all actions. For this I tried using saveToken, isTokenValid(), but failed to use them. Not sure what the reason is but it fails during second request. Any info on this particular step or is there any other way to handle the session in struts? Any he

No getter method for property

2006-08-14 Thread Daoud Abdelmonem Faleh
Hello folks, I use struts 1.2.9 and deploy to oc4j 10.1.3 My struts-config.xml containes: ... ... ... PersonneEtrangereDetails.jsp has: public class EditPersonneEtrangereForm extends org.apache.struts.action.ActionForm { private Date

RE: JavaScript validation errors

2006-08-14 Thread Srinivas_Biragoni
Hi sean, i think if you put onsubmit="return validateLoginForm(this); it works fine with client(front-end validation)side and if you remove onsubmit from jsp then it works fine with server(backend validation)may be this helps you Thanks, Srinivas.

Using Resource Bundle

2006-08-14 Thread Ahmed Hashim
Dear All, I want to know if I can use the resource bundle defined in struts-config from Action Class I can use it in JSP using JSTL or struts tag lib, but for some reason I want to use it from the Action class Is there any way I can use it without making new instance from the resource file? I keen