| [List]Update of a List in a method (continued) |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Problem with browser tabs and sessionsI have a application make in jsp tomcat 4.1.
the customer fill some forms and the data in store in session.
The problem is that if customer open new tab(ie or firefox) and see
info another product when he change for tab initial and submit, the
system will rise error because some data of session was changed.
How i can fix it ?
I need each tab have your new session, there are any config in tomcat
for make it ?
thanks a lot
- 3
- jar file for classhello all
i have some code where the class XMLSignatureFactory is used.
apparently this is exposes signing mechanism. however i am unable to
find out the jar file that will contain the required interfaces/
implementation.
can someone please tell me from where can i download the corresponding
jar file ? Also what is the general technique used to find jar files
corresponding to a class file.
thanks
ravinder thakur
- 3
- Question concerning jh_manifestHi Matthew,
I have further researched this problem. To me it seems a (not too
trivial) bug in jh_manifest. See
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489214. Maybe better to
discuss the topic there to keep this list clean...
Cheers,
Florian
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 4
- another design question, abstract static methods...so here is another general question about java...
why can't you declare an abstract static method.
i can envision the case (indeed i have experienced the case) where one
would want an abstracct superclass, with an abstract method such that all
subclasses that implement this method make that method static.
basically, the abstract class declares an abstract method that should be
static for all implementations (for example a factory method).
this isn't allowed in java, and in the language specification, there is no
reason given as to why. it is just simply stated in a single sentence
that an abstract method cannot be static. (or it turns out even the
implemented method).
can anyone explain why this isn't allowed? (i.e. give an example that
shows the flaws that can arise from such a situation).
thanks much!
murat
--
Murat Tasan
email***@***.com
email***@***.com
email***@***.com
http://genomics.cwru.edu
- 6
- Setting namespaces in DOMHi all,
I'm trying to construct an XML (SOAP) document, with a number of namespaces.
DOM provides Document.createElementNS(), which can be used to add the
namespace in the particular element. However, I often get the case where
the namespace definition is repeated in multiple sibling elements, while
it would be a lot simpler (cleaner?) to define the namespace only once
at a higher level.
I tried using
document.getRootElement().setAttribute("xmlns:xsd", XSD_NS);
but, even though the document.toString() shows the correct xmlns:xsd
attribute in the root node, it is still repeated in the lower level
elements.
Does anyone have any idea of how the DOM decides when to "roll-up" a
namespace definition to a higher level? Or how to tell it to?
I'm talking about the difference between:
<rootnode>
<childnode xsi:type="xsd:int" xmlns:xsi="http://w3c.blah"/>
<childnode xsi:type="xsd:int" xmlns:xsi="http://w3c.blah"/>
<childnode xsi:type="xsd:int" xmlns:xsi="http://w3c.blah"/>
</rootnode>
and
<rootnode xmlns:xsi="http://w3c.blah">
<childnode xsi:type="xsd:int"/>
<childnode xsi:type="xsd:int"/>
<childnode xsi:type="xsd:int"/>
</rootnode>
Many thanks.
Rogan
- 9
- Timouts for RMIHi all,
i know there are several posts, and a google search found lots of hits on this topic.
My Problem is: Nothing works...
My intension is very simple:
Use Rmi to transmit data from a client to a server.
In principle it works fine. My Problem are the RMI-timeouts. They are too long.
I have to take into account that some "unclever Guy" pulled the network plug.
My Client still wants to send data to the Server (call a servermethod via rmi).
I call the method and this thread is blocked. Fine. Network is still broken.
Depending on the OS of the client (windows, linux) the Timeouts vary.
In Windows its about 20 Sec => Exception. In Linux? Years? It looks like the method never returns
with an error.
Is there a way to set the timeout for calling a method.
(The time after the methodcall returns an error when the server isn't reachable)
I tried:
a) Setting the RMISocketFactory creating my own clientsockets having the SoTimeout set... didnt work.
b) setting the Systems sun.rmi.transport.connectionTimeout ... didnt work
Hope you can help me.
- 13
- BUG in jre that work fine in jview - mouseEventAnyone come up with an answer to this?
I'm having the same problem, I've created
a "skin" slider control in J++, when I use
Microsoft it returns coordinates relative to
the slider control, when I use Sun it's relative
to the applet, the listener class and handler is
within the slider control class.
I've found LOTS of examples online that are setup
just like my code, and they all, including Sun's
documentation (as well as Microsoft's) say it should
be relative to the control.
Thanks,
EdisonCPP
Nir melamoud wrote:
> Hi,
>
> Can anyone please explain me how can i write an application that
> use the mouseEvent.getX(),mouseEvent.getY() functions on both sun jre
> and microsoft jview without checking for the interpreter origin ?
>
> In jview the function return the coordinate relative to the component
top
> left point = (0,0)
>
> In jre it return in mouseEnter relative to the beginning of the
screen (not
> even the window)
> and in mouseExit relative to the component top left point ?
>
> It look like a bug in jre, because sun help support microsoft version
-
> relative to the source component.
>
> Does anyone know how can i translate these points so it will work on
both
> jview and jre ?
>
> here is a small code example: try to enter and exit the frame and see
the
> printout, try it on jre and jview
>
> import java.awt.* ;
> import java.awt.event.* ;
> import java.io.*;
> import jclass.bwt.*;
>
> class mouse extends Frame {
> public static void main(String arg[]) {
> mouse m = new mouse("Mouse Test") ;
> m.setSize(400,300) ;
> m.setVisible(true);
> }
>
> public mouse(String s) {
> super(s) ;
> enableEvents(AWTEvent.MOUSE_EVENT_MASK);
> }
>
> public void processMouseEvent(MouseEvent m) {
> System.err.println("x,y = " + m.getX() + "," + m.getY()) ;
> }
> }
- 14
- No call for Ada (was Announcing new scripting/prototyping language)Josh Sebastian wrote:
> Maybe you just weren't very good at C++ templates. I don't mean to be
> insulting, but personal preferences do play a huge roll here. Unless
> someone can prove Ada's generics are Turing-complete, though (a quick
> google doesn't turn up anything), I'd say that we'll have to call C++
> templates more powerful.
Turing completeness is only one measure of power. And not a very
good one for measuring different systems of templates. If you use
templates for any sort of computational programming beyond some
very simple things you are stretching the rubber band beyond its
limit.
--
Thomas.
- 14
- Bug in childrenNames() api for Preference class?Hi,
The following code trhrows an Illegal Argument Exception.
import java.uitl.prefs.*;
try{
String xyz[] = (Preferences.userRoot()).childrenNames();
} catch (Exception e) {
e.printStackTrace();
}
The exception caught is :
java.lang.IllegalArgumentException: String length must be a multiple
of four.
at java.util.prefs.Base64.base64ToByteArray(Base64.java:134)
at java.util.prefs.Base64.altBase64ToByteArray(Base64.java:126)
at java.util.prefs.FileSystemPreferences.nodeName(FileSystemPreferences.java:859)
at java.util.prefs.FileSystemPreferences.access$1900(FileSystemPreferences.java:33)
at java.util.prefs.FileSystemPreferences$10.run(FileSystemPreferences.java:640)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.prefs.FileSystemPreferences.childrenNamesSpi(FileSystemPreferences.java:632)
at java.util.prefs.AbstractPreferences.childrenNames(AbstractPreferences.java:699)
at test.main(test.java:9)
Is this a BUG in java?
My requirement is that I have many NODES under the root node of user
preferences(userRoot).I want the list of nodes, for futher
processing.How do i retrieve them?
Please help.
(Also send a cc to my email:email***@***.com)
Thanks,
Prakash.
- 15
- graphic rendering questionHi All,
I am investigating writing a Java application to render postscript into a
Graphics2D object (or other suitable alternative). Has anyone had any
experience with this sort of thing? I have come across a number of
libraries that work in the other direction (i.e. Graphics2D to postscript
or PDF), but none for what I have in mind. Could anyone suggest some
possibilities? Thanks very much.
Best regards,
Scott
- 15
- Java and assemblyHI everyone,
Is there a possible relation between Java and assembly language like ther
is with JNI?
--
Thanks for your attention.
Jean Pierre Daviau
- 15
- 15
- directory questionI have a file named "main.ini" in the directory of jar (self-executable
package)
When I run jar from its directory all ok
When I run jar from another directory it cannot found "main.ini"
I open "main.ini" with
InputStream is = new FileInputStream("main.ini");
but I understand I must open it with
InputStream is = new FileInputStream(getDirectoryOfJavaProgram() +
"main.ini");
can you implement
getDirectoryOfJavaProgram()???
thanks!
- 16
- Problem invoking servletHello.
I'm trying to invoke a servlet. I get the following error:
javax.servlet.ServletException:
[HTTP:101250][ServletContext(id=371807,name=BibleApp,context-path=/BibleApp)
]: Servlet class /com/brainysoftware/burnaby/ControllerServlet for servlet
ControllerServlet could not be loaded because a class on which it depends
was not found in the classpath
C:\bea\user_projects\infologic1\applications\BibleApp;C:\bea\user_projects\i
nfologic1\applications\BibleApp\WEB-INF\classes.
java.lang.NoClassDefFoundError:
/com/brainysoftware/burnaby/ControllerServlet (wrong name:
ControllerServlet).
at weblogic.servlet.internal.ServletStubImpl.prepareServlet
----------
web.xml
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>simple</servlet-name>
<jsp-file>simplePage.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>ControllerServlet</servlet-name>
<servlet-class>com.brainysoftware.burnaby.ControllerServlet</servlet-class>
<!-- Define initial parameters that will be loaded into
the ServletContext object in the controller servlet -->
<init-param>
<param-name>base</param-name>
<param-value>http://localhost:7001/BibleApp/ControllerServlet</param-value>
</init-param>
<init-param>
<param-name>jdbcDriver</param-name>
<param-value>weblogic.jdbc.mssqlserver4.Driver</param-value>
</init-param>
<init-param>
<param-name>imageUrl</param-name>
<param-value>http://localhost:7001/BibleApp/images/</param-value>
</init-param>
<init-param>
<param-name>dbUrl</param-name>
<param-value>jdbc:weblogic:mssqlserver4:users@COMPAQSERVER</param-value>
</init-param>
<init-param>
<param-name>dbUserName</param-name>
<param-value>dinesh</param-value>
</init-param>
<init-param>
<param-name>dbPassword</param-name>
<param-value>werty69</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>test</servlet-name>
<jsp-file>menu_1.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ShowEmployees</servlet-name>
<servlet-class>ShowEmployees</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/helloservlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>test</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>simple</servlet-name>
<url-pattern>/simple</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ShowEmployees</servlet-name>
<url-pattern>/ShowEmployees</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ControllerServlet</servlet-name>
<url-pattern>/controlIt</url-pattern>
</servlet-mapping>
</web-app>
--------------
ControllerServlet.class
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import com.brainysoftware.burnaby.DbBean;
public class ControllerServlet extends HttpServlet {
/**Initialize global variables*/
public void init(ServletConfig config) throws ServletException {
System.out.println("initializing controller servlet.");
ServletContext context = config.getServletContext();
context.setAttribute("base", config.getInitParameter("base"));
context.setAttribute("imageUrl", config.getInitParameter("imageUrl"));
// instantiating the DbBean
DbBean dbBean = new DbBean();
// initialize the DbBean's fields
dbBean.setDbUrl(config.getInitParameter("dbUrl"));
dbBean.setDbUserName(config.getInitParameter("dbUserName"));
dbBean.setDbPassword(config.getInitParameter("dbPassword"));
// put the bean in the servlet context
// the bean will be accessed from JSP pages
context.setAttribute("dbBean", dbBean);
try {
// loading the database JDBC driver
Class.forName(config.getInitParameter("jdbcDriver"));
}
catch (ClassNotFoundException e) {
System.out.println(e.toString());
}
super.init(config);
}
/**Process the HTTP Get request*/
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request, response);
}
/**Process the HTTP Post request*/
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String base = "/jsp/";
String url = base + "Default.jsp";
String action = request.getParameter("action");
if (action!=null) {
if (action.equals("search"))
url = base + "SearchResults.jsp";
else if (action.equals("browseCatalog"))
url = base + "BrowseCatalog.jsp";
else if (action.equals("productDetails"))
url = base + "ProductDetails.jsp";
else if (action.equals("productDetails"))
url = base + "ProductDetails.jsp";
else if (action.equals("addShoppingItem") ||
action.equals("updateShoppingItem") ||
action.equals("deleteShoppingItem") ||
action.equals("displayShoppingCart"))
url = base + "ShoppingCart.jsp";
else if (action.equals("checkOut"))
url = base + "CheckOut.jsp";
else if (action.equals("order"))
url = base + "Order.jsp";
}
RequestDispatcher requestDispatcher =
getServletContext().getRequestDispatcher(url);
requestDispatcher.forward(request, response);
}
}
- 16
- Fourier Transform with JavaHello,
I'm searching an effective Java library which offers Fourier Transform
methods.
Has someone used a library like this please ?
Thanks
CABA
|
| Author |
Message |
Daniel Moyne

