247 Posted Topics
Re: when using request.getParameter, the parameter must be in the url. so make sure when u call the servlet the name of the button has been sent and the url will look something like this[CODE]/someservlet?buttonname=xyz[/CODE] | |
Re: try using the RequestDispatcher object | |
Re: One way to do that is set a session attribute | |
Re: Your function Res() is incorrect, firstly there is no element named "opinion", so the function is failing on the first line: [CODE]opinion.value="";[/CODE] Your code to "reset" the radio buttons is correct but you need to reset all of them, currently you are only resetting one [CODE]document.getElementById("op1").checked=false; [/CODE], for three radio … | |
Re: Have a look at the request dispatcher. To implement it the code will look something like this: [CODE]RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/Homepage.jsp"); dispatcher.forward(request, response); [/CODE] | |
Hi I have been struggling with this for some time now, and am not sure what is wrong. I am using the org.json package I have this json String which looks like this: [CODE]{"2009-08-04":[{"Status":"1","Description":"sdfsdf","Task Name":"task 2","TaskId":"2"},{"Status":"1","Description":"testing 3","Task Name":"testing 3","TaskId":"3"}],"2009-07-31":{"Status":"1","Description":"read POC","Task Name":"task 1","TaskId":"1"}}[/CODE] As u can see the one object is … | |
Re: Do u have to use javascript? I think CSS would be a much better choice. | |
Re: I would normally declare it like just after the main class, like this: [CODE]public class Demo1 extends JFrame implements ActionListener, ItemListener Demo1 { [B]String string1 = "here";[/B] .............................. public JPanel MyPanel() { Action a1 = new AbstractAction("Some Action") { public void actionPerformed(ActionEvent e) { System.out.println(string1); } } } ..... class … | |
Re: Can u provide an image or more detail on what isnt working correctly, cause in IE the navigation is listed vertical while in firefox the navigation is listed horizontally. What hover isnt working correctly? | |
Hi In am new to developing web applications using java and jsp's, and after a strange problem i encountered was wondering how does the url get populated with the path of the file sometimes and not at other times. Lets say in my web.xml in the welcome-file parameter, the path … | |
Hi I have set up an example web app which was already written by a third party company. My problem comes in when i enter the app name like [B][url]http://localhost:8080/app1/[/url] [/B] it redirects to the correct page that was used in the <welcome-file> tag in the web.xml but the js … | |
Re: You would write it teh smae way you would in html. just remember to escape the double quotes in the servlet. It should look something like this: [CODE]out.println("<a href=\"http://www.google.co.za\">google</a>);[/CODE] | |
Re: You shouldnt be connecting to a database from a jsp page, rather use a servlet. Have a look here [URL="http://simple.souther.us/ar01s10.html"]http://simple.souther.us/ar01s10.html[/URL] | |
Re: So what is it that you dont know how to do? | |
Re: To join two strings use the "+" sign for example: [CODE] var str1 = "we still here"; var str2 = "where are you"; var str3 = str1 + " " + str2; [/CODE] Try google to search for ways to remove spaces, there are loads of scripts on the internet. | |
I m trying to execute the sdo_migrate.to_current method like this : [CODE]execute sdo_migrate.to_current('tablename');[/CODE] but i keep getting invalid sql error, and i dont understand why. Please help | |
Re: Firstly the border that surrounded the text area is the default border visible in the browser. To get rid of that u need to add a style attribute to the textarea tag, something like this: [CODE]<textarea style="border:none" name="results" rows="11" cols="15"></textarea>[/CODE] | |
Re: Try googling "page loading", there are loads of examples available. | |
Re: Why do u have two function stateChanged() and why do u have a function within a function? I suggest get rid of the second stateChanged() function. Download firebug for firefox, great tool for debugging. | |
| |
Re: Can u provide some code. | |
Re: So what u want to do is not let the header cells to stretch if u stretch the web page? or do u want the header cells to remain a constant size with the data cells stretching depending on the amount of data within those cells? | |
Re: I can help u out with the numeric one, if u search for regular expressions to restrict alpha and special characters, u should find something that works in both. [CODE] function checkNumeric(entry) { var numeric = /^[0-9]*$/; if (!numeric.test(entry.value)) { document.getElementById('errorText').style.display = ''; }else{ document.getElementById('errorText').style.display = 'none'; } entry.value = … | |
I want to develop a web app that can allow the user to change the type of database he/she is using(Access, Sql Server, Oracle), just by changing the connection properties in a properties file. I am assuming that this is possible. Would it become too complicated meaning way too much … | |
Re: Why dont you split your result into an array using the split method for example : [CODE]<% Dim DOB, MyDobArray DOB= bdayRS.Fields.Item("dob").Value MyDobArray = Split(DOB,"/") %>[/CODE] then you can format each area of the date because for example [CODE]MyDobArray(0) = "2009" MyDobArray(1) = "04" MyDobArray(2) = "23"[/CODE] Another way could … | |
Re: Try googling "delete all rows of table with javascript" loads of information came from the search I did, if u get stuck with the code, place the code that you are having trouble with, and someone will definitely try and help you. | |
Re: I havent used MySQL that much, but i do know that to sort results you would use the "order by" clause, a small example: [CODE]Select name, id, gender from tblPerson order by name[/CODE] You can use the keyword [B]DESC[/B] to order objects in descending order. | |
Re: try googling "load an external js file". there are loads of examples on the internet. | |
Re: You cannot see an asp file in the webrowser if u have it on your desktop, it has to be in the wwwroot. I know this statement might be stupid and i dont mean to be mean but u cannot double click and expect your asp file to open in … | |
Re: Can u provide the code that u are using | |
Is there a way of changing the username and password used to connect to the db in a connection pool, or do i have to create a new connection pool with the new username and password. I do not want to hard code the connection string thats why i want … | |
My head is telling me that the answer to this question is going to be NO, but hopefully i m wrong. I have a servlet which gets redirected using RequestDispatcher to a jsp page, the jsp page has some html input fields. In the servlet i get the values from … | |
Re: U are not calling your function anywhere in the html My suggestion would be to change the submit button to a normal button and use the onclick to call teh function like this: [CODE]<input type="button" value="Submit" name="Submit" onclick="validateForm()"> [/CODE] I dont see the need to pass the contact variable in … | |
Re: I think it would be something like this: [CODE]weekdayname(weekday(ADt))[/CODE] | |
Hi I am trying to remove a session attribute from my app, currently i use the jstl tag remove to remove the attribute, this works in firefox when the browser is refreshed, but not in IE, so i then decided to use the session.removeAttribute method in a servlet that gets … | |
Re: Have u tried using firefox's firebug? I copied the code u provided and it doesnt work because DynLayerInit is undefined, i suspect it is in the dynlayer.js file. which u havent provided. Please provide the other js files as well, it would help alot. ![]() | |
Re: I think it might have something to do with what it is pulling from the database, write out the sql, maybe there is some double quotes or reserved words in the sql. | |
I was working through an client side struts from the internet, everything worked fine, until the alert came up displaying "???en_GB.errors.required???" instead of the values from the MessageResource.properties file. Does anyone know what the problem could be? | |
Re: i could be wrong but i think u have to use session.getAttribute | |
Re: Can u give a further explanantion, i dont understand what u want to do. | |
Re: can u provide the screen shot of how it is looking in ie7, i just cant understand what u want it to look like, i think the cold here in SA has frozen my brain. | |
Re: I think u could create a function and in that function set the variable something like this: [CODE]function updateVar(){ mysample = 3; } [/CODE] and then the button would look like this: [CODE]<input type="button" id="sample0" onclick="updateVar()" />[/CODE] | |
Does anyone know how to change the look of the java files that are listed when you expand the java folder in the tree structure of the database? i have these numbers infront of the class file, but have no clue what they are, they are not there in toad(i … | |
Re: Have a look here [URL="http://www.alistapart.com/articles/taminglists/"]http://www.alistapart.com/articles/taminglists/[/URL] [URL="http://www.w3.org/TR/css3-lists/"]http://www.w3.org/TR/css3-lists/[/URL] | |
Re: I think u are in the wrong forum, but your jsp file is giving the errors, teh first one tells u that u need a catch or finally when using the try statement. Another thing u shouldnt be using those statements in a jsp file, put them in a servlet, … | |
Re: i understand what u need to do, but what have u done, can we look at some code that u have done. | |
Re: I could be wrong but i think u have to put the quotation marks in [CODE]<input type="text" readonly name=MemberNommer id=MemberNommer value="<?php echo $MemberNommer ?>" />[/CODE] I dont know php, so i m not sure if the double quotes will break the php code. | |
| |
Re: [QUOTE=peter_budo;648065]What would be interesting to know is how do you start this whole thing? [/QUOTE] Are u going directly to your jsp page or your servlet first I suggest calling your servlet which will then redirect to the jsp page, then your array should be filled. |
The End.