Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java
I download a pattern that it's name is shine enterprise pattern
 
it has also a document but it's hard to understand
 

plz somebody study it and answer my question
 
it said it has a new architecture
 
download it and it's doc from :
 
http://SourceForge.net/projects/shine-enterpris/files/
Posted 2-Jul-10 11:48am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Find following information useful.
 
Shine's parts
Shine pattern has been developed for variety of application. This pattern has these parts:
->Maplet: a framework for doing web projects which are coincidence with MVC architecture. This framework helps developers to follow a standard pattern for developing a web application. Maplet helps developers to save time of developing and extending.
->JShooter: a framework that makes reflects oriented programming an easy job for developers. Meanwhile it helps distributing application on the network.
->JConnection: This package helps developers to work with JDBC and Hibernate easier than before.
->Util: This package helps developers in these subjects:
1- File System
2- Runtime
3- Compiler
4- System Information
5- Web Socket
6- MD5
7- Thread
8- Validation
9- XML Parsing
10- Web uploading
 
On google groups
http://groups.google.com/group/j2sos/browse_thread/thread/f32f7a817c5938e7[^]
 

 

HTH
  Permalink  
Comments
john.stalin.java at 3-Jul-10 7:59am
   
Reason for my vote of 5
exaclty
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

john.stalin.java what did you mean "SELECT query"?
 
heartsofsea I had download it and read its doc. It sounds nice! I will search about it more!
 
JWMS is an architecture like MVC but as you said more complete than it.
 
I found out it is for developing service oriented programs with more fewer repetitive codes and more managed too. I read your sample code too it is really nice! you know you can have just one class and one or two response pages for each service its really wonderful!
 
other parts sound to be nice too! I'll tell you every thing new I found about it!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 8

hi bozorgvar!
 
my sample worked when I put it in my WEB_INF folder! test it!
  Permalink  
Comments
john.stalin.java at 4-Jul-10 16:16pm
   
Reason for my vote of 5
thx
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

yes you are right
 
but shine says it has a new architecture (JWMS)
 
do u know what is it ?
 
he said it's better than mvc ! is that correct ?
  Permalink  
Comments
Sandeep Mewara at 3-Jul-10 16:40pm
   
Reason for my vote of 1
Not an answer. Should had been a comment.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

yes this is correct men
with in java frameworks you cant make the SELECT query
but in shine Enterprise pattern or JWMS this is possible.
do know more read the doc
refer to http://sourceforge.net/projects/shine-enterpris/files/[^]
and see how it is easy and clear, and better than stuts.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

I found a 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>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 620
1 Maciej Los 610
2 CPallini 255
3 RyanDev 161
4 Peter Leow 125
0 OriginalGriff 5,784
1 Sergey Alexandrovich Kryukov 4,838
2 Peter Leow 3,009
3 Maciej Los 2,894
4 DamithSL 2,465


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 18 Jul 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100