4,248 Topics
![]() | |
I need to do the slideshow action for the database images. If i get all the images from the Database, i need to provide the slideshow for all those images. Here is the code for i have done earlier. <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@ page language="java" %> <%@ page import="java.sql.*"%> … | |
I have a JSP page which has student roster and letting instructor choose grades for some students with check box. I want only the students info which were checked to my next JSp page, but I cant take the only selected ones. It takes the selected number of students like … | |
I have one doubt about WAR file........ Like i am creating a project with mysql databse and deploying it through WAR file My question is if i want to deploy it on some other machine then i am copying war file there in webapps folder.........but do you think it war … | |
Hi i am making a new user page where user will fill username and password and i want to put some client side validation on it Suppose user has given wrong values in password and Confirm password column so before a request is send to secnd servlet i want to … | |
i want to show a image using servlet,which is being called by a java file (beans). in that java how will i get the parameter eg: poll-id=1,2 or 3...n from that jsp page?....here what i've done(.java file) but the its not showing the image(error: data not available): [CODE] package myapp.webwork.beans; … | |
I just started jstl tag lib. I made one Web application. Does any one a lead on some good example of jsp's using tagLib? | |
in a jsp page I need to get a variable and then I need to set the txt in a txtbox on the page with the variable. How do I do this ( quick code example pls) | |
i am using Apache Tomcat Version 5.0.28 but it is not working well i have just typed a simple code and it is giving error .i am providing error and also code please giude me where is the problem , i am new to jsp please help me thanx. .jsp … | |
Could someone just look at this code and point out the obvious errors. It may or may not be obvious on what it is supposed to do. Never the less what I want it to do and the syntex are bad. Could someone just make observations on how to accomplish … | |
anyone , please help me , i want to upload pictures to server, . i am using apache tomcat server, where i want to save the uploaded files. help me plz. | |
My system also got infected by the New Win32 and W32/Virut.h viruses. I run McAfee AV and had been updating regularly. The Virut virus was cleaned. However, the New Win32 virus continues to pop up with message that it cannot be cleaned or deleted. I have no option but to … | |
My system also got infected by the New Win32 and W32/Virut.h viruses. I run McAfee AV and had been updated regularly. The Virut virus was cleaned. However, the New Win32 virus continues to pop up with message that it cannot be deleted. I have no option but to quarantine the … | |
This is where netbeans is putting my class files. How do I get the apache tomecat 4.0 and JSP page to find these classes? C:\myjspapp\creditcardProject\creditcardProject\creditcardProject\build\classes\creditcardproject | |
I am going to do a project on JSP.Can anybody tell me some names of good books on JSP,SQL,ORACLE & J2EE.I really want to learn to do a best project.plz reply soon.... | |
Hello all. I am looking for some guidence please. At the place I work, there is a database which is accessible by three users. They have a front end exe file which connects to a MS Access database with several tables in it. The info is used for logging incomming … | |
I need some help with my classpath I think. My project compiles yet the jsp can not find the classes. What can I check to make sure the classes are going to the right folder? | |
[code] <form action="interface.jsp" method="post"> <input type="text" name="accttxtbox" value="Enter Account number"> <% if(request.getParameter("createacct" != null)){%> <jsp:useBean id= "creditCardBean" class = "creditcardproject.CreditCard"/> <%long AccountNo=getNewAccount()%> <%accttxtbox.value(AccountNo)%> <% double CreditLimit =creditCardBean.CreditLimit %> <% double TotalCharges =creditCardBean.TotalCharges %> <% double TotalPayments =creditCardBean.TotalPayments %> <tr><th>Account</th><th>CreditLimit</th><th>TotalCharges</th><th>TotalPayments</th></tr> <tr> <td><%= AccountNo %></td> <td><%= CreditLimit %></td> <td><%= TotalCharges %></td> <td><%= … | |
[B]This class was given to me. I need to work with JSP. Am I correct in thinking that I need to make the methods setters and getters for each method I need data from. And if so could you give me an example of one? Lets say I needed to … | |
hello friends, I'm doing a project with JSP, MySQL and Tomcat. I need a code to calculate the execution of a JSP page. Its V.V.V.Urgenttt... plzzz help mee out | |
I would like to use netbeans, and a tomcat server with a suitable jvm I am uninstalling all of the above because it does not seem to be working together. Is there some where I can get a download that will set me up to all these things with out … | |
hi guys......i want to view a piechart extracting items from a mysql database. i've created a button on a jsp page(view.jsp) which is calling another jsp page(viewrst.jsp) when i click that. the code for (viewrst.jsp) is given below: [code] <%@ page language=[COLOR=red]"java"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.chart.*;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.DriverManager;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.*;"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.data.jdbc.*;"[/COLOR]%> … | |
I want to generate a code that will automatically take the poll-id..of which the user wishes to view the result of that poll. there's the code:using mysql & java & another thing i wish to use this on a jsp page: [CODE] package votepiepack; import java.sql.Connection; import java.sql.DriverManager; import java.sql.*; … | |
HI alll I need help to send the link values to the action class.More precisely, i have many links in my jsp page,now i want the value of the link selected in the action class. I am using <html:link> tag in jsp and request.getparameter() in action class.kinldy help with a … | |
Hi all i have a table having 2 columns inside a jsp page.i want this table to be put in a list box.Is this possible? if yes,please do provide a syntax for the same.Thanks in advance Umadas | |
validations is not work properly,directly goes to failure page.The error page ie properties file is not taken&validation.xml is not taken,what can i do pls tell.ok bye | |
I have two questions 1. How do I use a Replace() function in JSP e.g. String strName = "My name is"; String strName2 = replace(strName, "is", "is Michael"); 2. How do I make a string to start with a capital letter e.g. I want [COLOR=red]d[/COLOR]avid to be [COLOR=red]D[/COLOR]avid Thank you. | |
I have an idea how to do this, but never did it before heres my code: <label for="weatherCity">City:</label> <select name="weatherCity" id="Cities"> <option value="0"> </option> here's my query: SELECT distinct state FROM ols_weather_current ORDER BY 1 asc; [code=java] Connection connection; PreparedStatement pstmt; ResultSet rst2; try { // execute the query connection … | |
Dear all, I was stored the gif/jpg image into the MySQL Database as a buffered image. But when i was retrive the image from database and display in jsp page, it will not working well. The image is not displaying. The content get from the database, but it's type is … | |
[code=java] <select name="weatherStat" id="States"> <% try { Connection connection = DataBaseConnectionManager.getConnection(); String sqlQuery = "SELECT distinct state FROM ols_weather_current ORDER BY 1 asc"; ResultSet rst2; PreparedStatement pstmt; pstmt = connection.prepareStatement(sqlQuery); rst2 = pstmt.executeQuery(sqlQuery); while (rst2.next ()) { <option value=rst2.getString("state")></option> } rst2.close(); pstmt.close(); } catch (Exception e) { e.printStackTrace(); } %> … | |
I want to generate a code that will automatically take the poll-id..of which the user wishes to view the result of that poll. there's the code:using mysql & java & another thing i wish to use this on a jsp page: [code] package votepiepack; import java.sql.Connection; import java.sql.DriverManager; import java.sql.*; … | |
I'm fairly inexperienced with java and haven't had any experience with SOAP at all and have been trying to get a Sample SOAP webapp working. After I startup tomcat and go to [URL]http://localhost:8080/soap/admin[/URL] the Apache SOAP Admin page comes up and if I try to click on any of the … | |
I want to generate a code that will automatically take the poll-id..of which the user wishes to view the result of that poll. there's the code:using mysql & java & another thing i wish to use this on a jsp page: [code] package votepiepack; import java.sql.Connection; import java.sql.DriverManager; import java.sql.*; … | |
hi , i have to display the xml in jsp (Tree Format) .Using DOM ..its very expensive becoz its a very big xml. I have xml in string format in jsp. For example: String xmlString =" <ALARM_CONFIG_DETAILS><ALARM_TYPE_DETAILS><ALARM_TYPE>test</ALARM_TYPE><ALARM_TYPE_DESCRIPTION>efe</ALARM_TYPE_DESCRIPTION><ALARM_OPERATIVITA_DESCRIPTION>dfsdf</ALARM_OPERATIVITA_DESCRIPTION><ALARM_IS_AUTOMATIC_CLOSED>y</ALARM_IS_AUTOMATIC_CLOSED><ALARM_TIMER>gfdg</ALARM_TIMER><ALARM_OWNER_ID>5</ALARM_OWNER_ID><ALARM_SIGNALING_TABLE_NAME>3333</ALARM_SIGNALING_TABLE_NAME></ALARM_TYPE_DETAILS><COMMENT_DETAILS><COMMENT_TYPE_ID>1</COMMENT_TYPE_ID><COMMENT_TYPE>dgsdg</COMMENT_TYPE></COMMENT_DETAILS></ALARM_CONFIG_DETAILS>"; Thanks Rahul | |
hi experts, Here there is a requirement in my project, like sending a automatic mail to a particular person,at particular time. [B]for examples[/B]: If there is an expiry date for a customer's account, a week before the expiry date a mail should be send to the customer as a remainder. … | |
help i cant open "my computer" or the control panel, whenever i 2xclick it the screen just goes blue, and nothing happens, my desktop just reappears. Also i am unable to play my game "counter strike" here is a log from hijackthis, hopefully someone could shed some light on this … | |
How can i send all requested parameter to included jsp. [CODE] <jsp:include page="/page"> ??????????? </jsp:include> [/CODE] | |
Wsup..basically I have a html file saved in another folder in Eclipse..I want to call a jsp and once I call it...I want the html code to show up...here's what I have "cp-termsofUse.jsp" [code= java] <%@ 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> … | |
Hello, Please, i need to know the JDBC code (applying servlet) to use with mySql to generate account balances from my customer_table having three columns(i.e. DEBIT, CREDIT,BALANCE) in the following format: CR-------------------------DR----------------------BALANCE 30................................5..................................25 2..................................3..................................24 I can only use 'select sum....' code to get the sums of both DR and CR … | |
Hi I have a web Application which uses servlets. As soon as any user Logs i create a folder for the user and the files uploaded by the user are stored in that folder. Now when the users Logs out of the Application I am supposed to delete the folder … | |
hello for downloading a file ,can anyone tell me how to download a file using portlet jsr 168 coz i've searched and found nothing i could do and i am newbie in portals and java script.Thx | |
hi all, I know bits and pieces of JSP. I have done many projects in PHP. I have got to do an assignment of developing on screen virtual keyboard with in 1 week. Am having no idea of how to start with it. Please help me with a basic outline/ … | |
I am attaching a war file that prints hello using servlet This is code for web.xm [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<?xml version="1.0" ?>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]web-app[/COLOR][COLOR=#0000ff]>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR][B]hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-class[/COLOR][COLOR=#0000ff]>[/COLOR][B]servlet1[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-class[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet[/COLOR][COLOR=#0000ff]>[/COLOR] [URL="file:///D:/sumit/WEB-INF/web.xml#"][B][COLOR=#ff0000]-[/COLOR][/B][/URL] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-mapping[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR][B]hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-name[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]url-pattern[/COLOR][COLOR=#0000ff]>[/COLOR][B]/hello[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]url-pattern[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]servlet-mapping[/COLOR][COLOR=#0000ff]>[/COLOR] [B][COLOR=#ff0000] [/COLOR][/B] [COLOR=#0000ff]</[/COLOR][COLOR=#990000]web-app[/COLOR][COLOR=#0000ff]>[/COLOR] [COLOR=#0000ff][/COLOR] [COLOR=#0000ff]but … | |
Hi, I was wondering if it's possible to use the sprintf or any kind of print statements that formats your output into a particular format. The value that is passed to me is "45.0", and I would like the output to be displayed as "45.00". Thanks for any replies! | |
I have a .jar file located in my program files that is from a third party and is require when running the bean on the web server. When running the app in a non jsp environment, I use the [code]java –cp {jar file name and location} [class name][/code] How do … | |
hello every one! i have a web site i have developed with php and jsp and am having problems trying to send messages to my contacts using javascripts. could anyone pls guide me? | |
So my user has successfully logged into their page...I have a "home" button link that I want to simply go back to this same page....when they press it...it takes them to the login screen....any suggestions?? here's my code snippet [code=java] <li class="first"><a href="cp-newmenu.jsp" target="_new" class="on">Home</a></li> [/code] thanx in advance | |
hi frds, i need code for pagenation using jsp servlet ....plz urgent........ | |
now as an example of validation i have this code [INLINECODE] <%@ page contentType="text/html" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <html> <head> <title>User Info Entry Form</title> </head> <body bgcolor="white"> <form action="validate_jstl.jsp" method="post"> <input type="hidden" name="submitted" value="true"> <table> <c:if test="${empty param.userName}"> <tr> <td></td> <td colspan="2"><font color="red"> Please enter your Name </font></td> … | |
hi, I was looking to solve this problem long time ago.My problem is: I have a link on jsp page (witch belong to a website ) when I click the link it suppose to give me the open/save/cancel dialog box to choose to open or save the specified file but … | |
any suggestions?...im thinking somewhere between lines 163-185, but I'm stumped <%@ page language="java" %> <%@ page import="trader.webservices.data.LeadDAO" %> <%@ page import="trader.aabacrm.LeadsList" %> <%@ page import="trader.webservices.data.*" %> <%@ page import="trader.webservices.presentation.Lead" %> <%@ page import="trader.webservices.data.UserInfoDAO" %> <%@ page import="trader.webservices.data.UserDataVO" %> <%@ page import="trader.webservices.data.ButtonDAO" %> <%@ page import="trader.webservices.constants.UserConstants" %> <%@ page import="trader.webservices.util.Utils" %> … |
The End.