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

Validation Failed error message

2003-09-18 Thread Mehran Zonouzi
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: Mehran Zonouzi

What is wrong with this expression?

2003-09-17 Thread Mehran Zonouzi
Hi, I can not understand why the below does not function.. html:link action=editcontact.do?page=editcontactcontactid=%=contact.getID()%%=contact.getLastName()%, %=contact.getFirstName()% /html:link When the mouse is hovering over the link I get the below:

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

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. td width=130 html:link action=Contacts.do?page=viewcontactlistbContact List/b/html:link /td

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 immediately

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): html:link action=contact.do paramId=page paramName=viewcontactlist paramScope=request/html:link My ActinForm is called

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: td width=130a href=/servlets/blotter/Contact?page=viewcontactlist target=rightframe class=linkboldContact List/a/td 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

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

2003-09-09 Thread Mehran Zonouzi
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: td width=130a href=/servlets/blotter/Contact?page=viewcontactlist target=rightframe class=linkboldContact List/a/td I want

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

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

2003-09-09 Thread Mehran Zonouzi
At 15:03 +0100 9/9/03, Mehran Zonouzi wrote: Yes I am going to pass the same param to the link every time. This is what

RE: no getter method found

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

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

no getter method found

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

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

Re: Help or tutorial

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

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

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

2003-08-18 Thread Mehran Zonouzi
--- Mehran

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

2003-08-18 Thread Mehran Zonouzi
--- Mehran Zonouzi [EMAIL PROTECTED] wrote: Are there any complete examples anywhere on the subject? I'm not sure

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

2003-08-18 Thread Mehran Zonouzi
--- Mehran Zonouzi [EMAIL PROTECTED] wrote: Thanks David. You may or may have noticed this but I am very new to this mailing list so please excuse me for asking elementary