Wednesday, 6 March 2013

ADVANCED JAVA INTRODUCTION

advanced java
            Hello friends in my previous post i have explained all layout managers used in java swing.Now i am going teach you Advanced java.Yes friends from now i will explain all topics related to advanced java in my blog posts.Let us start with introduction of Advanced java.Some of the people is thinking that in advanced java there is a tough programming then core java and it is related to classes with tough syntex.But let me tell you that this is not Advanced java.Advanced java is Web-services.For implement a web-services in java we used this topic.
            Advanced java contains many components.Following components are used when you are developing any web-application.
-java server pages(jsp)
-servelet
-bean class
-web.xml file

      With use of these four components you are able to make your first web-application using Advanced java.I think most of the people who are using is aware about these components but who are new in java technology they are unaware about this components of advanced java So let me explain these four components.
1:-JAVA SERVER PAGES(JSP)
               Mostly jsp is used for presentation purpose in web-application.Now you are thinking that why we are using jsp for designing instead of html.So answer is you can also able to write java code with html code in jsp.if you use only html then you are not able to use java code in .html file.
               You can add java code in your jsp page in <% "your java code here"%>.So this is the basic thing about jsp.
2:-SERVLET
               Servlet is nothing but only a simple java class.Servlet is used for control the flow of your website.You can pass parameter from jsp page to servlet and on basis of parameter you can redirect a new page.In this way you can monitor your website using servlet.We can say that without servlet we are not able to monitor the flow of website.
3:-BEAN CLASS
                It is a one type of re-usable code.You can store a temporary values in bean class instead of database.Once you stored a value in bean class then you can retrive this value on any page untill your session  is expired.
4:-WEB.XML
                 Web.xml file is required for configuration of the website.It is a directory which is also known as deployment-discrepter .Web.xml contains some basic information about jsp and servlet pages.
              So friends this is the introduction to advanced java if you have any doubt related to this topic then feel free to ask the question in comment box.Have a nice day.

No comments:

Post a Comment