Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 198
Search took 0.02 seconds.
Search: Posts Made By: panacea
Forum: Servlets October 27th, 2006, 09:52 PM
Replies: 1
Views: 1,094
Posted By panacea
No. There's a hotdeploy configuration you can...

No. There's a hotdeploy configuration you can turn on in server.xml. I gotta run, I wish I could provide a direct pointer... but you can definitely deploy .class, .war, and .ear files on top of...
Forum: Java Basics October 16th, 2006, 03:32 AM
Replies: 1
Views: 812
Posted By panacea
You must be creating your threads...

You must be creating your threads programmatically in the main thread. In your main thread, don't create new threads once your maximum is hit. Instead, pool them up and wait for an existing thread...
Forum: Java Basics October 13th, 2006, 05:57 PM
Replies: 11
Views: 4,548
Posted By panacea
And I want a paycheck without having to do any...

And I want a paycheck without having to do any work.

Wtf are you talking about? Why not use a tool? That's what they're created for.

Jon Emerson
http://www.jonemerson.net/
Forum: Java Basics October 12th, 2006, 03:29 PM
Replies: 1
Views: 1,111
Posted By panacea
Isn't it just popped off the heap, just like...

Isn't it just popped off the heap, just like instance variables?

Jon Emerson
http://www.jonemerson.net/
Forum: Java Basics October 12th, 2006, 03:28 PM
Replies: 4
Views: 1,033
Posted By panacea
You should be able to compile it from the command...

You should be able to compile it from the command line if you have your classpath properly configured. What errors are you getting?

Jon Emerson
http://www.jonemerson.net/
Forum: JSP Basics October 12th, 2006, 03:26 PM
Replies: 3
Views: 1,358
Posted By panacea
Ohh!!! Sorry, I didn't catch this before. ...

Ohh!!! Sorry, I didn't catch this before.

You shouldn't use statics in this case. By using a static database connection, every thread is sharing the same connection. So when one thread opens...
Forum: Apache Tomcat October 11th, 2006, 01:48 PM
Replies: 1
Views: 801
Posted By panacea
In your build.xml file, simply have multiple...

In your build.xml file, simply have multiple <javac> elements for each source dir. Have them all compile to the same class folder. That way, when it comes time to put them into a JAR or WAR, you...
Forum: Apache Tomcat October 11th, 2006, 01:46 PM
Replies: 1
Views: 1,031
Posted By panacea
Those are all the latest versions, so I would...

Those are all the latest versions, so I would just go with Tomcat 5 (the latest version of Tomcat). You can use any version of Tomcat you want, though. It's a pretty robust application.

Jon...
Forum: JSP Basics October 11th, 2006, 01:43 PM
Replies: 1
Views: 2,951
Posted By panacea
A proper solution would be to change your...

