Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 204
Search took 0.01 seconds.
Search: Posts Made By: angrycat
Forum: Apache Tomcat December 20th, 2005, 04:42 AM
Replies: 2
Views: 3,207
Posted By angrycat
Yes you can do all that, not too difficult. ...

Yes you can do all that, not too difficult.

The easiest way to manage the users is with a database, most people use mySql. There are instructions in the Tomcat docs for setting up a database. If...
Forum: Pro JSP October 24th, 2005, 10:36 AM
Replies: 1
Views: 2,067
Posted By angrycat
How can I forward/redirect to another JSP without...

How can I forward/redirect to another JSP without causing the output stream to close?

If you are talking about output to the browser then I dont think you can, when you redirect your code will...
Forum: Pro JSP October 24th, 2005, 10:32 AM
Replies: 2
Views: 1,158
Posted By angrycat
Create setter methods in your bean, then call...

Create setter methods in your bean, then call them as you did your getter method

trx.setItem("yourValue");

setItem must be created in your bean first, something like

public void...
Forum: JSP Basics October 9th, 2005, 12:56 PM
Replies: 2
Views: 5,931
Posted By angrycat
Ive never found anything with drag and drop, the...

Ive never found anything with drag and drop, the best free IDE ive used is

http://www.netbeans.org/
Forum: JSP Basics October 9th, 2005, 12:50 PM
Replies: 1
Views: 875
Posted By angrycat
if (foryear != null); .equals compares...

if (foryear != null);

.equals compares strings, you cannot use it to compare to null.
Forum: Pro JSP October 3rd, 2005, 01:14 PM
Replies: 2
Views: 1,087
Posted By angrycat
I just use the html refresh tag: <meta...

I just use the html refresh tag:

<meta http-equiv="refresh" content="60">

This works ok with the get method of passing parameters, might fail with post data though.
Forum: Pro JSP October 3rd, 2005, 01:10 PM
Replies: 37
Views: 76,499
Posted By angrycat
Have you used this? Is it an Apache module,...

Have you used this?

Is it an Apache module, or are they classes / servlets you can plug into other apps, I ask as Im using Tomcat standalone at the moment.

Cheers,
Forum: Pro JSP September 26th, 2005, 04:52 PM
Replies: 4
Views: 2,659
Posted By angrycat
Clickatel offer some kind of Java interface, I...

Clickatel offer some kind of Java interface, I have not tried it yet, you can also send a mail which they will foreward as sms.
Forum: JSP Basics September 26th, 2005, 04:49 PM
Replies: 3
Views: 1,094
Posted By angrycat
Sorry, should have told you to try this...

Sorry,

should have told you to try this first:

DateFormat format = new SimpleDateFormat("dd/MMM/yyyy");

will return short description of month

DateFormat format = new...
Forum: JSP Basics September 24th, 2005, 07:57 AM
Replies: 3
Views: 1,094
Posted By angrycat
I do not have code to hand, but I think you can...

I do not have code to hand, but I think you can add a parameter

SimpleDateFormat(DateFormat.MEDIUM);

Which will write out the format you want, not sure if I have got the right method here...
Forum: Pro JSP August 9th, 2005, 05:41 PM
Replies: 37
Views: 76,499
Posted By angrycat
With regard to the problem posted by Joseph76,...

With regard to the problem posted by Joseph76, your html form must include:

METHOD="POST" ENCTYPE="multipart/form-data">

To post files you need to use multipart/form-data

Better late than...
Forum: Apache Tomcat August 9th, 2005, 05:16 PM
Replies: 3
Views: 1,493
Posted By angrycat
If this was a typo in your post, then have a look...

If this was a typo in your post, then have a look at the tomcat documentation, it has the best tutorial on jndi ive found, quite short, wont take long to check what youve done.
Forum: Apache Tomcat August 9th, 2005, 05:07 PM
Replies: 3
Views: 1,493
Posted By angrycat
initCtx.looup, dont you mean initCtx.lookup ...

