Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
36% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
3
1 Commented Post
4 Endorsements
Ranked #396
Ranked #1K
~47.7K People Reached
Favorite Tags
Member Avatar for new_2_java

Hello everyone, I need to pass some parameters from my servlet to my JSP. I am able to access 2 of my parameters from the request object, but one of them is returning null value. Here's my servlet snipet: request.setAttribute("selectedA", aBook); request.setAttribute("selectedB", bBook); request.setAttribute("book_ref", book_ref); logger.info("book_ref = " + book_ref); …

Member Avatar for new_2_java
0
247
Member Avatar for subramanya.vl

I am a regular user of Rapheal javascript library to generate charts on web pages. Now am forced to use Rapheal with eve and require javascript so that the generated chart can be modfied according to clink events on web page. Any idea to make Raphael work with require.js and …

0
97
Member Avatar for faysal515

I am working on a dynamic project for my own but struggling to create an article. The idea is that one registered user can publish an article with an image . <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> <!DOCTYPE html PUBLIC …

Member Avatar for Deepak_11
0
1K
Member Avatar for xxmp

Hello i am trying to use cookie at my site. I used this code for set the cookie try{ Cookie cookie1 = new Cookie("thesiteid", Integer.toString(site_id)); cookie1.setDomain("localhost"); cookie1.setPath("/"); cookie1.setMaxAge(24*60*60*365); response.addCookie(cookie1); System.err.println("Set cookie"); } catch (Exception e){ System.err.println("Error in creating the cookie: "+e.getMessage()); } The problem is that is not working at …

Member Avatar for jayvee88
0
186
Member Avatar for $ay_$andy

hello, i m trying to call java function from javascript. i want to pass js variable as a parameter to java function. pls anyone help me how can i do that..?? thank you..

Member Avatar for ruchi18
0
281
Member Avatar for dharmil007

Hi guys i m doing an EJB project on Library Management using NetBeans Out of which the first Step create a "CREATE ACCOUNT" page & get all the details from User & store it in Database. Using JSP for this. Everything is created, but when i try to Click Submit …

Member Avatar for subramanya.vl
0
3K
Member Avatar for Neversleepin

