Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~29.5K People Reached
Favorite Tags

40 Posted Topics

Member Avatar for raghujosh

I have a page which does an AJAX call and loads an entire page. The page that gets loaded has some Javascript. The javascript works on page by itself when loaded, but when its gets loaded by AJAX, the Javascript does not work. I dont know what I am missing. …

Member Avatar for MMSWEBSD
0
5K
Member Avatar for raghujosh

How can I pass multiple values from a JSP to a servlet using an hyperlink. Following is my code [CODE]<div style="width:500px;height:20px;border:2px solid blue; padding-top:25px; padding-left:40px; padding-right:20px; padding-bottom:10px;"> <jsp:include page = "/Alphabet.jsp"/> </div> <a href = "cart.jsp"><img src="shopping_cart.jpeg" width=50 Height=75 alt="Shopping Cart" border="0" style="float:right;"></a> <%@ page import="com.classes.chemical.*, java.util.ArrayList" %> <td width …

0
142
Member Avatar for raghujosh

I have a JAVA method that executes the following query to SQL server database SELECT [CHEMICAL_NAME],[CHEMI_UNIT],[PRICE],[VENDOR],[CATEGORY]FROM [RPS].[dbo].[Chemicals]where CATALOGNO = '" + catNo+"' ;"; Following are the column names of the database table CATALOGNO, CAS_NO, CHEMICAL_NAME, CHEMI_UNIT, PRICE, VENDOR, CATEGORY, I get the above mentioned error "com.microsoft.sqlserver.jdbc.SQLServerException: The column name CATALOGNO …

Member Avatar for debasisdas
0
151
Member Avatar for raghujosh

I am outputting the contents of a product from a product object(containing catalog no, product name, vendor, price, quantity(a textbox) and a checkbox(to select the product)) as a tabular display. When a user checks a checkbox(indicating the product checked), I get the values into a servlet. However, when I have …

Member Avatar for raghujosh
0
584
Member Avatar for raghujosh

What would be a regex pattern for the following ' and ® in Java. I have tried the following but have not been successful 1.&#[0-1][0-1][0-1] 2.&#\d\d

Member Avatar for Ezzaral
0
66
Member Avatar for raghujosh

I have a google maps application which has an address text box. When we type in the postal address, it gives the corresponding latitude and longitude as a pop up info window on a google map. All i want to do is to be able to get the latitude and …

Member Avatar for Airshow
0
5K
Member Avatar for raghujosh

In some cases of HTML cleaning, I would like to retain the text enclosed between the tags(which is the default behaviour of Jsoup) and in some cases, I would like to remove the text as well as the HTML tags. Can someone please throw some light on how I can …

0
83
Member Avatar for raghujosh

I want to be able to match a HTML tag in a given string. The string could be like this [CODE]<a href = "http://learnmore.com">Learn </a>. [/CODE]I have a replace function that replaces the HTML tag with whitespace when I hard code the tag, but I want a regex pattern that …

Member Avatar for raghujosh
0
178
Member Avatar for raghujosh

I want to create a simple 2 frame page in which the left bar will have links to the content on the right. If I click Frame A, the right fluid content will change to frame A, but the left menu will be fixed. This is the code in HTML. …

Member Avatar for raghujosh
0
123
Member Avatar for raghujosh

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> …

Member Avatar for Airshow
0
1K
Member Avatar for raghujosh

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 …

0
56
Member Avatar for raghujosh

