3,760 Topics

Member Avatar for
Member Avatar for bsridharg

have to display an image(available on the server as a resource) in the webpage using jstl. In the code, I have the image url, but before displaying it in the page, I need to validate if the image is available on the server to display. I tried to use <c:import> …

0
38
Member Avatar for bhallarahul

[CODE]<jsp:usebean id="a" beanName="xyz">[/CODE] how to use above syntax in jsp to deserialize data while jsp page running on tomcat

0
42
Member Avatar for grendel0

Hello, I'm trying to insert values from a form to a table (employee) on my database using prepared statements. From what I can tell the connections are fine, am able to query the database (as shown in the code to check the user type of the current logged in user). …

Member Avatar for javaAddict
0
5K
Member Avatar for sathya88

is there possible multimedia file transfer using servlet??? is it possible????

Member Avatar for harinath_2007
0
57
Member Avatar for ravi_91

hi to all, i did a project in jsp for "online exams" in my college then here my problem is how can i put into server so that every student can write the exam by connecting to the server how can he connect to the application(jsp file) which i put …

Member Avatar for peter_budo
0
132
Member Avatar for sagar2dumbre

Hello, I have been told to design website in JSP. Firstly it contains login page.i hv designed login.jsp but it contains all HTML tags. For the database(Sybase) connection i m planing to write java file login.java which will be invoked in login.jsp action method.... ... ..is this a right way …

Member Avatar for sagar2dumbre
0
168
Member Avatar for autorunman22

hello! i have been using Struts 2 for 2 weeks and i want to know if my login design is acceptable or not. here's my code: [CODE] <s:if test="status != null"> status property is NOT null <s:if test="status == 'incorrect'"> <div>Incorrect username/password</div></s:if> <s:if test="status == 'incomplete'"> <div>Incomplete details</div></s:if> </s:if> [/CODE] …

0
60
Member Avatar for autorunman22

Hello all! I'm having some confusions about what to use as the "Home Page" in my web app. Should I use Servlet?([url]www.foo.com/index[/url]) or JSP?([url]www.foo.com/index.jsp[/url]) I dont know what would be their entry point in my site. I mean, let say, they visit [url]www.foo.com/index.jsp[/url], and they click login, the page then …

Member Avatar for autorunman22
0
269
Member Avatar for kris-kz

So having a function code in JSP, example is this one: [CODE] function isitinstalled() { try { var myObj = new activity1(plugin.activity); if (myObj) { return "activity123"; } } catch(e) { if (navigator.plugins[plugin.namename]) { return "me"; } else { return false; } } return false; }[/CODE] How do I translate …

Member Avatar for kris-kz
0
121
Member Avatar for softDeveloper

Dear all, Context: JSP I'm trying to get the value of a java variable and assign it to a javascript variable in order to later on use it in an iframe: [CODE] ... rs.next(); entry1 = rs.getString(3);%> <SCRIPT> [COLOR="Red"] var tt="<%=entry1%>";[/COLOR] [COLOR="red"] var content = "<html><body>" + tt+ "</body></html>";[/COLOR] var …

0
101
Member Avatar for softDeveloper

Hi all! Can anyone help me on finding out if it is possible to fill an iframe in a jsp loading text from MySQL? or a different way to do it? Thanks in advance [CODE] Example: <% Connection conn = null; Statement stmt = null; ResultSet rs = null; String …

0
106
Member Avatar for jsawant85

Hello everyone! I am new to this forum and a beginner programmer. I wish to develop a small social networking site using JSP/Servlet and other useful java technologies. Your help is needed a s I am not much aware of the SDLC process. Need your help starting from the basics …

Member Avatar for jsawant85
0
403
Member Avatar for anand01

hi all , I know jsp,servlets, now I plan to learn structs what are the things should I learn before start to learn structs thanks in advance

Member Avatar for peter_budo
0
78
Member Avatar for Upoma

in my recent project the user need to attach document when filling a form.But dont have any idea about the implementation.how may i do this?if you have any idea,please help me.

Member Avatar for bkd
0
124
Member Avatar for warlord902

I am new to JSP/Servlets, so here is what I am trying to do: suppose my url is [url]http://mywebsite.com/[/url] and user come on this and it shows a login form, after submitting the form I want to keep the url the same as before that is [url]http://mywebsite.com/[/url] means it should …

Member Avatar for bkd
0
494
Member Avatar for softDeveloper

Hi all! Does anybody know a cool and cheap site where I could host my web application (jsp+Mysql)? Thanks in advance! Kind Regards

