247 Posted Topics

Member Avatar for rp_prasanna

What error are u getting, the code seems fine to me, Do u have a form bean of schStartTimeHH?

Member Avatar for Thirusha
0
1K
Member Avatar for jithusdani
Member Avatar for jithusdani
0
92
Member Avatar for jithusdani

In order for the event to be triggered, the action must occur, this will only happen when on the page where this textbox is, you change the the value of the textbox

Member Avatar for somedude3488
0
94
Member Avatar for llemes4011

there is a tutorial written by Peter in the JSP forums: [URL="http://www.daniweb.com/forums/thread141776.html"]JSP database connectivity according to Model View Controller (MVC) Model 2[/URL]

Member Avatar for peter_budo
0
122
Member Avatar for shanawazway

I have done something like that. Using JSON and the JAVA DOM to create the xml file. Sending the xml using ajax, we just created a hidden field then submitted that field to the next page using ajax

Member Avatar for Thirusha
0
54
Member Avatar for SKANK!!!!!

Wouldn't it be easier to have a table in the database to hold the restricted names, and then just query that table.

Member Avatar for SKANK!!!!!
-1
309
Member Avatar for camilia

just submit the form to the servlet, then you can use request.getParameter to get the parameters

Member Avatar for Thirusha
0
252
Member Avatar for rajeesh_rsn

Use the distinct keyword: [CODE]SELECT DISTINCT "column_name" FROM "table_name"[/CODE]

Member Avatar for Thirusha
0
126
Member Avatar for j_limboo

Why dont you rather replace the double quotes with single ones in the code, thus eliminating the need for the user to retype.

Member Avatar for Thirusha
-1
65
Member Avatar for feoperro

You are not sending the username to the servlet, you ahve to post the form to the servlet or in the ajax function send the username in the url, so the url would look something like this: [url]http://localhost/servlet?username=Bob[/url]

Member Avatar for feoperro
0
138
Member Avatar for r1990

You could post the information to page2, so you need to have form tags around the your university input field, also a button to submit the form

Member Avatar for Thirusha
0
68
Member Avatar for smvec

I cannot be sure(you have provided no code), but most probably the button that you are using to submit is of type submit, change the button to type button then and an onclick event and call your javascript function.

Member Avatar for smvec
0
104
Member Avatar for feoperro

Try these two links, I havent tried them, but they seem to be pretty good [URL="http://www.devarticles.com/c/a/Java/J2EE-and-AJAX-AJAX-with-Servlets/"]http://www.devarticles.com/c/a/Java/J2EE-and-AJAX-AJAX-with-Servlets/[/URL] [URL="http://www.java-tips.org/java-ee-tips/enterprise-java-beans/using-ajax-with-java-technology.html"]http://www.java-tips.org/java-ee-tips/enterprise-java-beans/using-ajax-with-java-technology.html[/URL] There are also loads of examples out there, you just have to search for them. When i first started learning jsp, I came across a lot of examples that were incomplete, dont be …

Member Avatar for feoperro
0
175
Member Avatar for stbtwitter

If you want to have something like that then the javascript code must cater for it, so if you are going to send in three variables then the function must have three parameters, so the js function will look something like this: [CODE]function c_uncheck(var1, var2, var3){ ... }[/CODE] lets say …

Member Avatar for Thirusha
0
68
Member Avatar for beanboy