How can I set the value of a textbox to the user entered value(it's a number). [ICODE]<input type = "text" name = "somename" value = "">[/ICODE] User enters 3 in the textbox The code should transform to [ICODE]<input type = "text" name = "somename" value = "3">[/ICODE]

Member Avatar for twiss
0
103
Member Avatar for raghujosh

I have a dropdown box which should display an appropriate text box only when a particualar option is selected. Currently, the textboxes are displayed all the time. I do have a Javascript function that works for 2 options(hides always and displays only when the correct option is selected). But I …

Member Avatar for twiss
0
193
Member Avatar for raghujosh

I have a string [CODE]$var1 = colors<select><option value = 'blue'></option></select>[/CODE] I can get the value colors as a string with this statement [CODE]$needle1 = "<select>"; $result_string1 = substr("$var1",0,strpos($var1,$needle1));[/CODE] [CODE]echo "$result_string1";[/CODE] will give me [CODE]colors. [/CODE] Then I want to get everything between <select> and </select> so I use the following …

Member Avatar for twiss
0
436
Member Avatar for raghujosh

I have a string "<select><option value = 'LB1'></option></select>" What I want to do is replace only the <select> with <select name = "somename">. Currently, i have a preg_replace statement that replaces the </select> statement also. How can I prevent this. My current code is $string = "<select><option value = 'LB1'></option></select>" …

Member Avatar for diafol
0
212
Member Avatar for raghujosh

I need a string appended to a variable. [CODE]$name = "app200.php"; $string = <form name = "$name" method = "post"> echo "$string";[/CODE] The result I need is [CODE]<form name = [B]"app200.php"[/B] method = "post">[/CODE] But I am not able to echo the string this way. Any help. Thanks

Member Avatar for raghujosh
0
151
Member Avatar for raghujosh

I have a string [B]$initial_string = "<input type = 'checkbox' name = 'cb[]' value = '[a-zA-Z]'>"[/B] In this I want to [B]match the letters 'cb'[/B] and [B]replace it with '1cb'[/B]. The final string should look like this [B]$final_string = "<input type = 'checkbox' name = '1cb[]' value = '[a-zA-Z]'>"[/B] My …

Member Avatar for raghujosh
0
130
Member Avatar for raghujosh

I am doing a preg_replace on a string and the replacement contains a count variable that needs to be placed inbetween the pattern. But I am having difficulty doing that as the count is taken as a pattern and not as a count variable. Here is my code. $count = …

Member Avatar for vibhaJ
0
122
Member Avatar for raghujosh

How can we establish an or condition in a regex pattern. I would like to match the following in a string ">" OR "/>". How can I do that using regex?

Member Avatar for vibhaJ
0
82
Member Avatar for raghujosh

I have a Javascript function that allows the display of a textbox upon selecting an option from a dropdown menu. In my case when a user selects listbox as the option, the text box appears. I want the same thing to happen when another option (checkbox) is selected. when I …

Member Avatar for raghujosh
0
6K
Member Avatar for raghujosh

I have a page on which I have 2 dropdowns. Both are similar. I have a piece of code that whill make a textbox appear if we select "list Box" as the option in the drop down. But for some reason, the first dropdown works fine, but for the second …

Member Avatar for raghujosh
0
2K
Member Avatar for raghujosh

I am trying to print a label and a textbox together in a HTML file that I am trying to write using fopen, fputs in PHP. For some reason the output is just a text box and not the label along with the textbox. This is the piece of code …

Member Avatar for ko ko
0
397
Member Avatar for raghujosh

Is it possible to read array variables one by one in a numeric array in PHP? I have an array that I need to read each element and depending on the element, do something else. But I am finding that there are no functions to read each element of a …

Member Avatar for diafol
0
95
Member Avatar for raghujosh

Are dynamic insert statements possible in MySQL. I am creating an application that generates a database driven web application with minimal human intervention. Briefly, a user is allowed to build an HTML form(by adding HTML form elements) on a web portal and then he/she submits the form. Once the form …

Member Avatar for smantscheff
0
1K
Member Avatar for raghujosh

I have an HTML page(PAGE 1) that allows a user to select an HTML form element, and get it displayed on the next page(PAGE 2) when the user clicks "next". What I want to do is on the display page(PAGE 2), be able to display the newly created HTML form …

0
64
Member Avatar for raghujosh

I want to pass the checkbox values from my form to another PHP file upon clicking the next hyperlink. But I am unable to do so. I have javascript in my form which checks that only one checkbox is selected. To use this javascript, I need to name all my …

Member Avatar for raghujosh
0
1K
Member Avatar for raghujosh

I have a simple login module wherein I enter login info to a database. After that, I use another file, loginauth.php which validates the login info. However, I am getting the else statement executed. Can somebody point out what's wrong. [CODE]<?php session_start(); if (isset($_POST['userid']) && isset($_POST['password'])) { $userid = trim($_POST['userid']); …

Member Avatar for raghujosh
0
119
Member Avatar for raghujosh

I am developing an application wherein I have a JSP page with clickable links to all the 26 alphabets. In my database, I have data starting with all the alphabets. The way, I have(want to) structure the application is something like this. I click a alphabetical link, say A, it …

Member Avatar for raghujosh
0
294
Member Avatar for raghujosh

I want to get the list of items from a database as a Java resultset. When I use the following SQL statement it works perfectly fine [CODE]SELECT First_Name FROM dbo.Names where First_Name LIKE 'A%';[/CODE] However when I pass it as a parameter, it does not work I have tried a …

Member Avatar for raghujosh
0
142
Member Avatar for raghujosh

I am developing a form(PHP) that will accept some data. The data will be displayed on a web page. However, before it is displayed, a moderator of the site has to grant permission to display the data. The way it works 1) A user logins to the site and enters …

