Link-to-action?

2003-12-06 Thread Theodosios Paschalidis
Hi all, I am a new struts user utilizing it for my uni project. I have reached a point that I do not know how to handle the struts way and am really stuck! I spent a lot time on this and I would be grateful for any further info! I am dynamically producing some search results. I will be

Re: Link-to-action?

2003-12-08 Thread Theodosios Paschalidis
current project we are using an adapted version of the LinkXTag class provided with the struts example application. Check out this class and I hope it is what you need. Kind regards Dennis Hunziker -Original Message- From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED] Sent: Sonntag

Tomcat/Struts Unicode Encoding/Decoding problems

2004-01-23 Thread Theodosios Paschalidis
Hi all, I am trying to setup a database driven web site that displays unicode characters. I have spent much time on this but my attempts have been unsuccessful. I have tested my JDBC business logic with the database and works fine but when I use my application to perform a search it fails to

Re: Tomcat/Struts Unicode Encoding/Decoding problems

2004-01-23 Thread Theodosios Paschalidis
/filter-mapping - Original Message - From: Theodosios Paschalidis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 23, 2004 5:11 PM Subject: Tomcat/Struts Unicode Encoding/Decoding problems Hi all, I am trying to setup a database driven web site that displays

Re: Tomcat/Struts Unicode Encoding/Decoding problems [RESOLVED]

2004-01-23 Thread Theodosios Paschalidis
, January 23, 2004 4:11 PM Subject: RE: Tomcat/Struts Unicode Encoding/Decoding problems From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED] here is the beginning of my xml document. !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee

Validation for Unicode characters?

2004-01-24 Thread Theodosios Paschalidis
Hi all. I am internationalizing my application and I was wondering whether the standard validators can be used with Unicode (greek) characters by the proper modification of the regular expression. Standard [a-z] expressions doesn't recognize unicode characters, throwing the predefined error.

Re: Validation for Unicode characters? [Resolved]

2004-01-25 Thread Theodosios Paschalidis
24, 2004 9:48 PM Subject: Re: Validation for Unicode characters? Theodosios Paschalidis wrote: Hi all. I am internationalizing my application and I was wondering whether the standard validators can be used with Unicode (greek) characters by the proper modification of the regular expression

Locale Object and locale-dependent validation

2004-01-26 Thread Theodosios Paschalidis
Hi all, I am trying to get my validator to detect the user's local by having this in the validation.xml, before the alternative validation form name=registerForm locale=el As it is, it seems to use the server's default locale and not the client's. I have already internationalized my JSPs by

File /tags/struts-logic not found

2004-01-29 Thread Theodosios Paschalidis
Hi all, I had to delete my application's temporary directory in Tomcat's \work\Standalone\localhost because it was not running using my latest compiled files. Now when I access my application I get the following error and I don't have a clue why that is so! Any ideas? Thank you for your

[RESOVLED] Re: File /tags/struts-logic not found

2004-01-30 Thread Theodosios Paschalidis
Thank you guys, appartently it was just that in my index page i was reffering to /tags/struts-logic rather than /WEB-INF/struts-logic.tld The strange thing is that I did not make ANY changes between deleting the temp file and reaccessing my app ! Theo - Original Message - From:

Separating Strut and Validator errors

2004-02-16 Thread Theodosios Paschalidis
Hi all, a quick newbie question. When I use an ActionError in my Action class in conjuction with the Validator, I get all my errors reported as server side validations (i.e. no java script). I have found the following code in the book Struts In Action to handle that but I guess it's

Simple ActionError question

2004-02-25 Thread Theodosios Paschalidis
Hi all, just a newbie question. I have a PlaceOrderAction and I want to display as an ActionError the items that were out of stock. I would like to be able to pass a String to my ActionError. Is there a way to do this may using Format? Could somebody provide an example? Suppose I have a

Re: Simple ActionError question

2004-02-25 Thread Theodosios Paschalidis
( Globals.ERROR_KEY, errors ); fwd = new ActionForward( _mapping.getInput() ); } } Theodosios Paschalidis wrote: Hi all, just a newbie question. I have a PlaceOrderAction and I want to display as an ActionError the items that were out of stock. I would

Re: validation.xml with German Characters (sauch as uuml;)

2004-03-01 Thread Theodosios Paschalidis
Hi guys, I had similar issues with Greek. Certain regular expressions that were supposed to work with Unicode characters, actually didn't. A Struts fellow suggested changing the xml's encoding to UTF-8 as follows ?xml version=1.0 encoding=UTF-8 ? I was then able to insert Greek characters

Re: Checking if user has a valida session

2004-03-13 Thread Theodosios Paschalidis
Hi all, I was just trying to figure out how to do that. (newbie) I have an app that has some pages available for all, some for logged in users and some for administrators. I prevent access to logged-only pages by a tags that hide the relevant functionality. I have now written an abstract

Re: Checking if user has a valida session

2004-03-13 Thread Theodosios Paschalidis
on if (isLogged(request)) { HttpSession session = request.getSession(); LogonForm user = (LogonForm) session.getAttribute(Constants.USER_KEY); return (user.isAdmin()); } else { return false; } -Original Message- From: Theodosios Paschalidis

Re: Checking if user has a valida session

2004-03-14 Thread Theodosios Paschalidis
. Adam On 03/13/2004 11:43 PM Theodosios Paschalidis wrote: Struts seems to be erratic! It first worked then with no changes it didn't! Something is going terribly wrong with how the server updates the classes... I believe the safest bet is to do it my jsp. -Could somebody please give

Accessing boolean attribute using logic

2004-03-15 Thread Theodosios Paschalidis
Hi all, I have unsuccessfuly spent all this time trying to figure this and it must be very simple... In my JSP I have code like this: logic:equal scope=session name=userid property=Admin value=false for a bean boolean property defined like this: private boolean admin = false; public boolean

Re: Struts Validator prints all javascript functions

2004-03-15 Thread Theodosios Paschalidis
Hi Kunal, I do not use Tiles nor the DynaValidator but I get the same in a certain Form. I use Struts 1.1 Theo - Original Message - From: Kunal H. Parikh [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, March 15, 2004 9:38 PM Subject: RE: Struts

(Newbie) Separating Client From Server side errors

2004-03-16 Thread Theodosios Paschalidis
Hi all, in my application I use both the validator for client side validation and server side validation. My problem is that when validation fails, I get the error reported as server side and not in a Javascript fashion. Additionally when a validation error occurs my reset button does not

Re: ValidatorForm

2004-03-19 Thread Theodosios Paschalidis
Hi Sam, reset seems to work fine when using ValidatorForm. Nevertheless if your action throughs a GLOBAL.ERROR and you do a return (new ActionForward(mapping.getInput())); reset won't work (at least that has been my experience) Theo - Original Message - From: as as [EMAIL PROTECTED] To:

Dummy ActionForms?

2004-03-19 Thread Theodosios Paschalidis
Hi all, I am trying to execute an Action using only a dummy form (empty). I have successfully used this in other occasions but it seems to fail now. In my config I have form-beans form-bean name=closeOrderForm type=app.CloseOrderForm / /form-beans !-- CLOSE ORDER -- action

Re: Dummy ActionForms?

2004-03-19 Thread Theodosios Paschalidis
code and see what you're casting. Post the code so others can see, too. --- Theodosios Paschalidis [EMAIL PROTECTED] wrote: Hi all, I am trying to execute an Action using only a dummy form (empty). I have successfully used this in other occasions but it seems to fail now. In my config