File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Need help on JSP application development Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Need help on JSP application development" Watch "Need help on JSP application development" New topic
Author

Need help on JSP application development

Hema lata
Ranch Hand

Joined: Jan 24, 2005
Posts: 34
Hi All,

Need some valuable guidance/inputs/suggestions on
developing an web application using jsp

Details are:
The application which I will be developing has following features

1) form to enter user details
2) data will be saved indatabase
2) a report screen to be generated
3) And most inportant- the form will be accessed by employees of same organization in different cities in India.

My doubts and anxities are:
1) What all points I should consider before starting to build the pages
2) which web application server will be ideal. (tomcat, jrun...etc)
3) what security risk will be there considering form will be accessed at different locations of a organization
4) Can the application be developed using entirely only JSP's or
it needs to be combination of jsp and class files.

Thanks in advance

regards
lata
Eugene Lucash
Ranch Hand

Joined: Feb 19, 2005
Posts: 77
First of all I understand that you have not much time to gain extra knowledge
of such thing like Struts and other frameworks.
Suggestions and thouhts:

1. As server try to use Tomcat, I think this is the best choise for you for now, later you can switch to something else almost easily.
2. About Security. Your webapp will work with single server, and souce code of
JSP remains unaccessible without direct or ftp access to server.
Use SSL connection (https) (Howto in Tomcat's documentation).It's enouph
security for this task.
3. It is surely possible to use only jsp pages. Consider to use JSTL taglibs
(espesially <sql: taglib). Later you can switch to some more appropriate
solution using Connection pooling (Use Google if you don't know).
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Eugene Lucash:
3. It is surely possible to use only jsp pages. Consider to use JSTL taglibs
(espesially <sql: taglib). Later you can switch to some more appropriate
solution using Connection pooling (Use Google if you don't know).


I have an argument with the third point. I dont encourage you to do all in JSP even for the first time. Use MVC 2 architecture, MVC 1 atleast. JSP must be used just for rendering the view. Otherwise it would be complex. Its just advice.

Tip: Integrate your Tomcat with Apache webserver for better performance when deploying it on production server.
[ February 21, 2005: Message edited by: Adeel Ansari ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Adeel Ansari:


I have an argument with the third point. I dont encourage you to do all in JSP even for the first time. Use MVC 2 architecture, MVC 1 atleast. JSP must be used just for rendering the view. Otherwise it would be complex.

Tip: Integrate your Tomcat with Apache webserver for better performance when deploying it on production server.


I agree with Adeel on the MVC part. Adding JSTL to a JSP app only adds complexity if you aren't really moving the real work out of the JSPs.

I disagree with the tip about adding Apache for improved performance.
Depending on the nature of your app, it could actually be more efficient to run Tomcat as a stand alone.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Vijay Sharma
Ranch Hand

Joined: Feb 02, 2005
Posts: 32
Better to use EJB first.Develop one component for Employees.B'coz JSP is using just for presentation purpose.So,why making it complex by inserting business logic inside it.


Vijay Sharma
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Vijay Sharma:
Better to use EJB first.Develop one component for Employees.B'coz JSP is using just for presentation purpose.So,why making it complex by inserting business logic inside it.


EJB. No. It would be more complex and not every application qualifies to be build upon EJBs.
Hema lata
Ranch Hand

Joined: Jan 24, 2005
Posts: 34
Thanks Eugene, for the details. As you said..i donot have much time to
go for struts as I have to study it!!


Adeel, in your tip you have mentioned of using Apache webserver for better performance.
For one of my previous application I had to deploy tomcat on IIS server.
Since the customer could afford only IIS server. and
application was being used in single location.

Will it be ok if this same system configuration is used for my new requirement for multiple location.

thanks
lata
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Ben Souther:
I disagree with the tip about adding Apache for improved performance.
Depending on the nature of your app, it could actually be more efficient to run Tomcat as a stand alone.


Obviously it depends. My thought is about handling the images and other static contents. Integration results in performance gain when having some static contents as well.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by lata:
Adeel, in your tip you have mentioned of using Apache webserver for better performance.
For one of my previous application I had to deploy tomcat on IIS server.
Since the customer could afford only IIS server. and
application was being used in single location.

Will it be ok if this same system configuration is used for my new requirement for multiple location.


Yea why not. All you need is a web server to deal with the static contents. Even I used IIS with Tomcat once.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Adeel Ansari:


Obviously it depends. My thought is about handling the images and other static contents. Integration results in performance gain when having some static contents as well.


In the past this may have been the case. These days, unless you're site has a lot of static content (and this poster is talking about a business app) then the expense of passing from Apache to Tomcat can actually cost more than running Tomcat alone. Both Tomcat and Java itself have made huge gains in performance in the last few years.

Also, you would need to see a real significant gain in performance to justify the extra complexity of maintaining a connected setup like this.

"Adding Apache or IIS as the webserver to Tomcat will improve performance" should never be used as a blanket statement.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Ben Souther:
In the past this may have been the case. These days, unless you're site has a lot of static content (and this poster is talking about a business app) then the expense of passing from Apache to Tomcat can actually cost more than running Tomcat alone. Both Tomcat and Java itself have made huge gains in performance in the last few years.


Thanks Ben. Will definitely search out.

Yea I think Apache didn't release any bridge connector between Tomcat 5.0 and Apache web server. It was there previously for Tomcat 4.x.

Anyways I have used this kinda cofiguration in my college life, not long time ago though.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

"lata",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hema lata
Ranch Hand

Joined: Jan 24, 2005
Posts: 34
Hi all,

Thanks for the details.

If you know any websites( e-commerce, personal, etc)
which are built using java, jsp, kindly let me know.

regards
lata
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Hema lata:
Hi all,

Thanks for the details.

If you know any websites( e-commerce, personal, etc)
which are built using java, jsp, kindly let me know.

regards
lata


There are thousands.
I'm not sure what knowing which sites are written in JSP will do for you though.
Hema lata
Ranch Hand

Joined: Jan 24, 2005
Posts: 34
Ben,

I am looking for sites with more dynamic feaures.

like -on line shopping sites,
finance,healthcare, Telecom etc domain specific sites.
Please let me know if you know any .

thanks

Regards
lata
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

weather.com has lots of features.
It's deployed on Tomcat.

I'm not sure what benefit you will derive from knowing which sites out there are written with jsp/j2ee.

What's your point?
Eugene Lucash
Ranch Hand

Joined: Feb 19, 2005
Posts: 77
Maybe point is to convice someone in JavaSrver power.
Hema lata
Ranch Hand

Joined: Jan 24, 2005
Posts: 34
Ben,

I am learning java. And at the same time I jave to develop a site. I am interested to develop it in using jsp/java..
I needed some reference sites so that I will know what kind dynamic features I can implement, and what I need to know in java/jsp, to develop such kind of sites. also I can convinence my customer why it will be in jsp/java.

thanks

Regards
Lata
Eugene Lucash
Ranch Hand

Joined: Feb 19, 2005
Posts: 77
You can do any feature that you can imagine.
The other question is how it can be done.
And how you can do in most appropriate way.

The main advantage of using java as server side language
that java is mature general purpose platform. So you can enjoy
java's built in security features, java2d for image editing and
generation on the fly, Java database connectivity for db access,
....., many and many quality opensource
libraries and frameworks.. etc.

Without other java platform's features, jsp would be just another silly
server side languge like coldfusion, php, asp, ssi.

So.. get ready to gain extra knowledge as soon as possible
[ February 23, 2005: Message edited by: Eugene Lucash ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Hema lata:
Ben,

I am learning java. And at the same time I jave to develop a site. I am interested to develop it in using jsp/java..
I needed some reference sites so that I will know what kind dynamic features I can implement, and what I need to know in java/jsp, to develop such kind of sites. also I can convinence my customer why it will be in jsp/java.

thanks

Regards
Lata


From a user's standpoint (looking at an app through a browser) there is nothing that server side Java can do that any other web development platform can't do. It's still just web programming.

As Eugene mentioned, the advantage is in having full access to everything Java can do in your platform. Also, J2EE was very well thought out. Servlet/JSP containers take care of a lot of the tedious stuff for you.
Another advantage is that, unlike ASP/.NET. Java gives you a lot of options as far as what operating system, and webservers you can use. There are many commercial and open source app servers available for you to choose from.
Hema lata
Ranch Hand

Joined: Jan 24, 2005
Posts: 34
Thanks a lot Eugene & Ben for your valuable inputs and guidance.
Now i have got some confidence that I can work on the current site of mine.

Will getback again..if need of help on my never ending doubts..!

Thanks

Regards
Hema lata
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help on JSP application development
 
Similar Threads
what is ejb?
WAP + J2EE application Examples for Weblogic8.1???
Sharing authentication between application servers?
need help with a JSP/Servlet project
How to separate it out prepare and process