4,248 Topics
![]() | |
Hi friends, I am new bie to programming.This is my first project.so the tecnical terms i am not familier. I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server I first created all my jsp files as one project.Then i created one enterprise application project … | |
Hi, Hoe to insert multiple selection from checkbox(from jsp) in to one column of the table(sql server database ). Anyone can you help me? Thanx | |
I want to create a login jsp form that connect with servlet and mysql for database. And I'm using netbeans and glassfishV2. Please help me to solve this problem. | |
Hi all, I am currently developing a JSP web application with most of the content added using include tags, styled using CSS2,content created from servlets etc... My main issue is that at some points the main section is bigger than the header and footer making the site (inactive just now) … | |
I would like to know if people would be interested in participating building similar starting thread like we have in Java section [URL="http://www.daniweb.com/forums/thread99132.html"]Starting "Java" [Java tutorials / resources / faq][/URL], but targeting Java web development. This thread would hold resources (where to get the things, configurations, basic usage and any … | |
Ok i need some help with this JSP page that has some java in it. My assignment is to create a fictional webpage that requires a login or registration and that checks with the database to make sure that it will verify that no user with the proposed user id … | |
when i try to run the following code....----> [code=JSP]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <jsp:useBean id="accountBean" class="banking.pac.AccountForm" scope="session" /> <!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=ISO-8859-1"> <title>Insert title here</title> <script language="javascript"> </script> </head> <body> <form … | |
i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page. Any help will be great. | |
[CODE]<%-- Document : AddCity Created on : Oct 6, 2009, 9:14:52 PM Author : Vishal --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body onload="ShowMessages();"> <html:form action="AddPage.do"> <p><a href="HomePage.do">HomePage</a></p> Cityname: <input type="text" … | |
Hey, Currently I am doing an assignment building an enterprise web application. One of the specification states that I need to make a calendar view of a booking system in JSP. Is there a library out there that help me doing this? Calendar view here is a page that represents … | |
i have struts html based checkbox <html:checkbox disabled="true" value="Y" property="active" >Yes</html:checkbox> when i submit the form after checking the checkbox the bean value should get "Y" value. Since the checkbos is disabled the bean value becomes null even after i check the checkbox do any one know a solution for … | |
[CODE]package Add; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class AddSuccessAction extends Action { private final static String SUCCESS = "success"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { … | |
There is a jsp page on which I have to access the selected value from a dropdown list and then compare it's value with the field 'role' stored in mysql database. I have to comapre both values to authenticate the user. I can access the role from dropdown list but … | |
how do i increment the category book? eventually i will display it in summary *************** Summary Books 3. [CODE]public class ProductDB { public static String[] inventory = {" java", "jsps", "mcb2", "txtp", "sgtp", "tgif", "tcby", "myob"}; public static Product getProduct(String productCode) { Product p = null; if (productCode.equalsIgnoreCase("java") || productCode.equalsIgnoreCase("jsps") … | |
i m a stater with jsp .... have installed Tomact 5.0.28. Its displaying server page when i type [url]http://localhost:8080[/url] now i have made a simple context.jsp file----> [code=JSP]<HTML> <HEAD> <TITLE> Context </TITLE> </HEAD> <BODY> <% out.println("First JSP APPLICATION"); %> </BODY> </HTML>[/code] placed it in a folder ch in webapps folder … | |
I have this JSP code that i found online and it seems to work cuz it loops thru the xml file and writes the HTML code for the TRs and TDs but for some reason is not displaying the data. Am i missing something? [CODE]<%@page import="org.w3c.dom.*, javax.xml.parsers.*" %> <% DocumentBuilderFactory … | |
hi experts, hope you are fine. I am having a connection problem from client side to my servera(localhost:8080/project). client can access to my normal pages either jsp or html. However, for the jsp pages that show information stored in database , they are not appeared in client side and I … | |
Topic The topic of this question is: JSF_navigation and database connection Hello and Thank you in advance for any assistance. [b] System info: [/b] Netbeans6.7.1,jsf1.2,two MySQL databases.(one for login one for searches) [b] The purpose of this post is: [/b] Try to get the login jsp to switch to the … | |
Ok, I use apache web server to host a club website within a school network. Now I need a script to display the ip address of my web sever because it is constantly changing. Is there scrip that will perform this function. note: the site only works within the school … | |
Web Server: Sun Java System Web Server 7 update 5 I have inherited a JSP application and am trying to get it to work. I have figured out that it has something to do with the [ICODE]<input type="file"> [/ICODE]tag, because I cut all the rest of the code out. [CODE]<input … | |
Hi Friends, I am having problem with the above code snippet. Initially it woked fine. But now it is giving an error of java.sql.SQLException: ORA-01722: invalid number. How can I resolve the exception? Thanks. [code=JSP] try { String ein=(String)session.getAttribute("EIN"); System.out.println("inside try block"); Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@10.9.16.2:1521:TESTDB","HE","HE123"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select distinct REV_OWNER … | |
Hi I just tried to create the login form using java,jsp and servlets.The database am using here is mysql. The tool am using is eclipse galileo.The code is as follows: <index.jsp> [code=JSP]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!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; … | |
heyy can ny 1 help me.....m wrking on jsp using ajax......i built a small application...as m new to ajax.....i built 2 field....FNAME & Lname and when my application used to do is..when you enter ur first name.....n press the tab button...the last name shld come from data base......but its nt … | |
Kindly go through the code below and the little explanation that follows thereafter... The code for the web form [CODE]<form name="purchase" action="Purchase" method="POST"> <table border="1"> <thead> <tr> <th></th> <th></th> </tr> </thead> <tbody> <tr> <td>Product Number</td> <td><input type="text" name="ProdNum" value="" maxlength="7" /></td> </tr> <tr> <td>Quantity</td> <td><input type="text" name="quantity" value="" /></td> </tr> … | |
I have a Servlet and JSP page. I invoke a method with form submit and the method is a java method. [code] response.setHeader("Content-Disposition", "attachment; filename = report.XLS"); response.setContentType("application/vnd.ms-excel"); response.getWriter().write(result); response.getWriter().flush(); [/code] Everything works fine but it tries to fit the columns in 1 page. So i have a long adress … | |
I have a struts 1.x application which uses JDK 1.4. I want to implement YUI Compressor in this. What can be the best ways to do that? Step wise instruction will be very helpful. Thanks. | |
please let me know something abt how to go for making of on line examination project using jsp and beans as soon as possible | |
hai I am a PHP programmer and I likes to study JSP from the base level. Please advice me a right book to start. Thanks in advance Rajeesh | |
Here is simple example of static image to be displayed as logo on the start-up/splash screen. This can be improved by creating animation out of series of images or use of flash file through [URL="http://developer.sonyericsson.com/site/global/newsandevents/latestnews/newsapr08/p_project_capuchin_announcement.jsp"]Project Capuchin[/URL] library. As for location of image file this was placed in new folder called … | |
Hi All, This is my first post on here so please be gentle with me! We have a website that provides new car prices instantly to customers. One problem we are having is that Google (we think) does not like our 70000+ duplicate page titles. Those pages come from our … | |
According to thread MVC above, I create web.xml like this [CODE] <servlet> <servlet-name>addServlet</servlet-name> <servlet-class>servlet.AddServlet</servlet-class> <init-param> <param-name>dbURL</param-name> <param-value>jdbc:odbc:database</param-value> </init-param> <init-param> <param-name>dbUserName</param-name> <param-value>username</param-value> </init-param> <init-param> <param-name>dbPassword</param-name> <param-value>password</param-value> </init-param> <init-param> <param-name>JdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> </init-param> </servlet> <servlet> <servlet-name>loginServlet</servlet-name> <servlet-class>servlet.loginServlet</servlet-class> <init-param> <param-name>dbURL</param-name> <param-value>jdbc:odbc:database</param-value> </init-param> <init-param> <param-name>dbUserName</param-name> <param-value>username</param-value> </init-param> <init-param> <param-name>dbPassword</param-name> <param-value>password</param-value> </init-param> <init-param> <param-name>JdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> </init-param> … | |
![]() | Hi, Below I have code that contains ajax on a JSP. The JSP runs the Servlet which gets a parameter from the JSP and returns the exact same input field's value. For some reason, it is returning a null though. Can someone please assist? Servlet: [CODE] package Web; import java.io.IOException; … ![]() |
hi all , I have finsihed my small project(online form system), I mean the development stage, now I am looking for how I deploy it in windows, exactly windows professional environment . what do I need in order to successfully access to online form project installed in windows professional. I … | |
![]() | Hi, I'm starting to learn Ajax after playing around with JSP and Javascript, I felt the need for interaction without reloading the page. I've searched everywhere for a simple java servlet/ajax example that I can play around with but just found a lot of asp and complex java examples. Could … ![]() |
How i can make JSP as SMS sender to all celular operator. If someone has some reference or any source for more information. :) Thanks before. | |
Hi All, We had an issue in our project that one user was able to see each other's data, we identified the problem as of caching by the proxy server of those users. On checking we found, we were not specifying any caching preference in our server side code and … | |
hello.. i need help on how to convert a video to byte stream and i must sent that comverted stream through internet and in client it must be again changed to a video ... what must i do?? | |
you've read it once you've read it a thousand times! probably responded to it just as many times. Now i ask that you respond one more time I've added as many details as possible becuase i've tried the solutions in an old thread in this forum but no luck. [url]http://developers.sun.com/mobility/midp/articles/tutorial2/[/url] … | |
I know this contains actionscript, but the server side is Java. I am trying to get a red5 server to insert into mysql, but I can't get eclipse to compile this client side code. Could someone tell me if this tutorial is up to date with galileo, the new version … | |
i created a dropdown list containing university names e.g. 'oxford' 'cambridge' and so on. I would like the uni selected from the dropdown list to be sent to another page as the heading. I am having trouble doing this myself and I dont want to create a page for every … | |
I am new to JSPs. I would like to know how can I get the database info (drivername, url, username, password etc.) to load from a config file into the JSP rather than hard coding the values there. Thank you everyone in advance. | |
i am new in Jsp please tell me how to connect MySql to JSP ? | |
hi helpers, i'm trying to read an array from jsp in to java(servlet) page the code is JSP CODE (readingcheck box values): [CODE] String select[] = request.getParameterValues("sel"); if (select != null && select.length != 0) { for (int i = 0; i < select.length; i++) { out.println(select[i]); [/CODE] its working … | |
public class OpenMenuListener implements ActionListener { public void actionPerformed(ActionEvent ev) { if(ev.getSource() == a) { f2 = new JFrame("shashikant verma"); p2 = new JPanel(); f2.getContentPane().add(p2); String str = "<html>"+"<h>"+"<P ALIGN = \"CENTER\">"+"<i>"+"<font size = \"10\">"+"<font color= \"#800080\">"+"CORRECT DEFINITION AND<br>"+"STRUCTURE OF FUNCTION y = f(x) "+"<br>"+"</i>"+"</h>"+"<P ALIGN = \"LEFT\">"+"<font size = … | |
hiiii, i have to build a secure web application using jsp, for which i have to implement SSL. I have generated the certificate using java keytool but as soon as i edit my server.xml file to enable connector port for https (8443) and add the other attributes like keystore,storepass and … | |
I'm trying to learn some struts through this tutorial: [url]http://www.netbeans.org/kb/docs/web/quickstart-webapps-struts.html[/url] Now I've completed everything but I'm getting this weird error in the browser: [QUOTE]type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: An exception occurred processing JSP page … | |
Hi all, I am trying to access login page (html page) from subdirectory of my web directory , the login page calls loginServlet which is reponsible for authintication, then the loginServlet response back to the client a web page to the user(whether user or adminstrator) . my web directory called … | |
I need to read XML document submitted to doPost() method ( I do not want to upload it, just read in and pass for further processing). Here is a general code that I use for now to see if file been received. [code=Java] public void doPost(HttpServletRequest request, HttpServletResponse response) throws … | |
hi im getting an error wen i give this syntax in order to retrieve info from my db into a txt box <input type="text" name="tname" <%out.println(rs.getString(1));%>/> pls help | |
Hi i hve used the syntax provided by ul in order to del multiple rows using checkboxes but for some reason the code shows we an error wen i give the value of the checkbox as one of my feilds so that i cud del the rec on that bases. … |
The End.