getParameter only works if the parameter you are accessing exists in the URL that was sent to the servlet. Are you sure that the array is being sent to the servlet? If the url is this : "/jspservlet?name=blah&myArray={1,2,3}" (the curly brackets would be replaced with the correct url encode for …

Member Avatar for Thirusha
0
2K
Member Avatar for j_limboo

I am most probably missing something here, but the url seems to be working quite well, whatever i typed in the search box gets sent to the google search. I dont see a problem.

Member Avatar for j_limboo
0
125
Member Avatar for tarunkhatri
Member Avatar for nazd28

try this: [CODE]<input type="text" name="tname" value='<%out.println(rs.getString(1));%>'/>[/CODE]

Member Avatar for nazd28
0
158
Member Avatar for Bellwin

You have to make some effort first, then someone here will be willing to help

Member Avatar for Thirusha
0
57
Member Avatar for ceyesuma

I think you are missing brackets in the sql statement, when using the in clause, somthing like this : [CODE]where groupId in (1,2,3)[/CODE]

Member Avatar for ceyesuma
0
245
Member Avatar for Terry56
Member Avatar for dangari
Member Avatar for dangari
0
164
Member Avatar for deadmancoder

Have u been able to come up with anything? Ajax isnt difficult. try w3schools' website.

Member Avatar for Thirusha
0
118
Member Avatar for nonhlah

Loads of people here wouldnt mind helping, but u have to state what the problem is.

Member Avatar for Thirusha
0
53
Member Avatar for jakoso

works for me in FF, i m using FF 3.5.2 it did give one warning, regarding the use of document.getElementById, so i changed the code to this and it still works but this time with no warning: [CODE]function typewriter(typein) { document.getElementById('typeout').innerHTML = typein; }[/CODE] What error are u getting? Have …

Member Avatar for Thirusha
0
86
Member Avatar for mvchandoo

Can u give an explanation of what the problem is? I have tried this, and on the onmouseover event, the innerhtml is changed. I had removed the images and just places text since i dont have the images.

Member Avatar for Troy III
0
152
Member Avatar for ishlux

Go to [URL="http://dev.mysql.com/downloads/"]http://dev.mysql.com/downloads/[/URL] The latest version of the community server (this is under the GPL licence) and it should work fine. I dont remember having to put anything in the environment variables but there is documentation about how to install the server, its pretty simple though.

Member Avatar for Thirusha
0
154
Member Avatar for tryongliph

I dont use MS Sql anymore, but as far as I can remember the data will NOT be automatically inserted. You have to insert the data. There has to be data in the table which references the foreign key, so in your case the department table has to have valid …

Member Avatar for tryongliph
0
103
Member Avatar for debuitls
Member Avatar for Thirusha
0
87
Member Avatar for Terry56

I could be wrong but i dont think there is one, as far as I know, when u use [CODE]navigator.appName[/CODE], the result in Mozilla will be Netscape. So if the code checks for Netscape it would work in Firefox

Member Avatar for Terry56
0
235
Member Avatar for sharao

You will not see the options in the dropdown cause u have not written the "<option>" tag anywhere. So in the loop where u loop thru the elements, u will have to use the createElement in javascript which looks like this: [CODE] var ele = document.getElementById("lstAgencyCity"); var newOption=document.createElement("OPTION"); newOption.value=selArray[i][0]; newOption.text=selArray[i][1]; …

Member Avatar for Thirusha
0
101
Member Avatar for Jeyush
Member Avatar for almostbob
0
109
Member Avatar for halukakin

nope, but will keep working on it. why dont u rather implement a function on the onlick event. I personally dont like using the onblur event.

Member Avatar for halukakin
0
119
Member Avatar for coud_ren_26
Member Avatar for akulkarni
0
166
Member Avatar for sandeepgrandhi

On the top file navigation, go to Window --> then click Palette The palette will only show the drag and drop stuff when a jsp page is open.

Member Avatar for dasatti
0
76
Member Avatar for laura_ci

w3schools is pretty good. [URL="http://www.w3schools.com/JS/default.asp"]http://www.w3schools.com/JS/default.asp[/URL]

Member Avatar for laura_ci
0
146
Member Avatar for gaya123

Your session attribute for value will be 4 since only one value is stored in an attribute, in the loop you are overwriting teh value, by the next number in the loop. To get teh value of the link clicked, u can pass the value in the url so the …

Member Avatar for gaya123
0
148
Member Avatar for lkofman

You are missing the onreadystatechange property, you will need this to receive the data returned from the server It should look similar to this. [CODE] url+=idField.value; req.open("GET",url,true); req.onreadystatechange = function() { if (req.readyState == 4) { document.getElementById('userIdMessage').innerHTML = req.responseText; } } req.send(null); [/CODE]

Member Avatar for lkofman
0
137
Member Avatar for penepepe

In javascript 'If' cannot be capital, if u change the 'If' in your function to small letters 'if', it would work.

Member Avatar for penepepe
0
135
Member Avatar for scarypajamas

You could try putting the include in a div tag, then in your if statement, set the innerhtml of the div to the correct include, I havent tested this, so i could be wrong.

Member Avatar for Thirusha
0
175
Member Avatar for agrophobic

I dont know php, but have u have u tried writing out the sql statement. To me it seems as though the statement is looking for "$suburb", i think u have forgotten to put the curly brackets around $suburb, i say this cause i see to get teh value of …

Member Avatar for Graphix
0
274
Member Avatar for Gadfly_1943

Is there any reason that u would need the hyperlink inside a database? You could always just read the values from the database and then code in the links in whatever language u are using

Member Avatar for pritaeas
0
83
Member Avatar for ssudhamca

If the length is always the same amount than u can use the substring function, there are two of them: SUBSTRING(str,pos) SUBSTRING(str,pos,len)

Member Avatar for ithelp
-1
74
Member Avatar for revata

I think u should rather do a search on the internet for a regular expression that will validate the email field, much less coding is needed.

Member Avatar for Thirusha
0
82
Member Avatar for mbirame

First you have to disable the submit button then on each checkboxes onclick event do a check to see if all of them are checked, then enable the button again. code will look something like this: [CODE]function check(){ if (document.getElementById('chkId1').checked==true && document.getElementById('chkId2').checked==true && document.getElementById('chkId3').checked==true){ document.getElementById(button).disabled = ' '; } }[/CODE]

Member Avatar for mbirame
0
331
Member Avatar for gagan22

What you could do, is on the submit function of your button, check which radio button was selected, then change the value of the form action attribute. for the changing of the value of the form action: [CODE]document.formName.action ="whever u want it to go"[/CODE] formName is the name of your …

Member Avatar for Airshow
0
90
Member Avatar for JameB

There is a class called BufferedReader which you can use. You can try this code, i had it lying around, so i hope it still works, havent had to do such things in a long time: [CODE] BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); System.out.println(input); br.close(); [/CODE]

Member Avatar for JameB
0
152
Member Avatar for beanboy

Why not use session attrbiutes, that way the variables will be available for the entire session.

Member Avatar for Thirusha
0
74
Member Avatar for zach_assi

No one is going to just give you the answer to the assignment, start coding something, and come back when you get stuck

Member Avatar for Thirusha
0
104
Member Avatar for pandeyprashant

You are missing the column names. See adatapost's post giving an example of the insert statement. Your statement should look something like this: [CODE]INSERT INTO registration1 (registrationno, firstname,.....) VALUES('"+s0+"','"+s1+"'....)[/CODE]

Member Avatar for pandeyprashant
0
849

The End.