A proper solution would be to change your StoreData class into a HttpServlet. E.g. "StoreData extends javax.servlet.http.HttpServlet". Then convert your main() method to doGet(ServletRequest,...
Forum: JSP Basics October 11th, 2006, 01:38 PM
Replies: 1
Views: 1,951
Posted By panacea
There's already lots of open source chat servers...

There's already lots of open source chat servers using servlets and JSP. Why don't you see if they do what you need? Then you can modify them to do what they don't.

Jon Emerson...
Forum: Java Basics October 11th, 2006, 01:37 PM
Replies: 4
Views: 1,033
Posted By panacea
Well, without spending too much time reproducing...

Well, without spending too much time reproducing the issue here, I can immediately tell that your quotes don't match up in your <applet> tag for the code attribute. How about trying this instead?
...
Forum: JSP Basics October 9th, 2006, 08:53 PM
Replies: 1
Views: 2,017
Posted By panacea
Um, are you sure you're doing a...

Um, are you sure you're doing a String.replace("\r\n", "<br>") ? It seems like you're doing String.replace("\r\n", "&lt;br&gt;") instead. Please confirm that you've tried simply "<br>" and used c:out...
Forum: JSP Basics October 9th, 2006, 08:50 PM
Replies: 3
Views: 1,358
Posted By panacea
Well, it's hard to tell exactly based on the code...

Well, it's hard to tell exactly based on the code you provided. I'm suspecting, however, that you r servlets have an DBCon member variable defined in them. That'd be your problem. Servlets should...
Forum: Pro Java October 9th, 2006, 08:32 PM
Replies: 1
Views: 1,911
Posted By panacea
It looks like you've already passed the info...

It looks like you've already passed the info HashMap to the new thread, so therefore the parent thread and the child thread should both have access to it. However, HashMaps are not thread-safe. ...
Forum: Servlets October 9th, 2006, 08:28 PM
Replies: 1
Views: 2,756
Posted By panacea
Does...

Does /usr/local/tomcat/apache-tomcat-5.5.15/conf/auto/mod_jk.conf exist? Does the user you're running Tomcat or Apache under have rights to access it? Perhaps chmod a+r mod_jk.conf, or add the...
Forum: Servlets October 9th, 2006, 08:26 PM
Replies: 1
Views: 1,096
Posted By panacea
Why don't you install Apache Tomcat and run...

Why don't you install Apache Tomcat and run through some of the tutorials?

Jon Emerson
http://www.jonemerson.net/
Forum: Java Basics October 9th, 2006, 08:25 PM
Replies: 1
Views: 2,753
Posted By panacea
Put them in your $PATH / %PATH% or refer to their...

Put them in your $PATH / %PATH% or refer to their locations absolutely. E.g. String exeFilename = "c:\\myprograms\\foo.exe";.

Jon Emerson
http://www.jonemerson.net/
Forum: Java Basics August 23rd, 2006, 08:32 PM
Replies: 6
Views: 776
Posted By panacea
What's wrong with this? // Assumg objectname...

What's wrong with this?

// Assumg objectname instanceof Person
ArrayList humanCanWatch = new ArrayList(); // ArrayList of Person
Iterator i = humanCanWatch.iterator();
while (i.hasNext())
{...
Forum: Beginning PHP August 21st, 2006, 04:31 PM
Replies: 1
Views: 1,612
Posted By panacea
Seems like one of the variables that you're...

Seems like one of the variables that you're putting in a URL has a
carriage return in it. This can be fixed by using urlencode() around
any variables you're putting into a redirection ...
Forum: JSP Basics August 21st, 2006, 04:23 PM
Replies: 1
Views: 1,389
Posted By panacea
Seems like you have a typo somewhere ... there...

Seems like you have a typo somewhere ... there shouldn't be anything tricky, except for perhaps capitalization.

Jon Emerson
http://www.jonemerson.net/
Forum: Servlets August 21st, 2006, 04:22 PM
Replies: 3
Views: 7,648
Posted By panacea
Hi Nirlep, Just add servlet.jar to your...

Hi Nirlep,

Just add servlet.jar to your classpath.

Jon Emerson
http://www.jonemerson.net/
Forum: Pro JSP August 21st, 2006, 04:20 PM
Replies: 5
Views: 1,821
Posted By panacea
What about a POST? Jon Emerson ...

What about a POST?

Jon Emerson
http://www.jonemerson.net/
Forum: JSP Basics August 16th, 2006, 05:51 PM
Replies: 2
Views: 1,524
Posted By panacea
The message "The value for the useBean class...

The message "The value for the useBean class attribute ..." means that a no-argument constructor is not available. One would think that since you don't have a constructor defined, a no-arg...
Forum: Struts August 16th, 2006, 03:37 AM
Replies: 3
Views: 32,563
Posted By panacea
Hi Sachin, You just have to set the property...

Hi Sachin,

You just have to set the property that the checkbox is linked to to true before you forward to the JSP. For example, if you have <html:checkbox property="foo">, inside a form named...
Forum: Pro Java August 16th, 2006, 03:33 AM
Replies: 4
Views: 3,634
Posted By panacea
Have you looked at String.split(",")? Jon...

Have you looked at String.split(",")?

Jon Emerson
http://www.jonemerson.net/
Showing results 1 to 25 of 198

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.