No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, I've not worked in C, C++ from like 5-6 years. But now I got to do a very small change (explained below). I tried reading tutorials but only got confused. Below I've struct containing 2 attributes. I need to create its refrence and pass values to these 2 attributtes. … | |
Using Ajax after an year...please tell me what I'm missing: JSP/Ajax File: [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> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <script type="text/javascript"> function login() { var xmlhttp; var username = document.getElementById('username').value; var queryString = "username="+username; … | |
I have an ArrayList containing folder name which contains songs: private ArrayList<String> searchableDir = new ArrayList<String>(); searchableDir.add("/mnt/sdcard/Tracks/U2/"); searchableDir.add("/mnt/sdcard/Tracks/Coldplay/"); Now I want to run a managed query that will fetch songs from both these folders. Currently I'm only able to fetch one folder at a time: String abc = "/mnt/sdcard/Tracks/U2/"; cursor … | |
Hi, please look the following code and help me solve the question I mentioned in Comment([B]Line number 85[/B]) below: [CODE]import java.io.InputStream; import java.util.HashMap; import java.util.Map; import org.jacoco.core.analysis.Analyzer; import org.jacoco.core.analysis.CoverageBuilder; import org.jacoco.core.analysis.IClassCoverage; import org.jacoco.core.analysis.ICounter; import org.jacoco.core.data.ExecutionDataStore; import org.jacoco.core.instr.Instrumenter; import org.jacoco.core.runtime.IRuntime; import org.jacoco.core.runtime.LoggerRuntime; public class TestClass { public static class TrgClass { … | |
Hi, I simply want to append a string at the end of another string. But instead, it is replacing in the beginning. [CODE]#!/bin/bash str1="/user/test" echo $str1 echo ${str1}/program[/CODE] I tried other techniques too but same result | |
Hello, I want to fetch the rest of the XML stored inside SOAP body, but with the below simple code, I'm not able to: [CODE]public class AttributeScanner { protected String getEnvOject(InputStream iStream) throws Exception { String xml = null; // First create the connection SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance(); SOAPConnection connection … | |
Hi, I want to change color of a <div> element after some delay: For. e.g: Initially div is in Orange Color. Then onClick it will become White then after half second delay, it will become Black. But it is not working. It becomes black on the first click & White … | |
Hi, I have a string which contains XML. I want to remove its first line and save it back to String. How can I do that? Thanks | |
Hi, I am using jax-b for XML binding. Just wanted to ask is there any other API, that is better than jax-b. Like it can create XML elements in the form of hashmap or something? Thank You | |
Hi, I have an XML, I need to create 2 classes: 1. For converting XML into XSD for getting its node objects. 2. For fetching values in each node. I have to use JAX-B for this but I don't know the steps. Please suggest some procedure or decent tutorials I … | |
Hello, I'm not able to access jar files from servlet. Although I have imported all the class file and made the jar file available in build path. [CODE] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); cmd = request.getParameter("cmd"); System.out.println(cmd); String output = runCommand(cmd); … | |
Hi, I want to transfer files between 2 servers. But Not able to find any decent tutorials. Please suggest some. If there's any api...then much better. Thank You | |
I tired of solving this problem but believe I'm missing something. I'm not receiving values from request.getParameterValues of "mmsTitleAdded" Here is the process I'm using: This <tr> contains the MMSCategory list and onChange a javascript function is called which gets the the list of all the mmsTitles of that category: … | |
How to fetch duration [length] of an audio file? | |
I'm having trouble with nodeValue property. No matter what..it gives me value null. All other propeties are executing fine. XML file: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <details> <player> <name>MSchu</name> <poles>91</poles> </player> <player> <name>Alonso</name> <poles>25</poles> </player> </details>[/CODE] And I'm running this code: [CODE]<html> <head> <script> function loadXMLDoc(){ if (window.XMLHttpRequest){ xhttp=new XMLHttpRequest(); } else{ … | |
I want to change text font in an SMIL file. How can i do that, any suggestions? | |
Is there any free migration tool for mySQL to Oracle ? | |
I want to export some of the records of a table to a file in Linux. Is there any command for this? | |
In the code below I've to use Pre-built DatabaseManager which has limited exposed functions. Now I want to fetch resultset of query that gives country names. [CODE] DatabaseManager dbhandler = new DatabaseManager(); String query = "Select country_names from Country_Table;"; Vector vResult = dbHandler.getResult(query); //getResult returns Vector [/CODE] How can I … | |
How to implement XML-RPC client in php that sends request to some XML-RPC server? Thank You | |
I want to call a jsp form my PHP code. I caqme across that it can be done using XML-RPC. Is it possible & where I can find any tutorials for this? Thank You | |
The only difference is that the 2nd is written within a function and returns instead of echo. What is the problem? [code=php] <?php jcarousel_add('tango'); drupal_add_js ( '$(document).ready(function(){ $("#carousel-cars").jcarousel(); } ); ', 'inline' ); echo getcwd(); echo "<div id=\"carousel-cars-horiz\">"; echo "<ul id=\"carousel-cars\" class=\"jcarousel-skin-tango\">"; $pic = NULL; $url = "./sites/all/modules/img/Images/"; $handle = … | |
In PHP, how can I print the list of directories and their sub-directories? Files should not be printed. | |
In the cose below I am fetching & displaying result set in a table format. This table also contains 2 buttons Udate & Delete. Following are the issues: 1. When user clicks update, I want to send E_ID to Update.jsp. I want to know, how to send Only E_ID without … | |
I want to create a module that fetches images from directories and display it under the heading of directory_name. For this purpose which CMS is better.... Drupal, Wordpress or joomla..or something else? Thank You | |
Where I can find nice & easy step by step tutorials for drupal? Thank You | |
How to install & run drupal on tomcat 5.5? Thank You | |
Although calender is displaying properly, when I comment mycal.hide(). But it is not working on button click. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>YUI Calender</title> <link rel="stylesheet" type="text/css" href="build/calendar/assets/skins/sam/calendar-skin.css" /> <script type="text/javascript" src="build/yahoo-dom-event/yahoo-dom-event.js"></script> <script type="text/javascript" src="build/calendar/calendar-min.js"></script> <script type="text/javascript"> YAHOO.namespace("yuibook.calendar"); … | |
I have an HTML/JSP page on which I have to display all the images stored in a folder. For this I have to use Java. Please tell me how this can be done. Will appreciate if it is possible to provide code for explanation. Thank You | |
In the code below, I am using QueryString to check the variable status. If it is 'success' then it should display "deletion successful". I am passing url = [url]http://localhost:9999/EmModule/EmpForm.jsp?status=success[/url] But, it is not displaying any alert. Note: I am using JSP page, and am rookie in it. Thank You [CODE]<html> … |