Hi,
I am using this statement exactly in my JSP page. - <%@ page import="java.util.*, java.lang.*" %>
But when i view the equivalent servlet generated, it is like this : - import java.util.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]
-
import java.lang.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]
-
And the second import is always getting to the end of the first import statement so that it is also included as a part of the single line comment '//'. This happens with all the JSP imports.
Could anyone figure out where the problem lies ... Its really urgent.
Many Thanks for any help .
17 8328
what's the problem with the conversion?????
kind regards.
dmjpro.
Hi,
I am using this statement exactly in my JSP page. - <%@ page import="java.util.*, java.lang.*" %>
But when i view the equivalent servlet generated, it is like this : - import java.util.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]
-
import java.lang.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]
-
And the second import is always getting to the end of the first import statement so that it is also included as a part of the single line comment '//'. This happens with all the JSP imports.
Could anyone figure out where the problem lies ... Its really urgent.
Many Thanks for any help .
Are you getting an error then?
what's the problem with the conversion?????
kind regards.
dmjpro.
The second import statement gets to the end of the first one like - import java.util.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]#import java.lang.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]
so that the second one is always commented along with the comment of the first import statement with a special character (shown as a square in my editor)
inserted at the place where you see '#' here. Thus only the class being imported first is being imported and it raises an error when there is a reference to the classes imported second or later .
Hope thats clearer ..
now what 's ur headache with these comment lines???
r u trying to do something which is not due to these unexpected comment lines????
kind regards.
dmjpro.
The second import statement gets to the end of the first one like - import java.util.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]#import java.lang.*; //[ /hrms/budgetsAndCosts_HRMS.jsp; Line: 1]
so that the second one is always commented along with the comment of the first import statement with a special character (shown as a square in my editor)
inserted at the place where you see '#' here. Thus only the class being imported first is being imported and it raises an error when there is a reference to the classes imported second or later .
Hope thats clearer ..
Do you get an error when you run your JSP?
now what 's ur headache with these comment lines???
r u trying to do something which is not due to these unexpected comment lines????
kind regards.
dmjpro.
If this is the import statement in the JSP page, - <%@ import="java.util.Date,java.util.Calendar" %>
the servlet generated shows it like - import java.util.Date; //[ test.jsp; Line: 1]import java.util.Vector; //[ test.jsp; Line: 1]
So, only Date is imported and not the Vector.
The second import is commented after
as - //[ test.jsp; Line: 1]import java.util.Vector; //[ test.jsp; Line: 1]
Do you get an error when you run your JSP?
I get the error when am referring to the class which comes in the second import statement. Since the second import is commented along with the first import's sidenote, its not imported at all..
Thanks for any Help
I get the error when am referring to the class which comes in the second import statement. Since the second import is commented along with the first import's sidenote, its not imported at all..
Thanks for any Help
Which error did you get specifically?
why did not u tell the particualr problem before?????
it does not happen to me.
i m using Oracle Jdeveloper for JSP Editor.
what r u using????
if this happens to u then change it into one packege import instead of more that one packge or class import.
one more thing i want to mention that directly come to the point.... instead of complicating the problem..
and i hope u ll not do that again.
have a good day.
kind regards.
dmjpro.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: John Roth |
last post by:
I've found a case where it seems that Python is importing two copies of a
module without any reason or indication. It took me a while to verify that
this is what is occuring: I had to write a __import__ hook to trace the
actual activity. The source code for the hook is below.
There are several examples of the problem in the trace; this is one
particularly juicy one.
-----------Part 1 ----------------
'0059' Import 'TypeAdapter'...
|
by: Steve Holden |
last post by:
This is even stranger: it makes it if I import the module a second time:
import dbimp as dbimp
import sys
if __name__ == "__main__":
dbimp.install()
#k = sys.modules.keys()
#k.sort()
#for kk in k:
|
by: Jon |
last post by:
It appears that (windows) python searches in the current working
directory before looking in the local site-packages directory, or that
'.' comes first in sys.path? The problem arises when I made the mistake
of running a test program from the same directory where I built and
installed my package. Python uses the package from the current
directory, which misses the pyd files, instead of the site-packages
package which has them installed.
...
|
by: Panard |
last post by:
Hi,
I'm experiencing a strange problem while trying to manage a ftp connection
into a separate thread.
I'm on linux, python 2.4.3
Here is a test :
------ ftp_thread.py ------
import ftplib
import threading
|
by: robert |
last post by:
I get python crashes and (in better cases) strange Python exceptions when (in most cases) importing and using cookielib lazy on demand in a thread.
It is mainly with cookielib, but remember the problem also with other imports (e.g. urllib2 etc.).
And again very often in all these cases where I get weired Python exceptions, the problem is around re-functions - usually during re.compile calls during import (see some of the exceptions below). But...
| |
by: Nick Craig-Wood |
last post by:
I've been dumping a database in a python code format (for use with
Python on S60 mobile phone actually) and I've noticed that it uses
absolutely tons of memory as compared to how much the data structure
actually needs once it is loaded in memory.
The programs below create a file (z.py) with a data structure in which
looks like this
-- z.py ----------------------------------------------------
z = {
|
by: Victor Lin |
last post by:
Hi,
I got some problem with import. I have some python file that should be
executed. Something like unit-test or other small tool. The project is
not so small. So I want to separate these files into different
packages.
Might like this:
project/
|
by: Stef Mientki |
last post by:
hello,
The import statement "import sqlite3" gives the error given below.
In simple programs, the import statement (sometimes) succeed,
and I can indeed access the database.
So I guess there is some conflict with another part of my program,
but as the program is rather large (and dynamic) it's not easy to
isolate the problem.
Does anyone has a clue how to trace this kind of problem ?
|
by: nisp |
last post by:
Hi all !
I'm trying to capture stderr of an external module I use in my python
program. I'm doing this
by setting up a class in my module overwriting the stderr file object
method write.
The external module outputs to stderr this way:
from sys import std err
|
by: Rafe |
last post by:
Hi,
I am in a situation where I feel I am being forced to abandon a clean
module structure in favor of a large single module. If anyone can save
my sanity here I would be forever grateful.
My problem is that classes in several modules share a common base
class which needs to implement a factory method to return instances of
these same classes.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |