Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-18 Thread Paul Benedict
Are you using the 1.3 DTD? Pierre Thibaudeau wrote: I upgraded from 1.3.5. (Before this upgrade, I had never attempted to use set-property in my action mappings.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-18 Thread Martin Gainty
Pierre- I did not see the stacktrace and or exception? Bon Chance, Martin-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may

[S2] Mixed zero/xml config; classname properties file issue?

2007-03-18 Thread Dave Newton
Hello, I'm playing with converting an existing XML-configured application to zero-config. We'll call it Mailreader for the sake of discussion. There's a property file called MailreaderSupport.properties. I've converted a couple of simplistic Actions (subclasses of MailreaderSupport) to

Struts Form Values are null

2007-03-18 Thread venkatesansriram
Hello, I have a form called as UserForm(UserForm.java ) and a UserAction(UserAction.java) configured in the struts config for the dispatch action method named getUserDetails.The UserForm has a property called as userID. My JSP Code is %@ taglib uri=http://struts.apache.org/tags-html;

Using Struts Validator framework

2007-03-18 Thread Kaushal, Anubhav
Hi, I am using Struts Validator framework and DynaActionForm for performing form data validations. The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve this ? It

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-18 Thread Paul Benedict
What version of the DTD are you using? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using Struts Validator framework

2007-03-18 Thread Dave Newton
--- Kaushal, Anubhav wrote: The user input is taken and then corresponding record is fetched from the database. Depending on the query result, I need to display appropriate message to the user. How can I achieve this? It's not clear to me what this has to do with the Validator framework,

Re: Struts Form Values are null

2007-03-18 Thread Martin Gainty
assuming you have some manner of userForm extending actionForm public class userForm extends ActionForm { //accessors //mutators //reset //validate }; //and then have an Action Class coded somthing like public class userAction extends Action { //execute method }; //struts-config.xml will need a

NullPointerException when using s:head theme=ajax/ in my header.jsp file

2007-03-18 Thread Jason Thurston
This application uses sitemesh 2.2.1 spring 2.0.3 struts 2.0.6 struts 1.2.9 struts-menu 2.4.2.1 If I put s:head theme=ajax/ in my header.jsp file I get a Nullpointer exception. I found this link http://forum.springframework.org/showthread.php?t=33874 talking about the same error message which

Re: Struts Form Values are null

2007-03-18 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: html:text name=userForm property=userID styleClass=usertextbox/ [...] Is there any reason for the userID to be null? I don't really remember much about S1 ActionForms, but do the properties have to be valid JavaBean fields, i.e. it should

Struts2 - displaying validation errors on jsp

2007-03-18 Thread Ray Clough
The struts2 s:textfield tag will automatically display the validation errors if you use the xhtml theme. I want to use the simple theme, and don't see any examples of how to retrieve the error messages for a given field. Could someone tell me what to retrieve to display validation errors

Re: Struts2 - displaying validation errors on jsp

2007-03-18 Thread Dave Newton
--- Ray Clough [EMAIL PROTECTED] wrote: Could someone tell me what to retrieve to display validation errors manually? http://struts.apache.org/2.x/docs/fielderror.html (Although... I vaguely recall a thread from last week referring to s:fielderrors.../ but I can't test right now :) d.

struts-power.gif will not display in struts2-mailreader-2.0.6

2007-03-18 Thread Peter Milne
I was wondering why the struts-power.gif image wasn't appearing in struts2-mailreader-2.0.6. It won't display because the filename starts with the word struts. I requested the image directly but got a 404 resource() is not available error. If you rename the image to strut-power.gif and change the

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-18 Thread Pierre Thibaudeau
2007/3/18, Paul Benedict [EMAIL PROTECTED]: What version of the DTD are you using? The heading of my struts-config.xml file reads as follows: ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.3//EN

Re: How to session attributes Struts 2.0.6

2007-03-18 Thread tom tom
Hi, It was my mistake I was refering to the wrong Action class in my struts.xml Please find my observations with regard to the portlet session handling 1) I implemented the SessionAware interface and it's method setSession and add the session attributes, This works with no issues 2) in the

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-18 Thread Paul Benedict
Pierre, Download the example applications. One of them (I think the cookbook) uses the actionId attribute. That should help you figure out what the problem is. Unfortunately the stack trace doesn't tell me anything important, so that's why I referring you to the example applications. Paul

[s2] SlashesInActionNames + wildcard mapping

2007-03-18 Thread zafer Mohamed
Hi There, I have set the below property in my struts.properties struts.enable.SlashesInActionNames = true And in my struts.xml I have action name=* result/view/{0}.jsp/result /action Now when I try to access the url /app/user/profile.zm/ where app is my namespace,

Re: Struts2 - displaying validation errors on jsp

2007-03-18 Thread Ray Clough
Thanks, Dave. It works fine, but neither the cssClass nor cssStyle attributes work. - Ray Clough [EMAIL PROTECTED] Dave Newton wrote: --- Ray Clough [EMAIL PROTECTED] wrote: Could someone tell me what to retrieve to display validation errors manually?

html:base equivalent in S2

2007-03-18 Thread John Shen
Hi, Expert, I heavily used html:base tag in my old S1 project but I cannot find its equivalent in S2. Could someone tell me the workaround in S2 or whether the future version of S2 will support it? Thanks in advance John -- View this message in context: