4,248 Topics
![]() | |
I have a jsp form with 3 buttons (New/View/Edit). On clicking New..it should open another jsp form with some input field. On clicking View..it should open the same jsp form with input field as readonly on clicking edit..it should open the same jsp form with input field pre-populated.. can i … | |
Hi all, I am doing a small project which needs Tab control in JSF page.. so i went for MyFaces Tomahawk. While using it I experience a different error. While using components like Input Calendar, Input date etc, Its working Fine.. But while using TabbedPane It throws me an excpetion … | |
Hello all in my jsp i am using the below tag for label purpose [CODE] <% Random r = new Random(); String token = Long.toString(Math.abs(r.nextLong()), 36); String bgColor = request.getParameter("COLOR"); String ch = token.substring(0,6); %> [/CODE] <s:label name="formName" value="Employee"/> i want to use this tag as below.. <s:label name="formName" value="<%=val>"/> … | |
Hi, I need to give space between words in the following statement [code] r+='<option onmouseout="tooltip.hide();" onmouseover=tooltip.show("'+""+data_eval.data[t1].TECHNOLOGY+"-Technolgy_is_available_for_Project-"+data_eval.data[t1].PROJECT+"/Operator-"+data_eval.data[t1].Operator+"/Country-"+data_eval.data[t1].Country+"/Region-"+data_eval.data[t1].Region+'") value="'+data_eval.data[t1].TECHNOLOGY+'">'+data_eval.data[t1].TECHNOLOGY+'</option>';[/code] It is a tooltip. Thanks | |
Hi everyone, I have two questions: Q1: I need to design and implement a simple web interface which works as a browser in which I should pre-process the page before it's displayed and mark up (highlight) some specific words? How can I do that? Q2: I need also to design … | |
Hello all, following is my jsp file names register.jsp [CODE] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!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>Registration Process Form</title> </head> <body> <s:form action="registeraction" method="post"> <s:label name="formName" value="Employee Registration Form........"/> <s:textfield name="username" … | |
I am trying to do some simple form validation in a JSP. But the javascript just does not work....as if its just not there. Dont know what is amiss. Here is my code [CODE] <%@ 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> … | |
I am facing problem in storing an image file into sql server. Following is my jsp page form tag which calls a servlet which has the storage code.. [CODE] <form name="form" action="NewServlet" method="POST" enctype="multipart/form-date"> <input type="file" name="file" size="20"> <input type="submit"> </form> [/CODE] here is my servelt code for the same … | |
Hy all, i use the following code for displaying the image. i am sending the image file from the my HTML page... the following code is working for the image having name without any space example like:-test1.jpeg, but the following code is not working when i send the image having … | |
How To Convert .java to .jsp file ??? can any one help me out... its very urgent..!! | |
i tested the php version of the autocomplete example in ajax using PHP from here: [URL="http://www.w3schools.com/ajax/ajax_aspphp.asp"]http://www.w3schools.com/ajax/ajax_aspphp.asp[/URL] i tried the PHP veriosn, not the ASP version. It worked fine. Now i want to implement the same thing in JSP, and so i translated the PHP version of source file (which has … | |
I have an application which accesses a catalog of items which can then be added to a cart. When a user selects the item(s) which could be "n" number by checking a checkbox and clicking the "Add to cart" button, the data has to be posted to a cartservlet. I … | |
Hii I am New in SalesForce CRM and i am facing big problem with Salesforce Web To lead form what i did i have created landing page and in which one lead Collection Form connected to Sales Force CRM now what is the problem i am facing is when i … | |
hi all, I am new to jsp i want to import applet class into jsp file . am using netbean IDE how can I define code base. <applet CODE ="app.class" codebase="http://localhost:8080/proj/build/WEB-INF/classes/" width="804" height="512"> </applet> thanks in advance | |
I have been assigned a task to develop an online store.I am facing a problem at the time of insertion of records into SQL Database. I am using Type4 driver. The name of the DNS is SQL. here is my servlet code [CODE] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws … | |
Hi friends, I am using struts2.I have a select tag in jsp page.After submiting form to action class,again i am redirecting to same jap page. Here, In my jsp page i want to retain <s:select list="topcat_list" name="topcat_select"> options after coming back also. Is there any way.how can i do that.thnaks … | |
Hey guys, I am pretty new in using jsp. I am currently using tiles and action mappings for my project. I am just wondering if there is a way to use action mapping with <jsp:forward> or any other forward script, especially in tiles? I tried to do the following and … | |
Dear Friend..... I want to make web site that it want to plugging with facebook..... In other words, If i type & submit something,I want to publish in Facebook wall (if i can publish in selected person's walls its very worth) it like what the youtube done after some video … | |
Hi, In our application there is we have made connection code on jsp page. that code working properly but if we press long time F5 key then we get Exception is as followes : - "java.sql.SQLException: ORA-00942: table or view does not exist" after that if we press one time … | |
So I'm busy with a small website I'm able to login at the website with the help of sessions that all goes well. But I'd like to expand the website a bit more, it's a sport website where people can add players, add teams, and add matches, and those are … | |
hi again, I think I installed Java 3d correctly... I can compile code, but the code won't run. this is the error I am getting: [QUOTE] # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0949c964, pid=3832, tid=3604 # # JRE … | |
here's my code: [CODE] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.annotation.WebServlet; @WebServlet(name="HelloWorld",urlPatterns={"/HW"}) public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println("Hello Programmers!!! "); } } [/CODE] to access it on Tomcat, i goto : localhost:8080/examples/HW so i … | |
Hi, I am new to Java, JSP and would like to start web development in JSP and want to know about a tutorial or some steps on what do I need to start web application development in JSP/Servelts/Java. Would really appreciate some help. thanks, J | |
I have a List <Food> , which contains values such as food_id, food_catergory, food_detail etc. There is a java file call 'Event.java' it contain the List <Food> as a variable. Now there's a JSF page called event.xhtml. I need to print all the items in the List<Food> in a table … | |
Hi, Can any one tell me, can i use a value in the entire site? That means, i need to use that value out site project in the same site. Please help me. i got a value in my jsp page, need to forward that value into a different war … | |
Hi all, I have 2 JSP Pages, page 1 contains attachment button for (attachment to be uploaded) and Done button for navigating to second JSP page. Currently Done button is not wait for the attachment to be uploaded .When user clicks on Done Button if attachment is in processing I … | |
I am doing a project title "video chat" on web based application. Is there any java framework available to access webcam ? | |
Hie good friends! I have got a Jsp form for creating a database record for students. The form has got a drop down box for Countries, but the countries are too many that a user may spend a lot of time scrolling to locate his/her country. The drop down is … | |
hi friends, This is Anand, am beginner to jsp, now am trying to connect jsp with mysql. Is this possible to code connection code separately and include each and every page. am trying the following code.I code these lines in separated.and I want to use it other pages.at the same … | |
Hi there guys! I've been stuck with this problem for quite a while now. I wanted to create a jsp which would upload files to sql database. I've used this code for my upload_page.jsp: [CODE] <%-- Document : upload_page Created on : Mar 6, 2011, 11:01:40 PM Author : Administrator … | |
Hi everyone, could you tell me how to check if email exist in jsp :( ??? thank you. | |
I have implemented a jetty-based servlet under eclipse.It runs fine under eclipse. Right now, I need to deploy it as a Web application. I would like to know the procedures of transplanting these java programs from Eclipse to a real Jetty-based web application. The system is a Linux box. Thanks. | |
Hi there, The thread title pretty much says it all. How exactly do you send data to, and from portlets? Does it have something to do with the RenderRequest and RenderResponse objects? I haven't a clue... There's hardly any information on the net regarding portlet development, very frustrating. Thanks in … | |
hello all i have a tgz file on the system.Now i want to download it in my jsp page.but i have not any idea how to do it. currently i am downloading the text file in jsp using following code [CODE]response.setContentType("Text/html"); response.setHeader("Content-Disposition","attachment;filename="+strFileName+""); [/CODE] please help..... | |
i try to change this scrip into jsp but i stuck at switch statement - switch ($_GET['action'].. Please someone help me.. (T_T) [B]menu.php[/B] [ICODE]<li><a href="index.php?action=home">Home</a></a></li> <li><a href="index.php?action=aboutus">About Us</a></a></li>[/ICODE] [B]index.php[/B] [ICODE]<td width="20%" valign="top"> <?php include ('menu.php'); ?> </td> <td width="85%" valign="top"> <?php switch ($_GET['action']){ case 'aboutus': include 'aboutus.php'; break; case 'home': … | |
Hi, I want to avoid the addition of the <tr> tag when i am rendering the following code in struts2. [code]<s:textfield name="students[#stat.index].lastName" /> <s:textfield name="students[#stat.index].firstName" /> <s:textfield name="students[#stat.index].userName" /> <s:textfield name="students[#stat.index].userPassword" />[/code] textfield tag will add <tr> tag before each row. I want to avoid the addition of this tr … | |
i am having problem in this code, i have written //ERROR, where i am getting error.... PLEASE HELP BASICALLUY, WHAT I AM DOING IS:- I HAVE A GENERATE AND OK BUTTON, WHENEVER I CLICK GENERATE BUTTON, A NEW SET OF INFO IS RETRIEVED FROM THE DATABASE AND THE TEXT FIELDS … | |
hi i have a jsp page in which there is three radio button one is for dropdown list,another is for text field and last is for File field.What i want is when someone select dropdown list other two fields should be blanked and disabled.and when i select file field then … | |
Hi there!!! I am new here and new student. I got a question here. If I want to detect whether there is an illegal charater(inside red) - other than what is provided now. how do i have to do it? Thanks in advance. [CODE]<html> <body> <% for (int i=0;i<5;i++) { … | |
I am stuck in quite a tricky problem, That is - My session which contains username is getting invalidating on page refresh in Firefox Mozilla. Same is working fine in IE-9 I am pasting the code of both header and index.jsp file. [U][B]Header.jsp[/B][/U] [CODE] <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib … | |
Hi I'm new to JSP and am having a right battle with session scope. Here's what I'm doing: I have created a class with some variables and methods. As I want to be able to access the contents of my created object in other pages, I have instanciated my class … | |
hi i have validated some fiels in jsp using useBean . But am nt able to get the values into another page.can anyone help me.This is my code. jsp file [CODE] <%-- Instantiate the form validation bean and supply the error message map --%> <%@ page import="com.mycompany.*" %> <jsp:useBean id="form" … | |
Hi everyone. I'm using Tomcat 7.0.8 I have created servlet, which loads image to "webcontent\pic" folder of my project. Then I need to display this image. The servlet works, but with only restriction: i need manually refresh content of project, or directory (I'm using Eclipse). Otherwise ugly cross will be … | |
Hi All, I have three combo boxes in a jsp file in a form. After i select valus for the three combo boxes I click search button which is a submit button, on submit the corresponding action file is called, there I can get the values by request.getparameter("name"); I just … | |
i making a system, in which at max 10 users can login and work independently. But the problem is that when a user logs out, i am just redirecting him to the login page, i want to end that session, so that IF HE CLICKS ON THE BACK BUTTON, HE … | |
i have made a jsp page, in which:- 1) I HAVE CERTAIN TEXT FIELDS 2) AN OK BUTTON 3) A GENERATE BUTTON. The problem:- When i click on generate button, info from database should get filled in the textfields. How can i do this? | |
Hi All, I was wondering if any of you would know of how can i change the interface of a java program to a web based interface using html5. I know i could do this easily using jsp/java.net but my requirement states to change the java desktop program application interface … | |
Hi guys! Been spending 2 days for this problem. Im having this error message whenever i run the program in netbeans6.9.1, [QUOTE]org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880).... ...[/QUOTE] The was working fine not until i tried exploring iReports 3.7 and creating a classpath (in iReports) … | |
Here are the picture.. [IMG]http://img830.imageshack.us/img830/6774/chequea.jpg[/IMG] [CODE]<jsp:useBean id="chequeStopBean" scope="session" class="my.com.infopro.ibank.ui.bean.ChequeStopBean"/> <jsp:useBean id="labelBean" scope="session" class="my.com.infopro.ibank.ui.bean.LabelBean"/> <jsp:useBean id="lang" scope="session" class="my.com.infopro.ibank.ui.bean.LanguageBean" /> <%@ page language="java" import = "java.util.*" errorPage="" %> <%@ page import="my.com.infopro.ibank.dto.ChequeDTO"%> <% request.getSession(true); String contextPath = request.getContextPath(); chequeStopBean.queryAccList(); //RequestDispatcher dispatcher = null; %> <html> <head> <title><%=labelBean.getLabel("STOP_CHEQUE")%></title> <meta HTTP-EQUIV="Pragma" content="no-cache"> <meta HTTP-EQUIV="Expires" content="-1"> … | |
can I know how to access the databse from jena using tdb and arq..am unable to get the resultsetformatter in jsp..the code runs perfectly in java,but i encounter problem in jsp... [CODE] String s = "" + "PREFIX dc: <http://purl.org/dc/elements/1.1/>" + "PREFIX skos:<http://www.w3.org/2004/02/skos/core#>" + "SELECT ?s " + " { … |
The End.