MockStruts error

2004-01-15 Thread Mehran Zonouzi
Hi, I have the following mock test code. When I run it I get the below error message. Any ideas? java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc

Validation Failed error message

2003-09-18 Thread Mehran Zonouzi
etters for contactId be called? // This is my ActionForm class package com.db.gcp.lemweb.blotter.contacts; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.*; //--- // Author: Mehr

Re: What is wrong with this expression

2003-09-17 Thread Mehran Zonouzi
Thanks Rob. It worked! -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the

What is wrong with this expression?

2003-09-17 Thread Mehran Zonouzi
Hi, I can not understand why the below does not function.. <%=contact.getLastName()%>, <%=contact.getFirstName()%> When the mouse is hovering over the link I get the below: http://servername/editcontact.do?page=editcontact&contactid=<%=contact.getID()%> instead of http://servername/editcon

Re: Forwarding to a target page

2003-09-15 Thread Mehran Zonouzi
What exactly does this mean? Where "targetAction" exists in some scope and has a value of "viewcontactlist". -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediat

Forwarding to a target page

2003-09-15 Thread Mehran Zonouzi
Hi, I have a web page with 2 vertical frames. I have the following link in my left hand frame and I want the users to view the results in the right hand frame when they click on the link. Contact List Basically I want to do copy the below functionalitywith my target being the rig

Cannot find bean viewcontactlist in scope request

2003-09-10 Thread Mehran Zonouzi
I am getting this error message when my JSP page first loads up. Cannot find bean viewcontactlist in scope request I am using a link to call my ActionForm class( as below): My ActinForm is called ContactForm and I want to call it using a param called 'page' with the initial value of 'viewco

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
Mailing List" At 15:03 +0100 9/9/03, Mehran Zonouzi wrote

using html:link taglibs to call an ActionForm bean from a link

2003-09-09 Thread Mehran Zonouzi
Hi, Does anyone know how to use the html:link taglibs to call an ActionForm bean from a link? I also want to pass a param called 'page' to the link and set it's value to be 'viewcontactlist'. This is my ActionForm bean: import javax.servlet.http.HttpServletRequest; import org.apache.strus.acti

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
r several mappings and use an action mapping "parameter" to dispatch execution to a parameter-specific method inside the action. Hope this helps. Joe At 14:23 +0100 9/9/03, Mehran Zonouzi wrote: >Hi, > >I have the following link in my JSP page: > >href="/servlets/bl

How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
Hi, I have the following link in my JSP page: Contact List I want to mimic the above using Struts JSP tags(I don't want to use a SUBMIT button). However, I want to call my ActionForm class instead of the servlet and I would like to set the value of the param 'page' to 'viewcontactlist' for my

RE: no getter method found

2003-08-20 Thread Mehran Zonouzi
I solved the problem... In my struts-config file inside the tag I was refering to the Action class instead of the ActionForm class and that was causing problem.

no getter method found

2003-08-19 Thread Mehran Zonouzi
I have the below in my jsp page Last Name: and this in my ActionForm subclass private String lastName = null; public String getlastname(){ return this.lastName; } public void setlastname( String lastName){ this.lastName = lastName; } But I keep getti

No getter method for property lastName of bean

2003-08-19 Thread Mehran Zonouzi
I kep getting a javax.servlet.ServletException: No getter method for property lastName of bean org.apache.struts.taglib.html.BEAN error message when I try to call the below .jsp page. I am sure I am using the gettter and setter methods with the correct names. I have also tried calling the jsp pr

Re: Where do I download Commons validator example app from?

2003-08-18 Thread Mehran Zonouzi
Subject: Re: Where do I > download Commons validator example app from? > 18/08/03 15:55 > > Please respond to > > "Struts Users > > Mailing List"

Re: Where do I download Commons validator example app from?

2003-08-18 Thread Mehran Zonouzi
ing List" --- Mehran Zonouzi <[EMAIL PROTECTED]> wrote: > > Are there any complete examples anywhere on the subject? I'm not sure what you mean by complete. The example de

Re: Where do I download Commons validator example app from?

2003-08-18 Thread Mehran Zonouzi
ing List" --- M

Where do I download Commons validator example app from?

2003-08-18 Thread Mehran Zonouzi
Hi, Can someone tell me where to download the commons validator example app from? I am interested in the example of how to use the struts validator outside of Strus framework. Thanks -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient

Re: Using Struts validator framework outside of struts

2003-08-18 Thread Mehran Zonouzi
The O'Reilly book 'Jakarta Struts' by Chuck Cavaness has a small section on the subject starting on page 279 that might be of help. I've never tried it though... -jeff On Monday, August 18, 2003, at 03:49 A

Re: Help or tutorial

2003-08-18 Thread Mehran Zonouzi
http://javaboutique.internet.com/tutorials/Struts is a good place to start "Arindam

Using Struts validator framework outside of struts

2003-08-18 Thread Mehran Zonouzi
Hi, I am very new to the validator framework. I would like to use it outside of Struts framework. Is it possible to do this? If so can someone point me in the right direction plz... Thank you -- This e-mail may contain confidential and/or privileged information. If you are not the intended r