<%! String str = \"prerna\"; %> >
Just put it in value directly.
value
Or use JSTL to set it and EL ${} to get it.
${}
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> ... ...
And if your included page is a jsp, then you can use it as ${param.type1}
${param.type1}