0
114
Member Avatar for cvanithakpm

please any one help me to clarify my doubts..... By running my servlet program which having ODBC connection...... It shows an error as [Microsoft][ODBC Driver Manager] Data Source name not found and no default driver specified... Following procedure only i did... 1)I did servlet program by having JDBC connection in …

Member Avatar for cvanithakpm
0
132
Member Avatar for softDeveloper

Hi all! I'm copying a poem from MS word ans pasting into a html text area. However only the first line of the text has a tab between the beginning of the phrase and the margin. All the subsequent phrases lose formatting and stay right next to left margin. It …

Member Avatar for peter_budo
0
266
Member Avatar for rushi3311

I have one query regarding managing information in JSP pages...! How to ADD UPDATE VIEW DELETE information from any JSP page...! How to perform CRUD (create , read , update, delete) operation on that information in most easiest way ??? Does java support any container or any component to deal …

Member Avatar for anand01
0
153
Member Avatar for slasherpunk

System Information: OS: Ubuntu 11.10 Server: Tomcat 7.0 JVM: openjdk 1.6 I have checked if the server is running by going to [url]http://localhost:8080[/url]. It's working fine. I just need to know the directory in which I should save my servlet in order to run it. I think I am supposed …

Member Avatar for peter_budo
0
143
Member Avatar for cvanithakpm

hi dear daniweb friends... please help me how to run jsp and what are the procedures need to do for running jsp

Member Avatar for masijade
0
78
Member Avatar for riahc3

Hey How do I make Apache Tomcat allow to interpret PHP as well? Allowing something like: [code] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html><head><meta http-equiv='pragma' content='no-cache' /><title>Hello</title></head><body>"); out.println("<?php echo 'Hello'; ?>"); out.println("</body></html>"); out.flush(); out.close(); } [/code] Thanks!

Member Avatar for riahc3
0
145
Member Avatar for chandub

hai everybody am unable to find full path of file. am using following code to import the file. in internet explore am getting full path, but in firefox(version-8) i'm getting only the file name instead of the entire file path.please help me to find full path of file.. <td> <input …

Member Avatar for javaAddict
0
137
Member Avatar for ananyaholla

hello, all I am trying to insert rows from Excel sheet into SQL database by browsing Excel file in java(JSP). I can insert rows using ODBC connetion. But using odbc user should give DSN in program. I need to insert rows by Browsing file to make it user friendly.i.e user …

Member Avatar for peter_budo
0
584
Member Avatar for rushi3311

I am developing a dynamic page in that some text and images should be displayed together...! But before that i had tried to get nevigation page for whole application. In that i am getting same problem, Image is not displayed...! What i should write in src=" ????? " I have …

Member Avatar for rushi3311
0
363
Member Avatar for onosan

Hi, first of all, sorry for my english, but I´m having a problem and I can´t resolve it. This is part of my jsp code: [CODE]<% if( session.getAttribute("usuario") == null ) response.sendRedirect("index.jsp"); ArrayList pacientes = new ArrayList(); String mensaje=""; String dni="", nombre="", apellido="", email="", sexo="", telefono="", fechanacimiento="", obrasocial="", codigo=""; String …

Member Avatar for javaAddict
0
1K
Member Avatar for riahc3

Hello Im trying to generate a image from a servlet and display it with browser. Lets say I want to do something like this: [code] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { BufferedImage bufferedImage = new BufferedImage(620, 420, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = bufferedImage.createGraphics(); g2d.setColor(Color.black); g2d.fillRect(0, 0, 620,420); …

Member Avatar for riahc3
0
117
Member Avatar for prasanna123

haii... I have written the code for a social networking site like orkut in php but due to guidelines given by my project guide i need to convert this code to j2EE is it possible??? i am new to j2EE can some one plzz tell me a site to learn …

Member Avatar for dmanw100
0
231
Member Avatar for arden_k

Hi All, I'm trying to get the JSP database connectivity according to (MVC) Model 2 tutorial to work but I'm missing something. I wanted to look at the files available for download to try to locate the answer to my question; danijsptutorial-database.zip and daniwebtutorial.zip. When I try to download the …

Member Avatar for peter_budo
0
200
Member Avatar for prachi munjal

Hi The code below is not getting executed when i m trying to make a line chart JFreeChart May be theres some problem with the persistence file.Every time I try to run it shows Jasper Exception... It shows the following [B][I][U][I]errors[/I][/U][/I][/B]: **An error occurred at line: 30 in the jsp …

Member Avatar for stultuske
0
250

The End.