Member Avatar for vaibhav1983
0
99
Member Avatar for raghujosh

I have about 500 items in a database (MS SQL server 2008). These individual items have some other properties stored as tables. I am trying to display these items as html links on either a JSP/HTML page. I have a page with alphabets A....Z which are html links in themselves. …

Member Avatar for raghujosh
0
141
Member Avatar for raghujosh

Can somebody pls explain me this error that I am getting when I try to run my web application on Tomcat. java.lang.NullPointerException business.Cart.addItem(Cart.java:27) cart.CartServlet.doGet(CartServlet.java:49) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) The code for the Cart.java is [CODE]package business; import java.io.Serializable; import java.util.ArrayList; public class Cart implements Serializable { private ArrayList<LineItem> items; public Cart() { …

Member Avatar for masijade
0
80
Member Avatar for raghujosh

I need to implement a recordset navigation bar(preferably as an arrow graphic) to scroll through a recordset from a database. I tried searching on the web, but I did not find any HTML/JavaScript to do the same. I found a lot of material to implement it in Dreamweaver. I dont …

0
60
Member Avatar for raghujosh

I have a JSP( a form) that calls a servlet when I click the submit button. I want to add javascript validation to the form fields. When I try to embed the script it does not run. I tried to link the file to the JSP, but that also did …

Member Avatar for javaAddict
0
2K
Member Avatar for raghujosh

Environmental Variable: System variable(both) 1. A new GRAILS_HOME variable installed pointing to the Grails folder. 2.PATH: C:\Grails\bin appended . However I get an error message sayings grails is not a recognized command. I am a new to grails. The documentation says its very simple and I have tried different ways …

Member Avatar for raghujosh
0
389
Member Avatar for raghujosh

I am trying to deploy a simple web application. I only have 2 files, Entry.html and UpdateDBServlet. I have placed them under a directory in the webapps of tomcat. I can access the entry.html when Tomcat is running, but upon pressing the submit button, the UpdateDBServlet should be called, however, …

Member Avatar for raghujosh
0
188
Member Avatar for raghujosh

I am trying to connect from Eclipse to a database in SQL server 2008. However, i am unable to and the following error message is thrown(see attached image). Can somebody help?

Member Avatar for raghujosh
0
359
Member Avatar for raghujosh

I am trying to connect to a SQL server 2008 database from within Eclipse. My SQL server uses integrated authentication for login. Eclipse prompts for integrated authentication , but it is unable to login. I get an error message as "This driver is not configured for Integrated authentication". The sqljdbc_auth.dll …

Member Avatar for raghujosh
0
434
Member Avatar for Ndoom

Hi, I was looking more towards learning and thus interacting regarding JAVA. Currently, I am working towards it. While I can follow the group on PHP and MySQL, my current interests are in JAVA. Any body interested in JAVA? Thanks Raghu

Member Avatar for popin
0
453
Member Avatar for raghujosh

I am trying to connect to SQL SERVER 2008 using a JDBC connection. I have read some older posts on this topic(SQL server 2000, SQL server 2005) and I feel there may be some minor variations and so am posting on this forum. I am running win XP with SP …

Member Avatar for raghujosh
0
495

The End.