File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Blatant Advertising and the fly likes Shine J2EE Framework 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Blatant Advertising
Bookmark "Shine J2EE Framework 1.2 " Watch "Shine J2EE Framework 1.2 " New topic

Shine J2EE Framework 1.2

mehdi mousavi

Joined: Feb 15, 2009
Posts: 5
Shine J2EE Framework 1.2 Vs. Other J2EE Frameworks

Author: Amir Sam Bahador
Subjects list:
-The object of edition of this article
First chapter: Can one method change all things?
-One new method

The object of editing this essay:

What we expect from the new tools, are not more than what they are, so we can hope. For few years, new J2EE Framework for Java did not become popular like the Struts. I do not say that it is not made, but I say that it did not become popular, but we submitted you new program more that what you expect, so be ready and choose your way and method.
A way for approaching shine.

First chapter: Can one method change all things?

In this chapter, we are going to acquaint you with shine's new features in 1.2 editions.

One new method:
In the previous small article (J2EE And Service Oriented Programming), you have acquainted with shine. If you have not studied the article J2EE And Service Oriented Programming, firstly, I suggest you to study it, then keep continuing to study this article, because I do not like to make voluminous article, whereas others like it.

I am sure that you have worked with Session, Application in JSP and FormBean in Struts. Utilizing each of them has the own special problems. Disadvantages of utilizing the above mentioned cases are traffic bar in Ram level, complicated codes and boring.
As we addressed in the previous article, on the contrary to Struts, in Shine, you can use the URL parameters in the services.
For example, you can send the name's contents to the mapping class via one URL, and after the processing the name's contents, guide the user toward a service, you can use the URL's contents again in the considered service. This process was not possible in Struts, and not now, you have 3 principal options for doing this process in Struts.
1- Utilizing the Session: making busy the server RAM.
2- Utilizing the Application: limited utilizing
3- Utilizing the FormBean: establishing some extra classes
It is done easily in shine; you can use easily URL's contents in considered service again in shine. But, it is not finished yet.
For clearing the case, we give an example. You have made a HTML form in which there is a context filed which is titled famil. When the user submits the form, the functional program will guide him/her toward the mapping class. In the mapping class, the amount of received URL which contains the famil has been considered, and user is guided toward the special service.
In the considered service, the famil amount has been received and displayed twice; this is what the shine does!

There is a small problem, assume that you need to produce amount and send it to the considered service in the mapping class. this amount does not exist in the HTML format! Mapping class undertakes to produce this amount.
In the mapping class, you can not use Application, Session and FormBean.
Figure 1-1
As you see, the above mentioned function is not possible in shine, but be careful that there is a much loveable creature which is titled URL.
In the mapping class, you are able to add an amount to the URL easily and guide toward the considered service.
I give an example regarding the above mentioned case, in order to clarify the matter:
You have created an HTML format, in which there is a context field which is titled famil, when the user submits the form, the functional program guides him/her toward the mapping class, in the mapping class, the received URL's amount which contains the famil's amount is considered and the age will be created, and after doing this process, the age will be added to URL, and the user is guided toward a special service. In the considered service, the famil amount and age are obtained from URL and displayed for it.
Come to observe the amounts of URL's parameters before entering the mapping class:
Now, come to observe the amounts of URL's parameters after exiting the mapping class, and before entering the service:
Famil=fowloer&age =23

Be careful that there is no limitation in utilizing the method of addURL , you could use session just one time, but you can use this method , pay attention to the following example:
Figure 1-2

In the previous example, the famil's amount was sent through form and URL to the mapping class, when the code is done, age=23 and name =Amir is added to URL, now you can receive amount, name, age and famil in the considered service 2 and show it to the user.
With the above mentioned method, you have used URL instead of application, now come to use URL instead of session.
Figure 1-3

In the above code, the age and name will be added to URL in any condition.
If the user famil will be equal to fowler, the amount of sent URL to service 2 will be as follow:

If the user famil will not be equal to fowler, and for example, it would be equal to bahador, the amount of sent URL to service1 will be as follow:
Now, pay attention to the following code:
Figure 1-4

If the user famil will be equal to fowler, the amount of sent URL to service 1 will be as follow:

With utilizing this method, you do not need Session, Application and FormBean.

I can't show this sample's pictures in this forum. please download complete sample from below link:

J2SOS Organization Web Site:

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

What is your question Medhi, I don't understand your post. Is this copyrighted materials that you aren't allowed to post? We have some rules here, so I need to understand your intentions in this post.


Mark Spritzler

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

I see it now, you are part of this project and you are promoting it here. Unfortunately, I can't leave this here, I have to move it to the Blatant Advertising forum. You can put your link into your signature and reply and answer some people's post, but you can't just promote your product directly.

Thanks for you understanding, and I am sure Paul, the owner of JavaRanch would be very happy to make a deal with your guys on banner space.

Good Luck with your project.

I agree. Here's the link:
subject: Shine J2EE Framework 1.2
It's not a secret anymore!