Hi,
This is the code of the entrypage of my web application.
Previously this file was a .html file. But to change the url in all the files what I did ....... I am getting the url properties from the Properties file. Now this thing is working in all the jsp file except this welcome jsp file. It is throwing NullPointerExce ption and host and port values are not coming.
I am setting the propertyVO object in session after execution of this entry page. How should I make it work.
Need ur help !
This is the code of the entrypage of my web application.
Code:
<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="com.spi.defecttracker.vo.PropertiesVO"%> <%@page session="true" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% PropertiesVO urlProperty = (PropertiesVO)session.getAttribute("URLPropertiesList"); System.out.println("host:\t"+urlProperty.getHost()+"\tPort:\t"+urlProperty.getPort()); %> <form method="POST" action="[url="http://<%=urlproperty.gethost()%>:<%=urlProperty.getPort()%>/DefectTracker/RequestHandler"]http://<%=urlProperty.getHost()%>:<%=urlProperty.getPort()%>/DefectTracker/RequestHandler[/url]"> Click Here To Access Defect Tracker <input type="submit" value="Start Defect Tracker" > </p> <input type="hidden" name="SCREEN_ID" value="0" /> </form> </body> </html>
I am setting the propertyVO object in session after execution of this entry page. How should I make it work.
Need ur help !
Comment