initCtx.looup, dont you mean
initCtx.lookup :-)
Forum: JSP Basics August 8th, 2005, 08:26 AM
Replies: 1
Views: 2,277
Posted By angrycat
Hello, havent started using jstl myself, but it...

Hello, havent started using jstl myself, but it seems strange to put a .war file in the Common/lib directory, I have only ever added .jar files, are you sure you are supposed to add .war files?
Forum: Apache Tomcat July 13th, 2005, 05:39 AM
Replies: 1
Views: 1,615
Posted By angrycat
There is a tutorial on how to do this in the...

There is a tutorial on how to do this in the tomcat documentation.
You will need to find the correct ACCESS driver to get this working.
Forum: Apache Tomcat July 11th, 2005, 09:10 AM
Replies: 35
Views: 8,749
Posted By angrycat
Web and Server XML are read by tomcat on startup,...

Web and Server XML are read by tomcat on startup, so any changes made require a re-start. If you are using classes within your web application, the addition of new methods also requires a restart to...
Forum: Pro JSP June 29th, 2005, 02:10 PM
Replies: 10
Views: 52,316
Posted By angrycat
Thanks for that post it will come in handy for a...

Thanks for that post it will come in handy for a project I have in mind later this year.
Forum: JSP Basics June 28th, 2005, 04:38 AM
Replies: 2
Views: 2,665
Posted By angrycat
Try: if (i == 0) { dispatcher =...

Try:

if (i == 0) {
dispatcher = getServletContext().getRequestDispatcher(response.encodeURL(url));
dispatcher.forward(request, response);
return;
}

It worked for me, but my code was...
Forum: JSP Basics June 27th, 2005, 04:20 PM
Replies: 2
Views: 1,424
Posted By angrycat
http://www.apress.com/book/supplementDownload.html...

http://www.apress.com/book/supplementDownload.html?bID=199&sID=1088&APRESSESSID=90fa250e20831d2a456180f28416c613
Forum: JSP Basics June 27th, 2005, 03:34 PM
Replies: 1
Views: 16,772
Posted By angrycat
To pass a value to JSP you need to submit it to...

To pass a value to JSP you need to submit it to the page when opening it, if that makes sense. You cannot write directly to the variable, remember javascript runs on the client, java runs on the...
Forum: JSP Basics June 26th, 2005, 09:30 AM
Replies: 4
Views: 968
Posted By angrycat
Dont worry I can read it ok! If you cant...

Dont worry I can read it ok!

If you cant trust your server your whole site/data/everything is up for grabs, I would be more worried about my databases etc. than a mail password, it was database...
Forum: JSP Basics June 25th, 2005, 08:08 AM
Replies: 2
Views: 757
Posted By angrycat
This is the most meaningless question I have ever...

This is the most meaningless question I have ever seen.

If your interested in Tomcat, install it, go to http://localhost and read the documentation.
Forum: JSP Basics June 25th, 2005, 07:57 AM
Replies: 4
Views: 968
Posted By angrycat
I have read a bit on the sun forums about this...

I have read a bit on the sun forums about this and there was no easy method that I could see, the only solution involved splitting the password into different elements and re-assembling them in the...
Forum: Java Databases June 19th, 2005, 08:05 AM
Replies: 3
Views: 1,347
Posted By angrycat
Sorry, incorrect code: st =...

Sorry, incorrect code:

st = conn.prepareStatement("INSERT INTO test (col1) VALUES (?)");

st.setInt(1,yourInt);

st.executeUpdate();
st.clearParameters();
Forum: Java Databases June 19th, 2005, 08:00 AM
Replies: 3
Views: 1,347
Posted By angrycat
I do not use the same syntax for updating...

I do not use the same syntax for updating records, so I am not 100% sure. I noticed that your first example was missing the de-limiting characters '1'.

A more likely problem is your data type,...
Showing results 1 to 25 of 204

 


All times are GMT -4. The time now is 05:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.