aspose file tools
The moose likes Beginning Java and the fly likes How to design my application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How to design my application" Watch "How to design my application" New topic
Author

How to design my application

Mayilsamy Annamalai
Ranch Hand

Joined: Sep 18, 2010
Posts: 35

Hi,

I'm new to servlet and jsp. And now i'm ok with both servlet and jsp. Have a plan to start with the simple project. (Login form-> authentication -> a simple form entry with simple validations -> Saving the fields in the database -> Admin login -> Edit and delete the form entries.). My problem is how i can design the project. Whether i can do all the stuffs by using only the jsp or i have to use Servlet also. I knew without servlet itself we can do it. But which is the most recommended one?? Please guide me !!
pete reisinger
Ranch Hand

Joined: Dec 30, 2009
Posts: 46
I would recommend reading head first servlets and jsp (new edition) and then try maybe spring,
download documentation, read through and start simple app.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

Don't use only JSPs - in fact, it is better to use as little Java code as possible in your JSPs. That's because JSPs are really about the HTML and how your application looks, while the Java code is really the underlying business logic. Mixing them up will quickly make your program a mess where it is hard to find out what is happening. Put Java code in servlets, and let those servlets forward requests to JSPs, and let the JSPs handle only the displaying of content as much as possible.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Mayilsamy Annamalai
Ranch Hand

Joined: Sep 18, 2010
Posts: 35

Thanks for your reply. I like to follow the Jesper de Jong way.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to design my application
 
Similar Threads
login servlet
how to use the servlet to get the value from JSTL c:set?
popup form in spring
setting a bean property from servlet and redirecting to jsp
Writing a simple login app using JSP & MS Access