3,760 Topics

Member Avatar for
Member Avatar for avishkar.joshi
Member Avatar for fankoff

How could I like programming ? When you spend 2 days on one single, pointless line and the only thing you get to see is an ERROR-response. It`s really inhuman and I cant imagine who would want this voluntarily. Nevertheless, what am I yammering about is following error, that is …

Member Avatar for bapi
0
96
Member Avatar for Sabzar

Hi can any one help me please .. i want validate textfield value with database in jsp onchange event .. i am using struts2 ..when i enter a value in textfield on onchage event the value should get validate with database and if the data is present it should display …

0
60
Member Avatar for jacklops

Hi I am very new to the JSP and EL. I have a JSP main file which loads several custom tags from tagx files. But all tags for now are statically loaded on page load. I want to dynamically load the custom tags using javascript I wrote a ajax/script for …

0
35
Member Avatar for vishant

Hi everyone, I am doing a project for school and i'm having some problems. I have a Profile page. When i call on Profile.java, this servlets get(doGet) the profile info from the database and shows it on the profile.jsp. The user has the option to edit the info on the …

0
68
Member Avatar for fraenckel

This should be really easy, but I'm a novice at webapps.... I have a simple drop down list in my JSP which I created using <select> and <options>. I've got a javascript function in which I would like to get the selected value and proceed to do other stuff with …

Member Avatar for fraenckel
0
172
Member Avatar for azhar27

In the below code i m trying to send my request attribute from req.jsp page to retr.jsp. i would like to know if we can pass request attributes from one jsp page to other jsp page the below is my req.jsp [CODE] <html> <head> hey i m page 1 </head> …

Member Avatar for javaAddict
0
294
Member Avatar for sara khan

I m making a website in which I hav an admin and members .. I want to define rights of users who can access a certain page.. For this purpose I m using an array of String along with a Session object. I m storing URLs of pages which a …

Member Avatar for sara khan
0
227
Member Avatar for AbhikGhosh

Hi I am not been able to receive URL parameters passed from my ajax code in my jsp. Here is the code [CODE] function showDetails() { document.detailsForm.sltdUser.value = selectedUserID; alert('selectedUserID' + selectedUserID); var httpRequest; var url = 'showDetails.jsp?sltdUser = ' + selectedUserID; if (window.XMLHttpRequest) { // Mozilla, Safari, ... httpRequest …

Member Avatar for Thirusha
0
730
Member Avatar for mindbend

Need to make a website for a school project. Decided to make a website like photobucket. I got every page read, but the only thing missing is the uploading part. Does anyone know where I can find some examples of uploading blobs? Or mayb someone can share one. The thing …

Member Avatar for mindbend
0
89
Member Avatar for fankoff

It simply wont forward my page! I`ve tried everything, and it still wont forward it. Basically what I have is a register.html where the user can put his username, passwort, etc. , a db_register.jsp which handles the input and sends it to the appropriate tables in the db. When the …

Member Avatar for javaAddict
0
171
Member Avatar for fankoff

One last question, really ! How for goodness's sake can I load the results in the html page without leaving it? Always when I click a button (do I always have to click a button? is there a way to call a resultset from the html and to handle it …

0
82
Member Avatar for fankoff

Hallo guys, a theoretical question I have there for you. I have a search form in HTML with several input fields, so the user can search for particular features in a db. My queiston: How can I generate a dynamic query, depending on which fields the user had filled in? …

0
78
Member Avatar for fankoff

Hi guys, I have a quick and interesting question there for you: I have my DB and a execute a query to read some data from the DB and return it to the HTML. The data that is returned depends on the search fields the user had filled in. So …

Member Avatar for fankoff
0
124
Member Avatar for AbhikGhosh

