3,747 Topics

Member Avatar for
Member Avatar for parsa.moshrefi

Hi all, Is there any way to send a request attribute via href? thanks anyone help me.

Member Avatar for periyasamy1904
0
71
Member Avatar for musthafa.aj

hai ! i want to make tcp communication using servlet, i tried this servlet program.. it will not work can anybody suggesting me... [CODE]import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class TestServer extends HttpServlet{ ServerSocket server; …

0
79
Member Avatar for manmeet khanuja

Hi all, I am a new developer in J2EE Field working on a web project. My Requirement is to fetch records from database and display on webpages depends on the scenario. The Server i am using is Apache Tomcat 5.5 and Database as SQL Server 2005 and IDE as Netbeans …

Member Avatar for peter_budo
0
113
Member Avatar for prathamesh_pita

Hi, I have my website Developed in JSP. It is just a basic , Which only uses menu's & Database Connection to display Dynamic Data. Can i migrate this JSP code to Asp.net, is there any tool Available which will help convert it? As my website contains many pages, i …

Member Avatar for finito
0
78
Member Avatar for aashishdaniweb

I want to send email using JSP. I did this for that, 1. Downloaded and Installed Java and Tomcat on My PC. 2. Used the following script, [CODE]<html> <head> <title>JSP JavaMail Example </title> </head> <body> <%@ page import="java.util.*" %> <%@ page import="javax.mail.*" %> <%@ page import="javax.mail.internet.*" %> <%@ page import="javax.activation.*" …

Member Avatar for Hakoo
0
180
Member Avatar for aravchr

Hello please help with these, i want to pass a value in input box to another jsp page without submit button. can i doit cheers

Member Avatar for jwenting
0
87
Member Avatar for vishal18

Hi Dear to All, I want create & write into excel file. My problem: when we get table as a query result on GUI. If user want to write that table into excel file,it should be done after button click. If we create it on server side then we may …

Member Avatar for xonglennao
0
113
Member Avatar for swati.n

Hi I have to display 4 BufferedImage in jsp page.I am getting these images from a java code. In the jsp page i am using: ImageIO.write(demo.getBuffImage(), "png", response.getOutputStream()); With this i am able to get the image. However if i write different ImageIO.write(....) for displaying each of the 4 images, …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for RaulGonzales

How i can build Pagination in JSP/Servlet [B]Design in MVC[/B] I don't know about Pagination Concept. Please give me the example code. Thank You

Member Avatar for ~s.o.s~
0
129
Member Avatar for mayank.15

I am working on a project in which i have to crawl through a number of *.jsp files and index some data from them. These files contain links to other jsps and .wav files. However, these links are of the form $root_dir$/<%=language%>ABC.wav, there language is a variable defined in the …

Member Avatar for jwenting
0
128
Member Avatar for karanits

Hello everyone. I have a question. In a servlet, can we write something on page using [CODE] PrintWriter out=response.getWriter();[/CODE] ,then clearing the page and then also forward the request using [CODE]RequestDispatcher rd = request.getRequestDispatcher("/some jsp page"); rd.forward(request, response);[/CODE] I was trying to do this but for some reason forwarding part …

Member Avatar for karanits
0
108
Member Avatar for RaulGonzales

How i can Rewrite URL JSP in Apache tomcat same MOD Rewrite in PHP [U][B]EX.[/B][/U] [CODE]test.jsp?id=1 as test/1[/CODE] Thank You.

Member Avatar for RaulGonzales
0
110
Member Avatar for nihao

Hello all: I find that the tag "<error-page>" could not be executed in my struts project. It could not be forwarded to the "error.jsp" when I try to access a not exist page or a wrong url.Why? The web.xml is like this: [code] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="[URL="http://java.sun.com/xml/ns/j2ee"]http://java.sun.com/xml/ns/j2ee[/URL]" xmlns:xsi="[URL="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/URL]" xsi:schemaLocation="[URL="http://java.sun.com/xml/ns/j2ee"]http://java.sun.com/xml/ns/j2ee[/URL] …

Member Avatar for lawrence_o
0
171
Member Avatar for opera

Can I apply JSP and J2ee technology for Social Network developing I am novic in web programming and My thesis title is social networking ! Please reply and advice me how should I do? I have little experiences in J2EE and MySQl looking forward to your reply!! Opera, Mandalay Technological …

Member Avatar for s_sridhar
0
97
Member Avatar for pavank_karanam

Hi, In student project have use 2 combo boxes (state and district) how to write the in jsp code please anybody tell me my mail <EMAIL SNIPPED>

Member Avatar for javaAddict
0
77
Member Avatar for prem2

Hi , I dont have any basic knowledge in servlet program in java.Now i am using Redhat os. Please any one tell some steps how to execute the servlet program. Thank you, Prem.

Member Avatar for prem2
0
132
Member Avatar for albertkao

Pressing the enter key at the jsp page receive extra invalid data at the ProdController.java. The alertgroupStr receive "unack" as expected. However, I do not understand why alertgroupStr receive the extra invalid "null" later. Debug log: 11:14:52,187 DEBUG com.systems.monitoring.war.ProdController:54 - alertgroupStr unack ... 11:14:52,187 DEBUG com.systems.monitoring.war.ProdController:54 - alertgroupStr null ProdController.java: …

0
88
Member Avatar for jsp_

Hi, I have to create a JSP page wherein files are to be uploaded to a specific location. This location is unique for each user and is thus stored in the database. Thus it consists of 2 steps 1. Reading the location from the database. 2. Uploading the file to …

0
44
Member Avatar for hemant.patel

when i register one databse at this time also insert to second database.I have two database on one server db1_main and db2_rg. this two database have tabal fields are different so it this posibale? if yes so what can i do?plz reply me. Hemant

Member Avatar for ~s.o.s~
0
24
Member Avatar for indu_ss4

Hi all! i'm developing a web application in jsf 2.0 with GlassFish server.Database is MySql.Https protocol. My problem is that when i request for a page in my application sometimes the browser displays the source code of that page and not the html view for the user. It is not …

0
112
Member Avatar for Yathini

Hi I am using Jreports for my task when i click the link instead of report excel should come for tat i hand code in jsp as "jrs.result_type=4" bcoz it launch excel its launching but i need to fetch 50,000 records bit it fetch 20,000 ... Any suggestions? [code=html]</head> <body> …

0
61
Member Avatar for ramesh866

hi everyone am a beginner in jsp side. i am working on a project where the UI is designed in HTML, validation in servlet and i want to store the relevant information in SQL server. I have glass fish server. how can this be done. please guide me

Member Avatar for ramesh866
0
37
Member Avatar for tarek.mostafa

Dear all, I developed a web application and it is working fine, except for one issue. The application includes uploading files from a JSP to my servlet, and the issue is that i would like to have a limit for the uploaded files on the client side (before actually uploading …

Member Avatar for jwenting
0
87
Member Avatar for itz.aayushi

I have an application written in JSP running in Apache Tomcat Server and back end is MySQL and m having problem in my code tried many things like creating a .bat file but dint got a code to run .bat file from jsp page. Also the following code i tried …

Member Avatar for itz.aayushi
0
906
Member Avatar for sivaprakashm

i can't able to display series2 dataset value in chart Any one explain me how to solve this problem Need Help Thanks in advance[code]dataset.addValue(plan, series1, category); dataset.addValue(actual, series2, category); CategoryItemRenderer renderer = plot.getRenderer(); renderer.setItemLabelPaint(Color.white.brighter()); for(int i =0;i<var.length;i++) { renderer.setLabelGenerator(new LabelGenerator(var[i])); renderer.setItemLabelFont(new Font("Serif", Font.PLAIN, 20)); renderer.setItemLabelsVisible(null); renderer.setSeriesItemLabelsVisible(0, false); renderer.setSeriesItemLabelsVisible(1, true); } …

0
52
Member Avatar for bonethirst

Hi guys, I might be new to jsp.. but i was trying to read an xml file through jsp and it doesn't show anything when i open it..can someone help me figure out whats wrong with it?? or is there anything that i missed? Thanks in advance. here's a bit …

Member Avatar for peter_budo
0
150
Member Avatar for harsh6886

Hi All, I have jsp page where in the only code I have is a [code]<% response.sendRedirect("/cz_CZ/songs/angelique_song.zip"); %>[/code]. Now this starts the browser download window and asks the user to download the zip file. Now, what i want is once the user completes the download I want to display thank …

0
63
Member Avatar for MichaelMelamud

Hello I have a jsp document,and a java class with some functions,i want that a button that located in the jsp document,will execute a function from the java call on click. but i don't really know how to do it,and i am stuck on it for a week now. If …

Member Avatar for javaAddict
0
8K
Member Avatar for anuplike

[code]<%@ page language="java" import="java.util.Properties,javax.mail.*,javax.mail.internet.InternetAddress,javax.mail.internet.MimeMessage" %> <% public class SendAttachment { public static void main(String args[]) throws Exception { String host = "smtp.gmail.com"; String from = "123.digit@gmail.com"; String to = "ae@gmail.com"; // Get system properties Properties properties = System.getProperties(); // Setup mail server properties.setProperty("mail.smtp.host", host); // Get the default Session object. …

Member Avatar for jwenting
-1
89
Member Avatar for mvsraman

I use Session Class in javax.mail....but, im getting error duplicate as :- Duplicate local variable session, as HttpSession it uses. So please tell me how to use Session Class in jsp.

Member Avatar for jwenting
0
113

The End.