AW: Confused about everything ... - I think now it's a problem with the ActionForm

2001-09-05 Thread Antonio Weber

Thank you very much !!

Now it works, but now i have another problem.
it's about the action form. when i call the action
i get the error:

No getter method for property Name of bean
org.apache.struts.taglib.html.BEAN

my class looks like this:

import org.apache.struts.action.ActionForm;

public class LookupActionForm extends ActionForm {

private String name;

public void setName(String pName) {
   name = pName;
}

public String getName() {
   return(name);
}

public LookupActionForm() { }

}

where can be the Problem ?


-Ursprüngliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 17:27
An: [EMAIL PROTECTED]
Betreff: Re: Confused about everything ...


The one other thing to check is for something like this in your web.xml
where the Struts servlet is loaded

init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param

If your struts-config.xml is modelled after most of the examples, it
probably has this in it

action
path=/admin/Reload
type=org.apache.struts.actions.ReloadAction/

if so, try /admin/reload.do and see if you get an OK on the screen. Then
try the other URI again.

You might also try (this part of) the application under Tomcat or Resin,
to be sure it is not a WegLogic deployment issue.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Antonio Weber wrote:
 
 Hi !!
 
 I get an ServletException on my bea with this message
 
 Cannot retrieve mapping for action /LookupAction
 Must I add in the web-xml the class as an servlet ??
 I don't think so but no I'm so confused ...
 
 In my struts-config.xml is this entry:
 
 action path=/LookupAction type=lookup.servlets.LookupAction
 name=LookupActionForm  input=/lookup/lookups.jsp/action
 
 
 in my web.xml I have for the servlet-nameaction
 a *.do mapping...
 the form-tag looks like this:
 
 form action=/LookupAction.do ...
 
 where is my fault ? whats going wrong ?
 Please help me 



Re: AW: Confused about everything ... - I think now it's a problem with the ActionForm

2001-09-05 Thread Jean-Noel Ribette

If your method are getName() and setName(...) the property name is name 
without caps (javabean spec).  I think you are using Name instead of 
name in your jsp.

Jean-Noel


At 09:15 05/09/2001, you wrote:
Thank you very much !!

Now it works, but now i have another problem.
it's about the action form. when i call the action
i get the error:

No getter method for property Name of bean
org.apache.struts.taglib.html.BEAN

my class looks like this:

import org.apache.struts.action.ActionForm;

public class LookupActionForm extends ActionForm {

 private String name;

 public void setName(String pName) {
name = pName;
 }

 public String getName() {
return(name);
 }

 public LookupActionForm() { }

}

where can be the Problem ?


-Ursprüngliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 17:27
An: [EMAIL PROTECTED]
Betreff: Re: Confused about everything ...


The one other thing to check is for something like this in your web.xml
where the Struts servlet is loaded

 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param

If your struts-config.xml is modelled after most of the examples, it
probably has this in it

 action
 path=/admin/Reload
 type=org.apache.struts.actions.ReloadAction/

if so, try /admin/reload.do and see if you get an OK on the screen. Then
try the other URI again.

You might also try (this part of) the application under Tomcat or Resin,
to be sure it is not a WegLogic deployment issue.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Antonio Weber wrote:
 
  Hi !!
 
  I get an ServletException on my bea with this message
 
  Cannot retrieve mapping for action /LookupAction
  Must I add in the web-xml the class as an servlet ??
  I don't think so but no I'm so confused ...
 
  In my struts-config.xml is this entry:
 
  action path=/LookupAction type=lookup.servlets.LookupAction
  name=LookupActionForm  input=/lookup/lookups.jsp/action
 
 
  in my web.xml I have for the servlet-nameaction
  a *.do mapping...
  the form-tag looks like this:
 
  form action=/LookupAction.do ...
 
  where is my fault ? whats going wrong ?
  Please help me 





AW: AW: Confused about everything ... - I think now it's a problem with the ActionForm

2001-09-05 Thread Antonio Weber

Jeah you are right !!
Damn fault ;)
Thank you very much !

Antonio

-Ursprüngliche Nachricht-
Von: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. September 2001 09:24
An: [EMAIL PROTECTED]
Betreff: Re: AW: Confused about everything ... - I think now it's a
problem with the ActionForm


If your method are getName() and setName(...) the property name is name 
without caps (javabean spec).  I think you are using Name instead of 
name in your jsp.

Jean-Noel


At 09:15 05/09/2001, you wrote:
Thank you very much !!

Now it works, but now i have another problem.
it's about the action form. when i call the action
i get the error:

No getter method for property Name of bean
org.apache.struts.taglib.html.BEAN

my class looks like this:

import org.apache.struts.action.ActionForm;

public class LookupActionForm extends ActionForm {

 private String name;

 public void setName(String pName) {
name = pName;
 }

 public String getName() {
return(name);
 }

 public LookupActionForm() { }

}

where can be the Problem ?


-Ursprüngliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 4. September 2001 17:27
An: [EMAIL PROTECTED]
Betreff: Re: Confused about everything ...


The one other thing to check is for something like this in your web.xml
where the Struts servlet is loaded

 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param

If your struts-config.xml is modelled after most of the examples, it
probably has this in it

 action
 path=/admin/Reload
 type=org.apache.struts.actions.ReloadAction/

if so, try /admin/reload.do and see if you get an OK on the screen. Then
try the other URI again.

You might also try (this part of) the application under Tomcat or Resin,
to be sure it is not a WegLogic deployment issue.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Antonio Weber wrote:
 
  Hi !!
 
  I get an ServletException on my bea with this message
 
  Cannot retrieve mapping for action /LookupAction
  Must I add in the web-xml the class as an servlet ??
  I don't think so but no I'm so confused ...
 
  In my struts-config.xml is this entry:
 
  action path=/LookupAction type=lookup.servlets.LookupAction
  name=LookupActionForm  input=/lookup/lookups.jsp/action
 
 
  in my web.xml I have for the servlet-nameaction
  a *.do mapping...
  the form-tag looks like this:
 
  form action=/LookupAction.do ...
 
  where is my fault ? whats going wrong ?
  Please help me 




Re: Confused about everything ...

2001-09-04 Thread Ted Husted

The one other thing to check is for something like this in your web.xml
where the Struts servlet is loaded

init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param

If your struts-config.xml is modelled after most of the examples, it
probably has this in it

action
path=/admin/Reload
type=org.apache.struts.actions.ReloadAction/

if so, try /admin/reload.do and see if you get an OK on the screen. Then
try the other URI again.

You might also try (this part of) the application under Tomcat or Resin,
to be sure it is not a WegLogic deployment issue.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Antonio Weber wrote:
 
 Hi !!
 
 I get an ServletException on my bea with this message
 
 Cannot retrieve mapping for action /LookupAction
 Must I add in the web-xml the class as an servlet ??
 I don't think so but no I'm so confused ...
 
 In my struts-config.xml is this entry:
 
 action path=/LookupAction type=lookup.servlets.LookupAction
 name=LookupActionForm  input=/lookup/lookups.jsp/action
 
 
 in my web.xml I have for the servlet-nameaction
 a *.do mapping...
 the form-tag looks like this:
 
 form action=/LookupAction.do ...
 
 where is my fault ? whats going wrong ?
 Please help me