247 Posted Topics

Member Avatar for gaya123

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]

Member Avatar for Thirusha
0
79
Member Avatar for gaya123
Member Avatar for moonis.ahmed
Member Avatar for polo_coins

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 …

Member Avatar for essential
0
167
Member Avatar for peggie1990

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]

Member Avatar for Thirusha
0
100
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
135
Member Avatar for suresh01
Member Avatar for Thirusha
0
27
Member Avatar for Web_Sailor

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 …

Member Avatar for Thirusha
0
93
Member Avatar for tillotama

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?

Member Avatar for essential
0
224
Member Avatar for Thirusha

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 …

Member Avatar for ejosiah
0
82
Member Avatar for Thirusha

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 …

Member Avatar for Banderson
0
105
Member Avatar for alsoumhi

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]

Member Avatar for Thirusha
0
86
Member Avatar for peggie1990

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]

Member Avatar for peggie1990
0
1K
Member Avatar for sharao
Member Avatar for mohamed1

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.

Member Avatar for Thirusha
0
66
Member Avatar for Thirusha

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

Member Avatar for Thirusha
0
99
Member Avatar for Pleasant Day

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]

Member Avatar for Thirusha
0
131
Member Avatar for nish123
Member Avatar for nish123
0
254
Member Avatar for balamad

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.

Member Avatar for Thirusha
0
86
Member Avatar for taresh1
Member Avatar for Thirusha
0
88
Member Avatar for ArvindSharma
Member Avatar for gagan22
Member Avatar for Zurompeta

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?

Member Avatar for Zurompeta
0
79
Member Avatar for OmniX

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 = …

Member Avatar for LaLuz
0
792
Member Avatar for Thirusha

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 …

Member Avatar for stephen84s
0
88
Member Avatar for kaden712

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 …

Member Avatar for jess
0
242
Member Avatar for asiyeh

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.

Member Avatar for sacarias40
0
116
Member Avatar for T.Cavanagh

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.

Member Avatar for Thirusha
0
84
Member Avatar for BimanD

try googling "load an external js file". there are loads of examples on the internet.

Member Avatar for serkan sendur
0
78
Member Avatar for cutebab

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 …

Member Avatar for Drew
0
154
Member Avatar for bskumar.bala
Member Avatar for Thirusha

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 …

Member Avatar for dickersonka
0
81
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
115
Member Avatar for pletch99

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 …

Member Avatar for essential
0
346
Member Avatar for JackieW

I think it would be something like this: [CODE]weekdayname(weekday(ADt))[/CODE]

Member Avatar for JackieW
0
77
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
69
Member Avatar for chellethecat

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.

Member Avatar for langsor
0
224
Member Avatar for NadaAngel

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.

Member Avatar for Thirusha
0
536
Member Avatar for Thirusha

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?

Member Avatar for Thirusha
0
81
Member Avatar for jeetudaljit
Member Avatar for pm4
0
143
Member Avatar for abs0lut01

Can u give a further explanantion, i dont understand what u want to do.

Member Avatar for rexibit
0
271
Member Avatar for jakesee

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.

Member Avatar for MidiMagic
0
481
Member Avatar for jjfletch

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]

Member Avatar for Thirusha
0
84
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
142
Member Avatar for minbor

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]

Member Avatar for rockyourweb
0
115
Member Avatar for tactfulsaint

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, …

Member Avatar for stephen84s
0
84
Member Avatar for us12

i understand what u need to do, but what have u done, can we look at some code that u have done.

Member Avatar for us12
0
134
Member Avatar for stockton

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.

Member Avatar for MidiMagic
0
74
Member Avatar for affu304
Re: jsp

U could either used frames, or ajax. I would go the ajax route.

Member Avatar for senthil_sivanat
0
70
Member Avatar for vish_1x1

[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.

Member Avatar for Thirusha
0
1K

The End.