Hi I am unable to pass value from one jsp to popup jsp. Code [CODE] <form name="detailsForm" method="post" onsubmit="return showDetails(this); "> <input type="hidden" name="sltdUser"> <input type="submit" value="Details"> </form> function showDetails(detailsForm) { detailsForm.sltdUser.value = selectedUserID; alert('selectedUserID :' + detailsForm.sltdUser.value); // works fine window.open('showDetails.jsp?abc =' + detailsForm.sltdUser.value); } [U]showDetails.jsp[/U] <% String abc …

Member Avatar for javaAddict
0
132
Member Avatar for balaji153

Hi , i am php developer. But plan to learn JSP do i need to learn java for that?.....

Member Avatar for ~s.o.s~
0
57
Member Avatar for karanits

Lets say i have a jsp page which invokes a servlet. Now I want the servlet to forward this request to someother secured jsp page which i have configured to be secured in my web.xml. The problem is the jsp pages opens as secured if I open it directly from …

Member Avatar for karanits
0
134
Member Avatar for vishantpoeran

Hi everyone, I searched a while on the internet how to work with mvc for a school project. I found a really great tutorial on this site. ([URL="http://www.daniweb.com/forums/thread141776.html"]http://www.daniweb.com/forums/thread141776.html[/URL]) This tutorial has everything that i needed. In this tutorial the connection of the database is made by setting paramaters in de …

Member Avatar for ~s.o.s~
0
290
Member Avatar for sara khan

Hey i m using href for forwarding control to other page but it displays null when i want to get that attribute in other page.. Can any 1 suggest me what to do...

Member Avatar for kvprajapati
0
107
Member Avatar for Paula D

Hi My jsp does not seem to run in the order I would expect .. [code] <%@ include file="/Site-English/Common/progressWindowInsert.html" %> <script language="javascript" type="text/javascript"> alert("do this"); showProgressWindow(); </script> <% System.out.println("print out this line !!"); %> [/code] The System.out.println commmand is written before I respond to the alert. Any explanations would be …

Member Avatar for stephen84s
0
82
Member Avatar for fankoff

Hi guys, I`m new to web-developing. Curruntly I`m battling with JSP and Databases. I `m using Eclipse as developing environment and I started receiving following error, which doesn`t tell me anythnig: HTTP Status 500 - type Exception report description The server encountered an internal error () that prevented it from …

Member Avatar for stephen84s
0
170
Member Avatar for prem2

Hi Daniweb team, I am developing the sample servlet program.This is my sample program. Servlet Code: [code] package org; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet{ public void doGet(HttpServletRequest req,HttpServletResponse rsp)throws ServletException,IOException{ PrintWriter out=rsp.getWriter(); String type=req.getParameter("type"); if(type==null){ out.print("success"); } else{ out.println("Not a Null value"); } } …

Member Avatar for stephen84s
0
96
Member Avatar for manojd

fellow developers...i am new to web development...I am developing a simple web application using Oracle for Weblogic Workshop with Weblogic 10Gr3 server. However my deployment server is weblogic 7.1. When i deploy and run the app, i get the following error Parsing of JSP File '/index.jsp' failed /index.jsp(6): class 'xxx.xxx.xxxx' …

Member Avatar for Thirusha
0
307
Member Avatar for sreekanthvasire

Hi all, I am having trouble with including a jsp page with <jsp:include> tag. This is what is happening. I making changes to a portlet application running on Websphere 7 server. This is the hierarchy of the jsp pages. blankPage.jsp -->bookingViewTabs.jsp --> availableRooms.jsp meaning blankPage is included in bookingViewTabs which …

0
46
Member Avatar for vinithktp

Hi All, I have maintained an EJB application, and its working fine with my local machine. But same EAR file not reflecting properly from the server machine. Still i can see my old version of the apllication from server. I deleted the EAR file and redeployed it, but no changes, …

0
68
Member Avatar for avinash020

I am getting huge data from database approx a million and trying to store it using csv format in excel like : response.setContentType("application/ms-excel"); response.setHeader("Content-Disposition", "inline;filename=newfile.csv"); but as the data is huge and excel can take only 65K at one time its failing. Please let me know how to download data …

Member Avatar for stephen84s
0
356
Member Avatar for aarya

hi i am trying to insert into mysql databse using jsp.but i am getting the error as [CODE]An error occured between lines: 38 and 47 in the jsp file: /jsp/havyaka/register.jsp Generated servlet error: C:\tomcat\work\localhost\examples\jsp\havyaka\register$jsp.java:102: Incompatible type for declaration. Can't convert int to java.sql.ResultSet. ResultSet rs = statement.executeUpdate("insert into havyak(usercode,password,email,name,phone,add1,add2,add3,add4,country) values('" …

Member Avatar for gauravleoheart
0
433
Member Avatar for anjali_nair1286
Member Avatar for AbhikGhosh

Hi I am using tomcat 5.5 and I am unable to connect to mysql server(Wamp2.0i). Here is my code: [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page import="java.sql.*"%> <%@ page import="java.io.*"%> <html> <head> <title>Connection with mysql database</title> </head> <body> <h1>Connection status</h1> <% String connectionURL = "jdbc:mysql://localhost:3306/names"; Connection …

Member Avatar for AbhikGhosh
0
159
Member Avatar for pradeesiva

Hi I wanna execute servlet progam in net beans , anybody please tell is tomacat must for run it?

Member Avatar for peter_budo
0
20

The End.