Bitan Biswas

Greenhorn
+ Follow
since Aug 05, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Bitan Biswas

I didn't understand your question but I can able to display all the visible items in a url like an image. Just now I applied some styles to the input boxes and the boxes get displayed but the text inside the box is still invisible. Can anybody help me. You can check the attached pdf output of a demo url.
I have a working code which is generating PDF from URL. Now in that url, there are some input box, radio box and check box. those are not getting displayed.

Here is the code


Now I just want to know is there any solution for my question within iText and flying saucer API..? Thanks in advance.
yes, i have data type for list. but it is capable for java primitives only.. not for java objects. i have already tried that.
I'm defining a xml schema to generate a wsdl. for that i need to create such a schema which should be similar to a java class.

My java class is

public class GetDesignationResponse {

private List<Designation> designation;

public List<Designation> getDesignation() {
return designation;
}

public void setDesignation(List<Designation> designation) {
this.designation = designation;
}
}



public class Designation {

private int desigId;
private String desigName;

// getters setters
}

my xml schema file is something like


<xs:element name="desigId" type="xs:int" />
<xs:element name="desigName" type="xs:string" />

<xs:element name="designation" tns:minOccurs="0" tns:maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="tns:desigId" />
<xs:element ref="tns:desigName" />
</xs:sequence>
</xs:complexType>
</xs:element>

<xs:element name="getDesignationResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="tns:designation" />
</xs:sequence>
</xs:complexType>
</xs:element>

but when i generating the java file by "wsimport" from wsdl,
the GetDesignationResponse java file is not having the List<Designation> property rather Desingation property.

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"designation"
})
@XmlRootElement(name = "getDesignationResponse")
public class GetDesignationResponse {

@XmlElement(required = true)
protected Designation designation; // i want this to be like ---> protected List<Designation> designation;


public Designation getDesignation() {
return designation;
}

public void setDesignation(Designation value) {
this.designation = value;
}
}


can anybody tell me how to declare schema in xml similar to List<Object>?
Yes, I am using tomcat 7.
in localhost the project is running under http://localhost:8084/example link for example.war.
5 years ago
Need Some Guide here,

I have a java enable domain (suppose www.example.com) and I have uploaded a .war file in this domain ( suppose example.war), So the web application is executing in www.example.com/example link. Now my question is, is it possible to execute the web application in only www.example.com link?
5 years ago
In my Java Web Application, I need to dynamically create directories and upload files. For that I need the Real Path of the container. I use the following code



these two are working fine when i ran the application in localhost. it returns /home/xen/NetBeansProject/WebApp

but when I upload the project as a war file in my Internet server, it is not working. every times it return null.

Can you give me any suggestion regarding this?? Thank You.
5 years ago
JSP
but i need dynamic page. i have to establish jdbc in jsp pages.
furthermore i create a java file in the same project folder. I complied and run successfully. I'm totally confused.. please help me.
the code for java file is


import java.sql.*;
public class db2conn {

public static void main(String[] args) {
try{
Class.forName("com.ibm.db2.jcc.DB2Driver");
Connection c = DriverManager.getConnection("jdbc:db2:OCM","","");
System.out.println("Connected "+c);
Statement s = c.createStatement();
System.out.println(s);
ResultSet rs = s.executeQuery("select * from PACK1.TEST1");
System.out.println(rs);
while(rs.next()){
System.out.println(rs.getString(1));
System.out.println(rs.getString(2));
System.out.println(rs.getString(3));
System.out.println(rs.getString(4));
}
}
catch(Exception e){
System.out.println(e);
}

}
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>test3</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Software Architect">
</head>
<body>
<%
try{
Class.forName("com.ibm.db2.jcc.DB2Driver");
}
catch(Exception e){
out.println(e);
}
%>
</body>
</html>



I added "db2jcc_license_cu.jar" and "db2jcc.jar" in project library but it still throwing java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver
What should be the problem here?
i need to submit a <form> from a jsp page when time is over. i have a countdown timer with java. when the timer goes to 00:00, submit <form> to a servlet.
please help me giving by a code.