Advertisement

08.06.2008 at 11:03AM PDT, ID: 23626671 | Points: 500
[x]
Attachment Details

How to use variables from a main JSP page to an included JSP page?

Asked by _Esam in Java Server Pages (JSP), Java Programming Language, J2EE

Hi,

I have a main JSP page where header, and two more JSP pages are included dynamically like:

In main.jsp page

<%@ include file="mainheader.jsp" %>


Now in the main.jsp page, there are some variables declared

like:
<%

String screen=null;
String sort=null;
String where=null;

%>

which are later used in the included JSP like mainheader.jsp as

if (userType == "E" && !screen.equals("asnhome")) {
String checkHacker = HttpHeaderParser.encodeString(where);

}


Now RAD 7 shows these (screen, where)  as errors in the mainheader.jsp page?

This app was initially built with WAS 5.1.2

I am trying to convert it to WAS 6.1


What is the problem here?


Thanks.
_EsamStart Free Trial
[+][-]08.06.2008 at 11:40PM PDT, ID: 22178439

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 02:26AM PDT, ID: 22179199

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 05:04PM PDT, ID: 22310512

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628