Tag Archives: JSP

Script element – declaration


Declaration Declaration is used to declare a function that can be used in scriptlet or expression in a JSP page. Function is a unit for performing certain feature. In Java, we call it ‘method’. In JSP, declaration has the following syntax structure. In above structure, each syntax has following meanings. returnType – specifies the type […]

https://minjookwon.wordpress.com/2015/05/10/script-element-declaration/

Implicit object – Request


The default implicit object, request is the most used default object that is associated with the request of web browser. When you enter the address of website in a web browser, after getting connected to the right web server, it sends a request information to the server. Request provides information requested by client.  The features […]

https://minjookwon.wordpress.com/2015/05/12/implicit-object-request/

HTML form & Request Parameters


One of the most frequently used feature in JSP is to process the form values entered in the web browser. For example, if you type a name or a keyword to the input form and click a button such as [Make a blog], it creates a blog. The information put it in the form such […]

https://minjookwon.wordpress.com/2015/05/12/html-form-request-parameters/

GET method & POST method


Web browser sends the parameters using one of GET method and POST method. In the makeTestForm.jsp, you can see the following HTML code. Value of tag’s method value is “post”. It means web browser is sending the parameter data in POST method. The difference between POST method and GET method is in a way it […]

https://minjookwon.wordpress.com/2015/05/12/get-method-post-method/

pageContext implicit object


PageContext object is an object that maps to one of JSP page. It provides following functionalities: Obtaining other implicit object Processing properties Controlling the flow of page Getting error data It is rare to use pageContext object directly in the JSP page. However, it is used a lot when implementing a custom tag, so you […]

https://minjookwon.wordpress.com/2015/05/20/pagecontext-implicit-object/

application implicit object


All JSP pages included in a particular web application share single application object. Application object contains information to be used throughout the web application. For example, using application object, we can read the initial configuration information and the server information. In addition, we can read resources web application provides. Reading web application initialization parameters Servlet provides initialization […]

https://minjookwon.wordpress.com/2015/05/20/application-implicit-object/

application implicit object (2)


Obtaining resources for web applications You might want to use files in the web application directory on a JSP page. For example, let’s say there is a subdirectory “message” under jsp_practice directory, and you want to print  txt file in message\notice\notice.txt. In this case, you can read specified resource using an absolute path as follows: […]

https://minjookwon.wordpress.com/2015/05/20/application-implicit-object-2/