7.7.3  Connecting JSP tags to Java components 
These methods are called from an application JSP page at run time. 
getText(String propertyName) 
This method returns a String value of the property. When creating HTML forms with e FixIT Application 
Wizard, this method is used to add the actual application data into the forms. 
getEditedState() 
This method returns a text String 
DISABLED
 if a property should be rendered as a disabled HTML 
element. 
isSelected(String propertyName) 
Returns 
CHECKED= TRUE 
 if the property is marked as selected. The property must be represented by a 
CheckboxHolder component. 
isSelected(String propertyName, String radioGroupOption) 
Returns 
CHECKED= TRUE 
 if the property is marked as selected with the specified option. The property 
must be represented by a RadioGroupHolder component. 
getProperty(String propertyName) 
getProperty(String mappedName, String propertyName) 
getProperty(String fileNumber, String fieldNumber, String propertyName)
These methods are used to link JSP tags to real database values hold by the server applications.  They 
return a HTML representation of the property. 
PropertyName
 describes a programmatical name for the 
property as used in Java code and HTML element. 
MappedName
 can be used to identify the property 
with a logical name: MappedName is used as a parameter for 
getMappedProperty(String 
propertyName)
 method. 
Another way to connect Java components to JSP tags is to create tags like: 
  <%= myApplication.getCustomString() %> 
and then in the server application object code: 
  public String getCustomString() { 
   return myCustomComponent.getValue(); 
  } 
7.7.4  Redirecting to another JSP page 
setForward(String forwardPage) 
This method can be used to force the application JSP page (or query page) to forward to a different page.
29 






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

servlets web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved