3,760 Topics

Member Avatar for
Member Avatar for nikhilrkn

hey U guys.. I need a jsp code which uses AJAX with dropdowns.. Something like COUNTRY NAME in one dropdown and STATE NAME in the other... You may select any STATE at first.. Later when we CHANGE the COUNTRY NAME, states of that particular COUNTRY WILL GET REFRESHED IN THE …

Member Avatar for nikhilrkn
0
97
Member Avatar for Javagirl2010

Hello, I a student and Java is very new to me. I am trying to multiply 2 numbers together to be displayed in a dialog box but I keep getting the error of "cannot find sysmbol" and I do not know what I am missing in my file to clear …

Member Avatar for javaAddict
0
247
Member Avatar for Mkaveli

Hello I am a beginner in JSP and I wanted to include a Applet from my build/classes with the package chapter8 in my JSP file. What I have at the moment is: [CODE] <jsp:plugin code="MyApplet.class" codebase="../build/classes/chapter8/" type="applet" width="400" height="300"> <jsp:fallback> Cant load Applet </jsp:fallback> </jsp:plugin> [/CODE] Im running it from …

0
66
Member Avatar for swamiprasad

HI ... I m trying to make a form entry with input elements..I have an ADD button on the form besides a SUBMIT button..After the user enters the input fields & presses the ADD button, I want the form data to be displayed on the same form page. When the …

Member Avatar for VijayaKumar.S
0
278
Member Avatar for j.shajid

Dear members, I am displaying table data using displaytag where i define [COLOR="Green"]pagesize=15 [/COLOR] the struts action that i use (along with the appended parameters) is: [COLOR="Green"]showAllTheArticle.action?user.id=1&user.username=admin [/COLOR] the table shows the first 15 record nicely, but when i click on the [COLOR="Green"]next/last[/COLOR] links- the following hyperlink generates: [COLOR="Green"]pages/AllTheArticle.jsp?d-49309-p=2&user.id=1&user.username=admin[/COLOR] - …

0
43
Member Avatar for basilix

Hi... I'm new here! does someone know how can i get a javascript variable from jsp? I've tried some ways but no one works! :icon_sad: please help!

Member Avatar for basilix
0
239
Member Avatar for rohan_tahil

I am hosting a servlet on my Tomcat server.. Have port forwarded and everything but it wont accept connections from a wan address.. i have used port-check sites to verify port and they show it as open.. but my jsp page on the server just cannot be displayed.. is there …

Member Avatar for martin5211
0
119
Member Avatar for daneuchar

