SHINE enterprise pattern

hello programmers !!!

I'm the manager of j2OS team.we have produced a new pattern for j2EE.it's open souce and registered in sourceforge .we will be glad if u download it and say ur opinions about it.and if you find it good introduce it in ur website.
it's document is also availabe in :
http://SourceForge.net/projects/shine-enterpris/files/
our site is : j2OS.org

This is my sample for maplet in shine

it's fantastic !!! there isn't any need to request.getParameter !!!!

here is requset page :

<%@ page contentType="text/html;charset=windows-1256"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>untitled</title>
</head>
<body>
<form action="http://192.168.0.10:8988/Maplet-Project-context-root/servlet/org.j2sos.jmeu.mypackage.Engine" method="get">
<P>name :
<input type="text" name="name"/>
</P>
<P>family :
<input type="text" name="family"/></P>
<P>
<input type="submit" value=" OK "/>
</P>
</form>
</body>
</html>

response page :

<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/WEB-INF/maplet.tld" prefix="maplet"%>
<maplet:Service name="name_empty">Name field is empty !</maplet:Service>
<maplet:Service name="family_empty"> Family field is empty !</maplet:Service>
<maplet:Service name="both_empty">Name and family fields are empty !</maplet:Service>
<maplet:Service name="ok"> welcome !</maplet:Service>

a maplet class :

package org.j2sos.jmeu.mypackage;
import org.j2sos.shine.maplet.*;

public class Engine extends Maplet {
public String name;
public String family;
private String forward;
public void initialize() {
}
public void request() throws Exception {
if (!(name.equals("")) && !(family.equals(""))) {
forward = "ok";
} else if ((name.equals("")) && (family.equals(""))) {
forward = "both_empty";
} else if (name.equals("")) {
forward = "name_empty";
} else if (family.equals("")) {
forward = "family_empty";
}
}
public void rater() throws Exception {
forward("../response.jsp", forward);
}
}

and a tld file :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-Sun Microsystems, Inc.DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>maplet</shortname>
<tag>
<name>Service</name>
<tagclass>org.j2sos.shine.maplet.tag.Service</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
</attribute>
</tag>
<tag>
<name>SecureService</name>
<tagclass>org.j2sos.shine.maplet.tag.SecureService</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
</attribute>
</tag>
<tag>
<name>ErrorService</name>
<tagclass>org.j2sos.shine.maplet.tag.ErrorService</tagclass>
<bodycontent>JSP</bodycontent>
</tag>
</taglib>

moc.liamg|oogtahgihgah.dimo#moc.liamg|oogtahgihgah.dimo

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.