Forum: JSP 5 Days Ago |
| Replies: 1 Views: 160 It might help to see this "LOGIC ITERATOR", but if you are doing something akin to
while(next()) {
if (valid) {
print data
}
print newline
}
then, yes, of course, it is coming from... |
Forum: JSP 10 Days Ago |
| Replies: 6 Views: 6,118 Someone must have moved something, or something, as this popped up in my mail as if it had been replied to, and now that I look at the post above mine, I realise that that post is old too, I had just... |
Forum: JSP 11 Days Ago |
| Replies: 6 Views: 6,118 I knid of doubt that will help though, as the majority of peoples names (as the variable implies that that that is) will not be alphabetically less than end. What the OP probably wants is if... |
Forum: JSP 13 Days Ago |
| Replies: 1 Views: 279 What does "User" constructor do? (IOW It's code, please.) As I find it very hard to believe that that line will throw an NPE, unless the constructor is catching one then rethrowing it, maybe, and... |
Forum: JSP 21 Days Ago |
| Replies: 3 Views: 3,008 Because the browser history (on the client) has nothing to do with the session on the server. For each and every page you return set the "no-cache" pragma and set an expires meta-data of -1. At... |
Forum: JSP 24 Days Ago |
| Replies: 1 Views: 363 Well, of course you're "not getting the exact reason for this" when you ignore all errors. Add a printStackTrace to each of those catch blocks. |
Forum: JSP 28 Days Ago |
| Replies: 1 Views: 471 Well, I am sure someone can, but this is not the proper forum. Try an HTML forum? Or a JavaScript forum? |
Forum: JSP Oct 28th, 2009 |
| Replies: 5 Views: 2,380 |
Forum: JSP Oct 27th, 2009 |
| Replies: 35 Views: 22,246 Yes there is. You have obviously never worked on anything that lasted more than a few days, or ever needed to be expanded or improved or fixed. Scriptlets are a maintenance nightmare. At the very... |
Forum: JSP Oct 20th, 2009 |
| Replies: 3 Views: 387 |
Forum: JSP Oct 13th, 2009 |
| Replies: 3 Views: 566 String pic = rs.getString("pincode");
not
String pic = rs.getString(pincode);
Also, use a preparedStatement, cobbling a statement together using String concatenation like you've done is just... |
Forum: JSP Oct 8th, 2009 |
| Replies: 3 Views: 634 And that is still attempting to insert text into a number field.
You shouldn't be using scriptlets anyway. Those are maintenance nightmares. Break that stuff out into a bean.
Edit: And, if... |
Forum: JSP Oct 7th, 2009 |
| Replies: 3 Views: 634 And your question is?
That exception usually comes when trying to insert to (or query in a where clause against) a number field using letters and not digits.
Edit: I.E. 'Z' instead of 0 |
Forum: JSP Sep 16th, 2009 |
| Replies: 1 Views: 291 configure the servlet mapping in the web.xml properly. |
Forum: JSP Sep 11th, 2009 |
| Replies: 1 Views: 302 Read the manual. I see no need to repeat information here that is freely, and readily, available from the same source from where you downloaded the software. It is also provided in the download. ... |
Forum: JSP Sep 4th, 2009 |
| Replies: 5 Views: 525 You don't have to "write a classpath" for web apps.
You place any jar you need in the web-apps WEB-INF/lib directory, except JDBC libs may need to be placed in the "shared/lib" directory of... |
Forum: JSP Sep 3rd, 2009 |
| Replies: 5 Views: 525 http://tomcat.apache.org/tomcat-6.0-doc/index.html
And Read Chapters 1 - 4 of the User Guide portion. |
Forum: JSP Aug 28th, 2009 |
| Replies: 10 Views: 527 I wouldn't expect it to be. Don't have clue. I can only suggest checking out the MS sites. |
Forum: JSP Aug 28th, 2009 |
| Replies: 10 Views: 527 First, and foremost, change those cobbled together SQL queries with Statement to PreparedStatements (see the tutorial on PreparedStatements).
Secondly, if no error is occurring, than I can only... |
Forum: JSP Aug 28th, 2009 |
| Replies: 10 Views: 527 |
Forum: JSP Aug 27th, 2009 |
| Replies: 10 Views: 527 Code and exceptions would help. |
Forum: JSP Aug 16th, 2009 |
| Replies: 2 Views: 439 Have you tried placing quotes around the portion of the classpath with the space in it? Or around the entire classpath? Also, make sure that the configuration for tomcat also has quotes around the... |
Forum: JSP Jul 29th, 2009 |
| Replies: 3 Views: 251 Add one.
<select id="...." name=".....">
<option value ="sydney">Sydney</option>
<option value ="melbourne">Melbourne</option>
<option value ="cromwell">Cromwell</option>
<option... |
Forum: JSP Jul 27th, 2009 |
| Replies: 4 Views: 433 So don't redirect. Have the servlet deliver it directly! As I have already said.
If the file is a pdf, set the response objects content type to pdf, read the PDF bytes and send them directly to... |
Forum: JSP Jul 27th, 2009 |
| Replies: 4 Views: 433 Like I have said before (and I believe to you) was write a servlet that takes a filename as one of the parameters and then have that servlet check the session information before returning the... |
Forum: JSP Jul 20th, 2009 |
| Replies: 10 Views: 809 By asking on a JavaScript forum, maybe?
People here, however, due to the terms and conditions for this site, are not supossed to just "give it to you", though.
And Peter is correct. AJAX is... |
Forum: JSP Jul 20th, 2009 |
| Replies: 10 Views: 809 Unfortunately, not in the way he wishes. He wishes to have the user be able to select an option in one list, and from that, populate the options in the second list.
So, he can use those on the... |
Forum: JSP Jul 20th, 2009 |
| Replies: 10 Views: 809 This "dynamic population", as you call it, would happen on the client side, but JSP, of course, runs on the server side, so you have three options
1. Send all of the data (either in the form of... |
Forum: JSP Jul 5th, 2009 |
| Replies: 1 Views: 375 Because you are trying to dereference a null reference. |
Forum: JSP Jun 30th, 2009 |
| Replies: 2 Views: 875 How about a grammar and spell checker? |
Forum: JSP Jun 18th, 2009 |
| Replies: 2 Views: 502 A JSP in itself is definately not causing this. This has to do with the produced HTML, and the JSP, obviously, can only produce the HTML that you tell it to. This looks as though you have given the... |
Forum: JSP Jun 17th, 2009 |
| Replies: 6 Views: 573 Why an applet? Why not a normal HTML form delivered by a JSP that submits to a Servlet? |
Forum: JSP Jun 16th, 2009 |
| Replies: 32 Views: 3,093 Actually, there probably are errors, but they are being printed to STDERR
} catch (Exception e) {
e.printStackTrace();
}
So you need to search your server logfiles. |
Forum: JSP Jun 16th, 2009 |
| Replies: 3 Views: 544 Did you have a question?
We are not here to do your homework/quizzes for you. |
Forum: JSP Jun 16th, 2009 |
| Replies: 32 Views: 3,093 Well, that should definately not produce a blank page (unless, maybe, you really are missing that opening "less than" sign). I meant the HTML source of the "blank page" you're talking about. |
Forum: JSP Jun 16th, 2009 |
| Replies: 32 Views: 3,093 Okay? And what does the page source look like (from the browser View --> Source)? Post that here. |
Forum: JSP Jun 16th, 2009 |
| Replies: 32 Views: 3,093 Include the jar that contains the class "org/apache/commons/io/output/DeferredFileOutputStream" in the WEB-INF/lib directory of your webapp. |
Forum: JSP Jun 16th, 2009 |
| Replies: 6 Views: 573 Of course. Study up on Servlets and JSPs. |
Forum: JSP Jun 8th, 2009 |
| Replies: 1 Views: 581 In short, you can't. JSP's and Servlets run on the server and the clients (if they are at all interested in safety/security won't give those resources free to the world). Produce a "print" page for... |
Forum: JSP Apr 23rd, 2009 |
| Replies: 5 Views: 28,680 |