Constant « Bean « JSP-Servlet Q&A





1. Can the 'id' in jsp:useBean id="xxx". be set using a Constants file ?    coderanch.com

Hi, Please confirm me this .. Suppose that I have a value in my constant file,Constants.java : public String OUTPUT_KEY = "output" ; ..... After some processing of the request, the response handler creates a valid viewBean object,say, 'info' and sets it's attributre value as : info.setAttribute(Constants.OUTPUT_KEY,someValidObject) ... .... Now , in the success.jsp where I want to display the details ...