|
Posted: 2006-12-24 0:15:00 |
Top |
java-programmer, [List]Update of a List in a method (continued)
I forgot to provide the calling line :
ArrayList<String>myList=new ArrayList<String>();
myList=upDateExistingIndiPathClassNameValuesList(indi,myList);
where probably is the problem !
Thanks.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- new to genericsHello All-
In the past I have used java pre generics for some programs related
to my hobbies. I have come back to it after a couple of years and am
biting the bullet and moving to 1.5(5.0)...
In the past I have made some type specific packages to generate some
basic combinatoric structures (permutations, combinations, partitions)
For my own use and education, I'm trying to figure out how to make this
more usfully with generics.
Specifically:
class foo {...}
class otherClass{
HashSet<foo> fooSet;
// now comes the tricky (to me) part
Iterator<???> perm = new permutation(fooSet);
/*
I'd like to have iterator return one permuation of the elements in
fooSet at a time
*/
}
So... Does this type of thing already exist somewhere? If so where?
If not how do I go about using generics to do such a thing?
Thanks in advance
Collins
- 2
- JNI , shared stubs, CFunction (not CFunc) ?Hi,
I've been reading about JNI and shared stubs at
http://java.sun.com/docs/books/jni/html/jniTOC.html
However, when i try to use the class "CFunction" (see 9.4.3 @ url) , my
compiler (IntelliJ) says it cannot find the class.
I did find a jnistb10.zip , containing CFunc, CMalloc, CPtr, and the C
code for "disp.dll". However, this zip contains "CFunc" instead of
"CFunction" ! This is fine for wrapping a simple C calling convention
function like "atol" (this example works with CFunc) , but i want to
wrap some "stdcall" win api functions. With CFunc i get an access
violation, probally due to the fact its not a C but a stdcall function.
So i've been searching for the new and improved classes, namely
CFunction , but unfortunally i cannot find it anywhere. Strange how it
seems to be part of the JVM since 1.2 , but just doesnt seem to be there.
Anyone who can help me ?
Thanks,
Rover
- 3
- Detaching Applet to a Frame: the Frame is iconizedHi,
thank you all for your replies, I've used the BorderLayout
and GridBagLayout to get the exactly layout I wanted.
I have another, probably simple question: now I'd like
to be able to detach my applet from the browser on a
button click, so I've created a big panel to keep all
the components and a frame serving as external window:
void detach() {
but[1].setActionCommand("Attach");
but[1].setLabel("Attach");
frame.add(bigPanel);
frame.pack();
frame.setSize(Math.max(frame.getSize().width,
(int) (1.2 * getSize().width)),
Math.max(frame.getSize().height,
(int) (1.2 * getSize().height)));
frame.show();
frame.toFront();
}
void attach() {
but[1].setActionCommand("Detach");
but[1].setLabel("Detach");
add("Center", bigPanel);
validate();
frame.setVisible(false);
}
This seems to work quite well (I hope I don't leak memory)
with one small problem: after I click the "Detach" button
several times, the external frame always appears iconized
(at least in the KDE window manager that I use).
The frame.show() and frame.toFront() commands don't help.
The applet + source code are at http://pref.dyndns.org/grid/grid2.html
Any suggestions please?
Alex
- 4
- Another easy one I thinkHey all,
I was hoping I could get some direction on another assignment. In the
programming comments I listed where I need a little help. Basically this
little prog won't display the minimum number and the average is wrong
because I don't know the syntax of how to subtract 1 from my counter when
the average computation is made.
/*
Java Program #3
*/
public class prog3
{
public static void main (String[] args)
{
int numinput, min, max, sum, count, finalmax, finalmin, finalsum;
double average;
count = 0;
numinput = 1;
min = 0;
max = 0;
sum = 0;
average = 0;
finalmax = 0;
finalmin = 0;
finalsum = 0;
while(numinput != 0) {
System.out.println();
numinput = Console.readInt ("Enter any number (enter 0 to stop): ");
min = numinput;
max = numinput;
sum = numinput;
if(max > finalmax) finalmax = max; // ** i think there is a problem in
these two if statements; how do i get it to do both?**
if(min < finalmin) finalmin = min; // **the final min is always being
reported as 0.
finalsum = sum + finalsum;
count = count + 1;
average = finalsum/count; //**anyone know the syntax here to subtract 1
from the count before the divison**
}
System.out.println();
System.out.println ("The maximum number is: " + finalmax);
System.out.println ("The minimum number is: " + finalmin);
System.out.println();
System.out.println ("The average is: " + average);
System.out.println("The count is: " + count);
}
}
TIA for any help!
- 5
- JAI - Reduce memory requirements for TIF --> JPEG translationHi,
I'm using the following code, copied off the internet, to translate a
TIF file to JPEG format. It works, but runs out of memory on one of my
machines. I can "solve" that by giving Java more memory at launch, but
this is running in a context where I don't have easy access to those
parameters, so I would prefer to reduce the memory requirements for the
function. I'm still reading up on JAI and it's a lot to take in at one
time; I'd appreciate any pointers to more memory-efficient ways to go
about this. Thanks!
Peace,
--Carl
public static void main(String[] args) {
final String path = "//images//sample";
RenderedImage image = JAI.create("fileload", path + ".tif");
WritableRaster raster = image.copyData(null);
writeJpegFile(path + ".jpg", image, raster);
}
private static void writeJpegFile(
String filename,
RenderedImage image,
WritableRaster raster) {
BufferedImage bi = new BufferedImage(
image.getColorModel(),
raster,
true,
null);
BufferedImage bi2 = new BufferedImage(
bi.getWidth(),
bi.getHeight(),
BufferedImage.TYPE_BYTE_GRAY);
Graphics2D g2 = bi2.createGraphics();
g2.drawImage(bi, 0, 0, null);
PlanarImage pi = PlanarImage.wrapRenderedImage(bi2);
JAI.create(
"FileStore",
pi,
filename,
"JPEG",
new JPEGEncodeParam());
}
- 6
- NetBean become very slow ...Hi, All:
Recently I'm using the Sun NetBean IDE 5.5.1 in Windows, and I found
it'll become very slowing when long time no operation then open it.
In task manager if long time no use then use the NetBean, the memory will
become low;
then open NetBean it increase the memory and diffucult to use the editor.
Fianlly it up to near 150M, then operation is smooth, would you tell me
what happend and how to avoid the memory decreasing ?
Regards. Ahan Hsieh
- 7
- System.nanoTimer()?Does anyone know if System.nanoTime() still has issues on multiprocessor
machines?
Thanks,
- 8
- Mono, Java and the patentsThere's a new website for the so-called Mono-Project.
http://www.mono-project.com
<cite>
"
Mono is positioned to become the leading choice for development of Linux
applications as well as cross platform applications.
"
Translation:
"we consider Mono as the major Linux-development-platform"
"don't take Java for crossplatform-development, take Mono".
<cite>
"
However, the Java runtime systems commonly available on Linux
lack the performance that customers demand, and Java applications
do not conform to the Linux GUI look and feel.
"
Never heard of SWT or Swing-Synth-Look?
And Java is slow and Mono is fast? What's about a detailed benchmark?
Oh wait ... Mono is BETA and not optimized and whatever.
So we have no benchmarks but we pretend that Java is slow and sucks.
But more interesting is the following excipe from the Mono-FAQ:
http://www.mono-project.com/about/licensing.html
"
The core of the .NET Framework, and what has been patented
by Microsoft falls under the ECMA/ISO submission.
Jim Miller at Microsoft has made a statement on the patents
covering ISO/ECMA, (he is one of the inventors listed in the patent):
https://mailserver.di.unipi.it/pipermail/dotnet-sscli/msg00218.html
"
Once upon the time an unimportant and unknown Microsoft-employee
has made an unimportant statement on an unimportant mailing-list ...
and that makes Mono a safe project?
And Mono should be the major Linux-development-platform?
Based on such a statement?
Unbelievable.
Rob (citizen of EMEA)
- 9
- Games and algorithmsHello,
What could be a good book to start game programming with Java?
I'm mosty interested in algorithms used in games.
-a
- 10
- 11
- Java Applet ErrorHello.
I don't know much about Java, but we are having a problem on our
website. I don't currently have the actual error message, but I'm
just wondering if anyone can possibly point to where the problem might
lie just from this information.
When a user clicks on a button, a java applet is supposed to load.
This applet loads fine for all win98 users using IE6 or 5.5. We
didn't have to load any plugins for our Win98 machines. The applet
also worked w/ win2000,winnt,winxp using IE6, but with only one
specific version of an older of a java plugin (i think 1.4.0).
Anything older or newer than that plugin does not work.
We've tried the latest, I believe it is 1.4.2_04, and still it does
not work. It does work to a certain degree w/ netscape 7.0, but the
site was not designed for netscape and other features will not work.
I know this is very vague, but I'm clueless when it comes to java. I
was just wondering if maybe someone can just kinda give a prognosis
based on this info. I just thought it was kind of weird that it works
in our 98 machines, and with only one version of a java plugin in the
other o/s's. Do you think this is a code error? IIS? server or
directory setting?
Thanks in advanced,
Gloria
- 12
- Urgent: connection not made using JDBC Thin DriversDear friends:
following code just prints
Connecting to Oracle... & it doesnt prints ....Connected to oracle
statement.
I've given the code in try catch block but also it doesn't print any
exception
why??
System.out.println("connencting to Oracle....");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn=
DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION
=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = testserver.com)(PORT
= 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME =
testdb)))","test","test");
System.out.println(".....connencted to Oracle");
I've tried the above code with some changes for the database on the
same machine it works fine. But when I tries it for the db on the other
server it not works.
waiting for reply.....
- 13
- ploting 2D graph and able to change at run time..(JFrame)
Hi everybody,
Sorry for not clear question in my last post.. and more thanks
for your reply..
The exact requirements in graph are..
1. The graph should have all feature of X & Y scale, grid, X
and Y label and multicurve.
2. The graph X & Y scale range should calculated at run time
(max and min)from X and Y array and display.
I hope these above requirements are understandable for little
while... I am not new for java but i am new for graph application.
So..can any one of you tell me where i get this kind of graph
packages or APIs for free?
..
regds,
G Nash
- 14
- String index out of range: -1 only occurs when using java.lang.ThreadI have a JSP script I stripped down to just this one scriptlet:
<%
Thread t = new Thread(new Runnable() {
public void run() {
System.out.println("Hello World");
}
});
t.start();
t.join(5000);
%>
<html>
<head>
<title>Hello</title>
</head>
<body>Hello World</body>
</html>
Whenever I try to run this I get the following output:
Error 500: String index out of range: -1
It doesn't give line number or any other explanation, furthermore, the
logs have no entry of anything for the time period whereby I ran this
script via browser.
Whenever I take out the Thread reference the script runs just fine,
even if I add other scriptlets with JSP code elsewhere, otherwise, as
long as this "empty" or "useless" thread exists, I get the weird and
very nondescript error.
Ideas?
Phil
- 15
- Statusbar class in official library?Hi,
I couldn't find any class in the API reference realizing a statusbar,
which can be placed at the bottom of a window.
Is there really no such class in the Java Standard Library?
--
Matthias Kaeppler
|
|
|