You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by guruprasad jakka <gu...@ureach.com> on 2003/07/25 12:04:35 UTC

Struts euivalent tag for JSP expression tag

hi struts users,

Presently i am doing a small project  of converting a web
application module written in JSP's to struts framework.
These JSP's have tons of business logic in their pages.
The data is taken from a backend server using the jsp expression
tag.

eg.
<input type="password" name=<%= AuthGuiGlobalConstants.PASSWORD
%> class="textinput">


Is there a way i can replace this
 "<%=AuthGuiGlobalConstants.PASSWORD %> "
by equivalent struts tag.


AuthGuiGlobalConstants is a Java class where the constants are
defined. 


Thanks in Advance.

J G Guru Prasad
V sem, Information Technology,
Bachelor of Engineering,
National Institute of Technology Karnataka, Surathkal.
( formerly KREC )


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Nested bean : No getter method

Posted by Jean Bernard DUGIED <st...@oieau.fr>.
Hi

I am trying to reuse a class generated by some tool.
Class look like this :
/***********************************************************************
 * Module:  T_ADreglev2.java
 ***********************************************************************/

package org.oie.model;

import java.util.*;

public class T_ADREGLEV2
{
   /** District */
   public int ADR2CODE;
   /** FK text code du state */
   public int R2ADR1CODE;
   // other properties...

   public int getADR2CODE()
   {
      return ADR2CODE;
   }
   public void setADR2CODE(int newADR2CODE)
   {
      ADR2CODE = newADR2CODE;
   }
   // other methods...

  public int getR2ADR1CODE() {
    return R2ADR1CODE;
  }
  public void setR2ADR1CODE(int R2ADR1CODE) {
    this.R2ADR1CODE = R2ADR1CODE;
  }
}

I put this class in a Reglev2 business class as a nested bean. When
accessing the R2ADR1CODE field from a a jsp with :
      <html:text property="bean.R2ADR1CODE" size="50"/>

... I get :
org.apache.jasper.JasperException: No getter method for property
bean.R2ADR1CODE of bean org.apache.struts.taglib.html.BEAN

The fact that the property name's initial is in uppercase. Maybe it is the
problem. But similar code works perfectly well with the ADR2CODE property,
which is similar. So I am confused...

Do you have idea of what is going on : why does it work here and not there ?
tIA



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org