this is my servlet:
Expand|Select|Wrap|Line Numbers
- String skill_id = request.getParameter("skill_id");
- request.setAttribute("Skill_id", skill_id);
- RequestDispatcher rd = request.getRequestDispatcher("TerminationSelection.jsp");
- rd.forward(request,response);
i'm executing this servlet by following url:
http://localhost/ProjectName/ServletName?skill_id=143
Now, following is my jsp code, from where i am trying to execute js file. but, i'm not getting result, there is no any out showing on browser. blank page is there.
[HTML]<html>
<head>
<%
String skill_id = request.getAttribute("Skill_id").toString();
%>
<title>Termination Code Management</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="Project Icon" href="resources/icon.ico" />
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css"/>
<link rel="stylesheet" type="text/css" href="resources/css/xtheme-slate.css"/>
<script type="text/javascript" src="ext-base.js"></script>
<script type="text/javascript" src="ext-all.js"></script>
</head>
<body>
<script type="text/javascript" src="TerminationSelection.js"></script>
<div id="termcodecat"></div>
</body>
</html>
[/HTML]
i'm getting the value of skill_id in jsp, but not output.
Is there any problem in code or this is not possible that executing javascript code through servlet.