- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
43 Posted Topics
Re: Hey, if you are using Java/JSP and/or servlets you can always save your rs object in the session, which would make it remain accross browser transactions...BUT I have never tried it that way... I also NEVER work with MS Access unless it is on my desktop...it is just not a … | |
Re: Well, that wasn't very nice, was it... since the use of Java code in a JSP file is certainly within the realm of JSP, I can understand why this person posted here... it is an innocent enough question, if you don't want to be helpful, then just don't reply... Now, … | |
Re: One issue is the concept of "containers"... The div tag is a container, but it is contained in the body tag... the body tag, unfortunately is not trated the same on all browsers... in some it is sized to fit the browser's available space... in some browsers the body tag … | |
Re: OK, it seems you posted twice this time with more detail... this should be posted to the Javascript lists rather than JSP lists... BUT, a date object, or datetime is just a long numberic value... counting (usually) seconds or militseconds sine the "Epoc" time... usually Jan, 1 1970 00:00:00... You … | |
Re: OK, I am hoping your code above is broken because of the way you copied it.... BUT... IE defaults a webpage to a white background... Body tag's background is NOT an inherited value... other browsers make everything or almost everything an inherited value... who's right, who's wrong according to the … | |
Re: Now I have not seen the site in the link above and jwenting and I have had words over "opinion" about what is right and what is not... Unfortunately, I find his posts to be very little help to most people, he seems to want to post to everything but … | |
Re: It is pretty basic, Each time a browser accesses your web application for the first time a session is created... want it or not... this session doesn't mean anything unless you use it... but it would allow you to save data without a DB, text file or cookie, about the … | |
Re: On thing I would say is "Just Say NO!" to MS SQL 2000... It is NOT a good DB... it is prone to deadlocks and on any serious system it will be a serious weakness... the number of concurrent supportable users will be microscopic compared to a real DB... I … | |
Re: The simple answer here is to do some debugging by putting some debug code into your class. Start by setting a starting value to rating such that you have, String rating = "Rating Not Null"; Then test, see if rating comes out null, or does rating still contain the initial … | |
Re: Without further investigation I can't promise that I am the right track here... But it may be in the url encode and url decode that is taking place... the "+" is the encoded space " " the first time, but the second time, it would get url encoded AGAIN... double … | |
Re: Add some debug code, skip the actual file write for now... place output statements to show the values of the parameters... if you try to read a parameter that doesn't exist you will have a problem... if you try to create a file with a null object which would be … | |
Re: First, be a little nicer about how they wrote their question. NOT all people using these sites are native or even good English speakers... If the question seems to make sense which this one does, don't complain about the language choice... What I see is typical language for a Japanese … | |
Re: The links provided to Marty Hall's book info have some valid information, but they book is not good, Marty Hall intentionally avoids anything useful in all but the most trivial applications. Also the book is QUITE old... That said, the sections on sessions shoudl be useful... You may want to … | |
Re: OK, first of all, what DB are you using? Second, where are you doing the formatting, in JSP, in the Servlet or in the Bean? Depending on the DB you use, you should be able to set a limit and and offset int he SQL statememt. This will have pseudo … | |
Re: I am not sure exactly what you are trying to do here, so if I am off a great deal, please forgive me. If you have 2 different "applications" they are isolated by Tomcat, though a workaround may exist, I am not sure it is needed. You can't really, or … | |
Re: OK, I have been programming for near 30 years. I have touched every major programming language in those 30 years. Actually it is 27 years but near enough to 30 for this discussion... Good coding practices are not written in stone, they have evolved over the years, changing as frequently … | |
Re: Application scope, as mentioned, is for sharing data among ALL sessions within an application... this can be useful for many purposes, often a hit count is used as an example, BUT that is a contrived example because any server restarts or application restarts will reset it to ZERO... but when … | |
Re: use DateTime.parseDateTime(String) or DateTime.parseDate(String) Each will return a DateTime object from a string in a standard format... if it doesn't inderstand the string it will throw a NumberFormatException Peace, | |
Re: How you can say logging is not related to JSP.... are you suggesting that logging can't be done in JSP? If so, then JSP designers seems to have missed something that is vital to all programming and capable of doing in any language of which I am aware. Are you … | |
Re: Push, can you provide a little clearer post with more specific details about what you are trying to do and what the problem is... typically in JSP you would use the useBean tag to indicate what Bean you want to use... There are paramters to indicate the class or type … | |
Re: First of all, it doesn't matter what you did with the .java file... Tomcat really cares about the servlet .class file You have to tell Tomcat what you call your servlet within the web.xml file... and what the .class file is... this need to have the package.classname if you used … | |
Re: If you want to work with Excel, you should look at using ASP rather than JSP... there are many ActiveX controls which would allow the Excel sheet to edited inplace on the browser... Now that I said that, I have to ask why, why, why, why, why.... As much as … | |
Re: Can you provide more specific details about what you have done, are trying to do? If you separate the logic and presentation then you need to pass state between the logic component and the presentation component. this would include a flag to indicate an error condition and/or the error message... … | |
Re: What are you referring to? typically the problem with include files is that the response buffer either contains data already or has been sent... you can't change what is buffered or sent but you can add to it... if the buffer is not sent then you can clear it, which … | |
Re: Can you please explain what you are referring to a little better? Vector was like an array that grew as needed, but its performance is not very good, since linkedlist has been enhanced and performance is better, many professionals who have tested these recommend the use of a linkedlist over … | |
Re: Sorry, I don' fully understand what you are saying. Perhaps a little more info would be helpful. What is your form trying to submit? What text file are you talking about, do you mean text field? What error are you getting? What does your form do when submit? I wanna … | |
Re: Your problem here is that you are writing a new document when the button is clicked... the current document is closed, so the browser tries to do the document.write as a new document. You should use some editable field, like using a text input field for output or a text … | |
Re: My guess is that the radio buttons and text labels are aligned using a form... without being specifically set widths the browsers will just determine the widths as their internal logic dictates... Otherwise you may need to see if the radio buttons have any margin-right values set by default... The … | |
Re: div gives great control over layout, fixed or otherwise, only people who don't really spend the time to learn to use it right promote the use of tables for layout... I am not sure that the above suggestion to inline the div tags will work as expected, some browsers, newer … | |
Re: Well, you can certainly do it by embedding some Java code in your JSP file... Instead of trying to insert it directly from JSP tags...or a custom tag library... You can create a custom tag library to handle this also... but it is basically handled by setting the DB Connection … | |
Re: You say in the title js... if you mean Javascript, then you should post in the Javascritp lists, you'll get better results... If it is a typo and you meant JSP, then I will see what I can do... However, the priciple is basically the same... You can build a … | |
Re: First of all, the mailto: URL will only work if the client machine is configured for e-mail... which on a campu they aren't because that is user specific to each machine...the server doesn't matter.... it is a client side issue... Next, it can be done with Server Side scripting or … | |
Re: You can do this with CSS only, and even deal with the image issue... the statement that tables should only be used for tabular data is ABSOLUTELY correct. At the risk of sounding argumentative, the comment about using a table for you layout be valid is "in my opinion" absolutely … | |
Re: Dude, you have the answer above already...the onClick parameter is ALWAYS going to run when clicked... this is NOT form input.... The input tag with type="image" is the CORRECT way to use an image as a button... if you don't do it correctly even when people tell you, then there … | |
Re: Have the dynamic page, php, jsp or even javascript write the file name to the init parameters for the flash movie embed tag...then the flash move can load whatever file is indicated as it init parameters... | |
Re: You have 2 scripts, 1 in the head and 1 in the body, but the 1 in the body is writing a new html, head, body etc. tags... so you have a broken html page for the browser when you are done.... In effect you have this structure html head … | |
Re: well first of all, your input tag is broken... NO closing bracket.... so it may not be recognized by the browser as a valid element... | |
Re: You know, I really wanted to help, but you over whelmed me with too much stuff to read on the screen... So lets start at the begining... Your HTML page at the top has NO php in it, so it is showing exactly what you have told it to show... … | |
Re: What results are you getting? Have you tried 5.0/9.0, Java will assume 5/9 are integers, but that is 0.55555 which will be just 0 as an int... it doesn't round, it truncates... or better yet, use (F-32)/1.8 you should make your variables something capable of carrying a fractional component... | |
Re: loose the "function" keyword... What your script does is declare a function ,which actually already exists, if the page url matches one of your options... it doesn't actually call the function... place the script in the page where you want the html code written and then just use "document.write();" rather … | |
Re: Why did you ask and answer your own questions? First, why are you using both iframes and tables...redundant much...? You have to transfer the html, css, JS to the browser...BUT then the JS has to process the data and the iframe content must load... if it is loaded superfluous data … | |
Re: Yes, I have just read several posts in the last 20 minutes and almost all of them have the same problem, people using int for any number without thinking about just what an int is... int, long, double float etc. to each their own and long live the int... I … | |
Re: I know this is an old question, but I just saw this, an in case anyone else wonders, I did domething like this several years ago, but rather than querying the db from page2, I made my values contain BOTH the index from the DB and the text... I just … |
The End.