4,248 Topics
![]() | |
[CODE] try { HttpSession hs = request.getSession(); HashMap<String,Item> items = (HashMap<String, Item>) hs.getAttribute("items"); String [] allQty = request.getParameterValues("qty"); String [] itemcodes = request.getParameterValues("itemcode"); // for(String value: allQty){ // out.print(value+" "); // } // out.print("</br>"); // // for(String itemcode: itemcodes){ // out.print(itemcode+" "); // } // out.print(items.size()); int z = items.size(); … | |
i am making a simple bike site using servlets.i have a hyperlink toh a productServlet in menubar..but when i click dat hyperlink.it keep on showing connecting.and page do not load..anyone can tell what could be the reason..i can't show code here.. | |
Hi... I am a beginner in jsp...Can any one help me with a small project like addressbook or something, so that I can get an idea about how to do a project in jsp....I am using tomcat-6 and oracle 10g for my project...If not with a project atleast help me … | |
i ve already worked many time on this code ,but couldnt find whats wrong. [CODE]import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.ServletException; public class AppletServer extends HttpServlet { public void doPost(HttpServletRequest rq, HttpServletResponse rs) throws ServletException,IOException { String s,n,v; try { rs.setContentType("application/x-java-serialized-object"); InputStream i=rq.getInputStream(); ObjectInputStream oi=new ObjectInputStream(i); OutputStream o=rs.getOutputStream(); ObjectOutputStream … | |
How can I get SSL working in Tomcat 6.x under Linux?, ive read the documentation here: [url]http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html[/url] but im not sure how to do it with a certificate I will make myself (its a dev box) | |
I wish to read attachment from ms access database. so could anyone help me..!! | |
Hi all, In my web application I load data from MySQL database into an iframe. Sometimes files bigger than 1 Mb. I make some changes on the file, and afterwards I send it back to the database. The issue is that with this code below I can't send files bigger … | |
Iam working on a java based web app using the Eclipse ide and the tomcat server, My question is, is it possible to develop this app using the ide in my computer an a tomcat server located in another. All the guides i found involve me making the server in … | |
Hey All of a suddent my Apache Tomcat server has broken. Very strange but I try going to [url]http://localhost:8080[/url] and I get a HTTP 400 error. How do I fix this as it is very strange that this suddenly appears. Using MyEclipse. Note, I believe I installed NetBeans which installed … | |
i don't know what setting have to make on linux to run jsp programm using tomcat, please tell me what setting and how to do. | |
Hello i am developing a web app...i am using MVC architecture in my design. i have one form add_Flat.jsp in which admin enter the flat details and it will be stored in database (MS-Access) no other jsp page would be open on submit button.just a message displayed on add_Flat.jsp. How … | |
I m trying to select data from a drop down and retrieve & display the values corresponding to it into textboxes.. the data to be displayed into the textboxes is taken from database(mysql database).. The scripting is done in JSP which is as follows: issue_from.jsp [code] function showDataIssue(){ xmlHttp=GetXmlHttpObject() var … | |
friends,, here i have some problem. i did a program for uploading file into "D" drive using "html" and "jsp" but my main problem is when 3 users uploaded their files into "D" drive then how can i differentiate those 3 files means while retrieving files users should get the … | |
AJAX has retrieved value(using some DB operation)and inserted in text box.while retrieving that values on onClick event of button System.out.println shows null value.i want to retrieve value of "emp" input tag jsp file code:- [CODE] function checksubmit1() { document.w1allot.prepare.value=1; document.w1allot.submit(); } function showState(area_value) { if(document.getElementById("ddlFlat").value!="-1" || document.getElementById("emp").value!="") { xmlHttp=GetXmlHttpObject() xmlHttp1=GetXmlHttpObject1() … | |
Here is the Login.jsp: [ICODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Login</title> <script type="text/javascript"> </script> </head> <body bgcolor="#999966"> <p> </p> <form method="get" action="http://localhost:8080/WebApplication1/Login"> <% if (request.getAttribute("error")!=null) { %> Login failed. Please try again <BR><HR> <% } %> <p> Username: <input type="text" name="uname" size="20"></p> <p> … | |
Hi All, I am trying to develop a web application in which I have provided a facility for login and logout. The problem I am facing is that I can allow user to log in succesfully, but when user clicks on the logout link and comes to login page and … | |
pls help me tell whats wrong here is the code of my files i am a total newbie......pls t.jsp [CODE] <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript" language="javascript" src="ah.js"></script> </head> <body> <table> <tr> <td width="36%">Userid j</td> <td width="33%"> <form name="f1" … | |
Hello to all of you guyss... I'm sharing this cause i can't find the cause of inputs to become null.. i have this [COLOR="Red"]addresident.jsp[/COLOR] jsp that contains this popup [CODE] <tr id = "Married_Form" > <td>Wife's First Name</td> <td><input id = "fname" type = "text" size = "16" maxlength = … | |
I am parsing a file and populating a static array of objets in a servlet. Then i pass the static array and try to access the array in the jsp by using the JSTL <c:forEach> tag in the loop i want to populate a table. I am perfectly able to … | |
i need help with my code in retrieving the image stored in the database.. what is the problem of this code? it only displays a blank page.. this is the code : [CODE]<%@page import = "java.sql.*"%> <%@page import = "java.io.*"%> <% Connection connection = null; //login is the name of … | |
i want to apply validations in my registration forms for new users.here is the code of the form created.[CODE] <table cellpadding="3" cellspacing="7"> <form action="#" method ="post" id="f1"> <tr> <td>Name</td> <td><input type ="text" name ="named"></td> </tr> <tr> <td>Username</td> <td><input type ="text" name="usrnmd" value="Enter your email"/></td> </tr> <tr> <td>Password</td> <td><input type="password" name="pwdd"/></td> … | |
Hey guys im trying to make a user form for my HTML page which asks the User to input a question and by clicking the Submit button I want the page to display the Text (Question Inputted) and the date that the user actually asked the question. This is how … | |
Hi, Here is the challenge for first jsp based project. Originally, i have an authentication.jsp that passes form to authentication java class for username and password matching. Then the java class will redirect to other jsp if it matches. After that, i wanted to solve the logout problem related to … | |
Hi, I store images in my MYSQL database. I need to retrieve that image to my jsp along with datas.Response.write() function only displays the picture and not the data. How to do that? | |
Hey guys. I am getting an error in this jsp code in line13 i.e PopulateTextbox obj = new PopulateTextbox(). What is wrong in my code. Am i declaring the function at wrong plae or missing braces anywhere. Please help. ? [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@page … ![]() | |
Hey guys. I am getting an error in this jsp code in line13 ( PopulateTextbox obj = new PopulateTextbox();). What is wrong in my code. Am i declaring the function at wrong plae or missing braces anywhere. Please help. ? [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@page … | |
when i tried to send an email to an account it does not sent. the error result will be displayed. i got an error in the apache tomcat bin log like this: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port:25; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934) … | |
![]() | I have problems with choosing a line and to find a number or times specifif word repeats in that line? Can you help me with that? [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class DefectInspector { private JFrame frame = new JFrame(); private JPanel p1,p2,p3,p4; private JMenuBar jmb; private JMenu … |
HI I had generate a report with IREPORT 3.7 . I have now a .jasper file. I would want to be able to execute (show) it with a jsp file or servlet. My generated report not use sql queries, only it need 2 parameters. i think to pass these parameters … | |
Error :: org.springframework.web.servlet.DispatcherServlet noHandlerFound I am attaching all the relevant files. Please help..?? web.xml [CODE] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <servlet> <servlet-name>loginSer</servlet-name> <servlet-class> MyPackage.LoginServlet </servlet-class> </servlet> <servlet-mapping> <servlet-name>loginSer</servlet-name> <url-pattern>/LoginServlet.do</url-pattern> </servlet-mapping> <servlet> <servlet-name>Timeserv</servlet-name> <servlet-class> MyPackage.TimeServlet </servlet-class> </servlet> <servlet-mapping> <servlet-name>Timeserv</servlet-name> <url-pattern>/timeservlet</url-pattern> </servlet-mapping> <servlet> <servlet-name>filter</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> … | |
If I have a loop of dropdowns that have the name "options[123]" where the bracketed number will change, is there a way to pull all the available dropdowns with a name that starts with "options" and then loop through them to make sure at least one is selected... <0 | |
can i directly send a message as a gmail which typed in a textarea in a jsp? please explain anybody how to do it ? | |
[code=Java]package com.schedulers; import java.io.IOException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.SimpleDateFormat; import java.util.Date; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import DBConnection.DBConnect; public class P6UserInsertScheduleServlet extends HttpServlet { private static final long serialVersionUID = 1L; public P6UserInsertScheduleServlet() { super(); } protected void … | |
Hi Members, I am working on Pentaho, I want to add a comment box with RTF(rich text format) feature, that saves the comments in the database. And when the user Login again, he must be able to see all those comments. I have tried it using PHP, and it is … | |
Hey guys!!! (and gals)... Uhhmmm... I'm in a bit of a tiffy... Im trying to populate a drop down list with data in my query browser. But I AM NOT USING JAVASCRIPT...mostly because i havent learned it...but im trying to a certain table from the query browser to my drop … | |
Hello all, I have a function in which onclick one window opens and there is logout option on the parent page. when I log out i want the child window to close as well. My native code is in Java and I need something in javascript. Plz help | |
Hi guys, I have a question about custom error codes and redirection. The application throws different errors for different situations. Example: Bad credentials = resp.sendError(3005, "Bad Credentials") Example: Not Authorized = resp.sendError(3007, "Not Authorized"); When these errors get thrown, I get to the default error page with the HTTP Status … | |
hi all i am new to java i want to run java php bridge as described [URL="http://php-java-bridge.sourceforge.net/doc/tomcat6.php"]here[/URL] now i am getting the following error [CODE]HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Could … | |
Hey Everyone, i cannot print the value of Username in the JSP. i am using a java bean, but i am instiating the bean object twice in two servlet, one for form data and one for username. the bean contains the respective setUsername and getUsername, but this is not printing … | |
guys, need help... Im currently working on a project with jasper report. it seems that the pdf file (report) runs on a browser succesfully without a subreport in Glassfish server but when there is a subreport the error occurs. ive been working with this problem since last week and im … | |
Hi All! I'm trying to call a method defined in a jsp that is in my webcontent web application. I placed [CODE] <%@include file="method.jsp"%>[/CODE] in the jsp from where I want to call the method. I get an exception saying: [CODE]org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred … | |
Hi to everyone, what's my doubt is when u r closing the window it should as do u want save the changes you made the option are yes,no,cancel it should be done in jsp,java script. can anyone help to solve this problem plz if anyone know the solution mail me … | |
Even after setting all the paths correctly, I get an error saying the "setclasspath.sh" cannot be found. I checked the directory and it was there. I then changed the permissions using chmod +x setclasspath.sh but to no avail. I've changed the permissions of all the files inside the "bin" directory … | |
Hello, How can I do a login form in jsp using oc4j server. (oracle jdeveloper). Assume I have this page. [CODE] <HTML> <HEAD> <TITLE>Login into the Employee Records Center</TITLE> </HEAD> <BODY> <H1><CENTER>Login into the Employee Records Center</CENTER></H1> <FORM NAME="LoginForm" ACTION="index.jsp" METHOD="post" ENCODE="application/x-www-form-urlencoded"> <P>To login to the Employee Records Center, submit … | |
i am developing a web app using .jsp , servlets and access as a database..i want to do it using struts framework..so can anyone tell me best book available for struts beginners ? i will prefer "struts 1"..as many books are available for this version. | |
i use eclipse with tomcat 7 and compile servlet without problem... but i try to blank jsp file its error what is the problem? [CODE]<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <h3>Test … | |
Hello all! I want to ask you , how to pass variable, there's the example: I have variable String X in pageone.jsp then i open a new tab page to pagetwo.jsp (using JavaScript window.open) , Is it possible to use the variable X (from pageone.jsp) in pagetwo.jsp ? Please Explain, … | |
I was using Struts 2 as web framework and eclipse EE as my IDE. I can run my jsp/servlet application just like the way i wanted it to be but everytime i start the tomcat ver 6 server, an INFO log always appear except that its asking for log4j. here … | |
How to start a servlet automatically when index.jsp starts. To put it simple, here is the index.jsp file. [CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <title>JSP Test</title> </head> <body> I want to put something here, so a servlet automatically starts without doing anything. </body> </html> [/CODE] | |
I am making a program in jsp servlet. There are three tables in database: category , subcategory and items. Their structure is like this :: category 'A' --> subcategory '1' ===> item 'i' ===> item 'ii' ===> item 'iii' --> subcategory '2' ===> item 'iv' category 'B' --> subcategory '3' … |
The End.