i want to use two different css for firefox and chrome but unable to do it.. :( please help !! the code i tried is given below !! [CODE] <script> function css_append(file){ var css = document.createElement('link') css.setAttribute("rel", "stylesheet"); css.setAttribute("type", "text/css"); css.setAttribute("href", file); document.getElementByTagName("head")[0].appendChild(css) } if(navigator.userAgent.indexOf("Firefox") > -1){ alert("Firefox"); css_append('css/default_ff.css'); } …

0
85
Member Avatar for krishna_sun82

Servlet tag and servlet mapping tag are present in the web.xml as shown below [CODE] <servlet> <servlet-name>AbcServlet</servlet-name> <servlet-class>edu.studies.service.AbcServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>AbcServlet</servlet-name> <url-pattern>/abc/*</url-pattern> </servlet-mapping> [/CODE] But it still says The requested resource (Servlet AbcServlet is not available) is not available. What did I miss? Please help.

Member Avatar for ~s.o.s~
0
214
Member Avatar for feoperro

Hi, Does anyone know where I can read about ways to protect a website from potential threats? i.e. SQL Injection, etc. In particular, a website using HTML/JSP/Servlets/Java/Tomcat. Thanks, Ashton.

Member Avatar for peter_budo
0
2K
Member Avatar for kkjava

Hi All, Iam really stuck with this issue.... I have HashMap values like these below [0.76,.0818] from DB i want to display these values in each <TD> in jsp. this is what am trying....... setting HashMap values in arraylist in DAO class and iterating that arraylist into <TD> of Html …

Member Avatar for peter_budo
0
93
Member Avatar for funlove201

hey can someone please help me with this thing? I wanna open a link when someone clicks on a button how can I do that?

Member Avatar for cale.macdonald
0
142
Member Avatar for vasu.bavana

We want to use another java web application into our current java web application, how do we use iframe concept exactly in our java web application?

0
88
Member Avatar for Claude2005

Hi there, Let's say I have this HTML code below... [CODE] <html> <head> <title>Page 1</title> </head> <body> <form method="post" action="page2.jsp> <table> <tr> <td>John Doe</td> <td><input id="name1" name="name" type="submit" value="Edit" /></td> <tr> <tr> <td>Steve Smith</td> <td><input id="name2" name="name" type="submit" value="Edit" /></td> <tr> <tr> <td>Peter Pipper</td> <td><input id="name3" name="name" type="submit" value="Edit" /></td> …

Member Avatar for javaAddict
0
115
Member Avatar for jim20

I need to use a rich text editor for my project, What would be the right choice to use that.and also can i get a example on that???

Member Avatar for jim20
0
130
Member Avatar for muthumari

Hi, Using enter key only,How to go to the next page in submit button(without clicking that button(onclick) , using the tabkey).Anyone can u help me..... Thank you

Member Avatar for sravanthi07
0
481
Member Avatar for vij123

[CODE]<s:iterator value="listObject"> <s:component template="abc.vm"> <s:param name="text" value="listKey" /> <s:param name="prefix" value="listIndex" /> </s:component> </s:iterator>[/CODE] listKey is keys in a list. i am using iterator to traverse the list. i want to put here internationalization concept.so that when i write key of list then it find its associated values in a …

0
57
Member Avatar for yuvi2288

Hi, I have write the code to upload a file to database. I checked it by uploading a text document which is in my desktop and it is working and successfully uploaded to database. [CODE]File tomcat.txt has been uploaded and inserted into Database.[/CODE] But when I tried to upload an …

Member Avatar for yuvi2288
0
303
Member Avatar for Agent Cosmic

Hi, I'm a beginner in the J2EE field. I've already learnt the basics of Java programming and now I'm moving on to web development. What I want to know is if I could skip learning JSP/JSF, servlets, EJB, JPA etc if I learn Wicket, Spring and Hibernate. I'm still not …

Member Avatar for Agent Cosmic
0
115
Member Avatar for khurram.1987

I am trying to process data by servlet sended by jsp form using AJAX..... with 'GET' method its working okey ... but using 'POST' method to do this creating problem that [CODE]onreadystatechage[/CODE] condition not exectue at [CODE](xmlhttp.readyState==4 && xmlhttp.status==200)[/CODE]. [CODE]xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 || xmlhttp.status==200) { alert("state=4 OR 200"); //for …

0
98
Member Avatar for Alex_

Hello. This is what i'm trying to do: [code=java] public class ComputeSearch extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter exit=response.getWriter(); exit.println("<%@ include file=\"GetByPath.jsp?path=1/2/5/\" %>"); } } [/code] The problem is that the server does not compile …

Member Avatar for soorajmkesavan
0
1K
Member Avatar for kamweshi

Hi, can anyone help me to split the servlet(week02_4) so that only control code remains.I need to forward/redirect request/responses to two other servlets(VowelFrequencyServlet and WordCountServlet).I am not sure where to place the RequestDispatcher. Week02_04 servlet: [CODE=java]package servlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Week02_04 extends HttpServlet { protected …

0
120
Member Avatar for raghujosh

Can somebody pls explain me this error that I am getting when I try to run my web application on Tomcat. java.lang.NullPointerException business.Cart.addItem(Cart.java:27) cart.CartServlet.doGet(CartServlet.java:49) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) The code for the Cart.java is [CODE]package business; import java.io.Serializable; import java.util.ArrayList; public class Cart implements Serializable { private ArrayList<LineItem> items; public Cart() { …

Member Avatar for masijade
0
78
Member Avatar for tobyana15

Hi! I am newbie in java program. All I want is to have a method that check the filename of the file that I want to upload, if it is correct given filename convention.

0
42
Member Avatar for CodeBoy101

Hello everyone, I'm working on a project where I wish to find out who the instructor for a particular course is. The user is has to input the course name and course id for that course id then the script will search for the instructor. If the value returned is …

Member Avatar for atikahuk
0
176
Member Avatar for bugmenot

Hi I have created a simple search form to search a movies database on my page using jsp and mysql, how can I make a download link after results have been extracted in a result page. Thanks for your nice reply.

Member Avatar for atikahuk
0
89
Member Avatar for meghab

Hi All, I am creating an application in which I want to keep refreshing a jsp file and in that jsp file i need to keep calling another url of type [url]www.daniweb.com/receive.jsp?a=xxx&b=xxx[/url] and save this url in database. Here the url keeps changing in every second ie. values of a …

Member Avatar for Airshow
0
96
Member Avatar for meghab

Hi All, I am creating an application in which I want to keep refreshing a jsp file and in that jsp file i need to keep calling another url of type [url]www.daniweb.com/receive.jsp?a=xxx&b=xxx[/url] and save this url in database. Here the url keeps changing in every second ie. values of a …

Member Avatar for meghab
0
109
Member Avatar for nikita.chandra

Hi all i am creating an application in which i m using jsp,servlet and javascript. on jsp page there are text boxes named ID and Passwprd and a submit button. When we submit jsp page first javascript will be executed if we left any of the text boxes blank, that …

Member Avatar for nikita.chandra
0
213
Member Avatar for wktsang1

I am using Apache Tomcat 5.5 + JSP in the web server, and MS SQL Server 2000 in another database server. There is no problem before I resinstall the web server due to hardware failure. I am not sure if I miss some configuration that all the Chinese character stored …

0
48

The End.