473,503 Members | 12,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem in loading a js file through jsp

24 New Member
Hello,

this is my servlet:

Expand|Select|Wrap|Line Numbers
  1. String skill_id = request.getParameter("skill_id");
  2.  
  3. request.setAttribute("Skill_id", skill_id);
  4.  
  5. RequestDispatcher rd =   request.getRequestDispatcher("TerminationSelection.jsp");
  6.  
  7. rd.forward(request,response);
  8.  
from here i'm calling jsp page, with parameter Skill_id.

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.
Mar 14 '08 #1
1 1843
acoder
16,027 Recognized Expert Moderator MVP
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.
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.
Well, if you don't output anything, there'll be nothing displayed on the page.

Does the JavaScript code contain any document.write() statements?
Mar 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
6142
by: Roland | last post by:
I am having trouble installing dotnetfx on a machine. Here is the dotnetfx.log file Any Ideas how to fix the machine so it will install will be helpful. What does ReturnCode=995 mean? I...
28
5170
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
11
6592
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to...
2
2124
by: NGM | last post by:
Hello All I have a unmanaged C++ DLL, which has been wrapped up with a manged C++ DLL. When i refer to this managed DLL in Windows form based applications it works out fine. But when i refer to...
3
4559
by: f1racing24 | last post by:
I am trying to compile this class in the command-line and this error comes up 'Start -> C:\Inetpub\wwwroot\DCReview_Brinkster\code>vbc /t:library /verbose...
3
2276
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the...
2
2819
by: nick.taylor | last post by:
Hi, I've been trying for weeks to figure out this problem. I'm developing a simple Javascript app that loads an XML file from a server, parses the contents, and displays them. But I am...
5
5113
by: Pete Marsh | last post by:
Wondering if anyone can recomend some sample code for dynamically loading the GD module. I have tried setting the extension dir in php.ini, and loading the GD module from there when apache is...
4
4370
Fary4u
by: Fary4u | last post by:
Hi i've found this problem for a long time but i thought i can live wd this but now it's giving me headack it's mostly happend when u got some problem on the network , after installation...
3
2833
by: sandeep kumar shah | last post by:
I am facing one problem on loading the xml file The code is 1. XML file //attribute.xml <?xml version="1.0" encoding="UTF-8"?> <person> <name>sandeep</name> <address state="Goa �D;...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.