Hello, how can copy and save the console message to a file using logger. i try this :[Click Here](https://friendpaste.com/6FWNg0QIzY7DoPXisOyqpv) but it's only saving warning and info messages to my file. thank you

Member Avatar for subramanya.vl
0
147
Member Avatar for lena1990

hi i want to upload an xml file from my computer to a server but i donot know is there is a website that do that i want to do it for test purposes but my server is not ready yet and i need to make sure that the program …

Member Avatar for subramanya.vl
0
245
Member Avatar for mateusz.baran1

Hello fellows! I have question. Iam doing some project to my school and I have small problem. I have chart (iam using jfreechart) in Chart.java file and after user is loading to his profe he should be able to push button and chart wit his statistics should appear. My problem …

Member Avatar for mateusz.baran1
0
513
Member Avatar for subramanya.vl

I need the algorithm not the code . I am on a project where I should not use any third party libraries other than java sdk. I am supposed to convert a text file to an xml file. I know that there are SAX parsers and DOM parsers available and …

Member Avatar for peter_budo
0
128
Member Avatar for Violet_82

HI all, I was looking at this program and noticed few things: import static java.lang.System.out; public class Employee { private String name; private String jobTitle; public void setName(String nameIn) { name = nameIn; } public String getName() { return name; } public void setJobTitle(String jobTitleIn) { jobTitle = jobTitleIn; } …

Member Avatar for Violet_82
0
2K
Member Avatar for subramanya.vl

I have this singleton class public final class MySingleton{ public static MySingleton singletonInstance; private MySingleton(){} static{ singletonInstance=new MySingleton(); } public static MySingleton getInstance(){ return singletonInstance; } } I wanted to know is there any other simpler and better way of creating a singleton instance?

Member Avatar for stultuske
0
162
Member Avatar for daravindm

hi friends. i need a help how to enable and disable multiple textboxes corresponding a button click belwo i will show u the image ![catalogsearc](/attachments/large/3/catalogsearc.JPG "catalogsearc") when i click the check box i want to enable these text fields.. hw it possible please provide a sample codes or give me …

Member Avatar for subramanya.vl
0
216
Member Avatar for subramanya.vl

I know that java.long.String is an immutable class. I need to know different ways on to how create an immutable class in java. What are the pros and cons of immutable class

Member Avatar for stultuske
0
80
Member Avatar for manaila

How do I refer to a file that is in the following directory in Java web app: ***webapps/WEB-INF/myfiles/filename*** I have read that this has got to do with relative paths, but I do not understand how to do that.

Member Avatar for subramanya.vl
0
206
Member Avatar for ruchi18

Hi, I have a jsp file which call java class file function passing connection as a parameter all was working fine once but when i changed few code in java file and compli it complied successfully but jsp file still giving previous class function output. I am working on amezon …

Member Avatar for ruchi18
0
182
Member Avatar for manaila

I am trying to test [this](http://www.tutorialspoint.com/jsp/jsp_java_beans.htm) code but unfortunately I get `Can't find a method to write property 'age' of type 'int' in a bean of type 'test.StudentsBean'` error. But when I change age type to String and also its getter and setter methods it works well. Can anybody tell …

Member Avatar for manaila
0
101
Member Avatar for hala.qaddoumi

***Can you help me to write a java program to evaluate a mathematical expression written in a a Prefix Order ?? ***

Member Avatar for hala.qaddoumi
0
1K
Member Avatar for meenal9

I am confused "HOW to make a series of numbers in reverse orDer In java" I got the basic idea but i cannot join them together ...in this program compUtter Will identify weather input is binary or decimal .i am unable to make computer identify numbers in.please help wit Java …

Member Avatar for meenal9
0
283
Member Avatar for tingwong

Hi everyone, I have a project that creates a Train that pulls Boxcars. The boxcar is supposed to be generic type and have attributes such as load that adds only a specific type of object to the boxcar. The train is supposed to pull all boxcars created. I have written …

Member Avatar for JamesCherrill
0
334
Member Avatar for komabasi

write java programme, using DO and WHILE to approximate 22/7 (pi)= 4-4/3+4/5-4/7+4/9-4/11+4/13..

Member Avatar for subramanya.vl
0
474
Member Avatar for Despairy

(netbeans latest, windows 7) So, from what I understood, once I start a servlet program the html page with a form in it loads and I can debug the program only when I click the Submit button at the end of the form. if the form is doPost then by …

Member Avatar for Despairy
0
200
Member Avatar for Atlanta15Braves

I need to sort these strings in order and I have changed the code of my program which use to sort integers and now I need it to sort strings and I cannot get it to work, any help..... import java.util.Scanner; public class Strings { // -------------------------------------------- // Reads in …

Member Avatar for subramanya.vl
0
212
Member Avatar for java123456

hey guys so i am having a problem in my assinghmnet . i am making a text file and it has to import to java and make a table from the text file . so there is what the txt file looks. 3 // this should be the rows 1,2,3, …

Member Avatar for subramanya.vl
0
260
Member Avatar for nHulk

[CODE] <tr> [B][U]<td><a href="inbox.jsp" ><%=rs.getString(1)%></a></td>[/U][/B] <td><%=rs.getString(2)%></td> <td><%=rs.getString(3)%></td> </tr>[/CODE] See lines in Bold.....after i click it has to set session variable with value reterived from <%=rs.getString(1)% >based on which i am going to display particular contents in redirected page

Member Avatar for jalpesh_007
0
1K
Member Avatar for nseeley3

Hey everyone! So I want to make a simple console based chat client as my first java project (ambitious I know) so here is what I have brain stormed as to What this program will entail (Let me know if I missed anything. * Cases (to handle arguments such as …

Member Avatar for subramanya.vl
0
242
Member Avatar for jsp418

Hi. I'm writing a program that reads information from three seperate classes. public class Animal { protected int id,animalTotal; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, double weight) { id …

Member Avatar for subramanya.vl
0
201
Member Avatar for subramanya.vl

I am new to sybase. I came to know that i can take contents of a sybase table into a text file using an option called BCP Can anybody here explain how to use BCP in sysbase

Member Avatar for anthony6789
0
78
Member Avatar for TheMrPatrick

Hi, I am currently making an assignment for JAVA, but I get stuck at the following. I need to make a simulation of a shop where a customer puts objects in his "basket" and with that basket you go to the checkout counter. Now we have to make it possible …

Member Avatar for NP-complete
0
558
Member Avatar for Nandomo

I have this assignment for my java class, it runs fine, but the professor wants us to incorporate a private gradeExam method, which I don't know how it work fit, since I cannot call it from the DriverTest class which contains my main. package project6; /* A demonstration of how …

Member Avatar for Nandomo
0
198