rutvi gen

Greenhorn
+ Follow
since Jun 20, 2008
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rutvi gen

thanks for help.

but can you tell me with more description or can give example to how to do it.
Hello Friends.

I want to create and display tree of the html element(made up of Html file - you can consider html source). Like Fire-bugger in Mozzila-fire fox
Means in right side panel HTMl page will be there and left side tree would be there containing html elements. When i extract tree and select any html element then it should highlight the element in the right side panel of displayed html page.

Any idea?

Thanks in advance.
Hi,
I want to convert Binary data in to Image file.
Actually, i have converted an image file to binary data and send it to a server.and that is my custom server and from here i need to send image to web server.
and from custom server to image server i have to send image File rather than binary data.
so, is it possible to convert BINARY DATA in to IMAGE FILE?

If yes then please tell how and if possible then sample code.


thanks
10 years ago
hi,
i am new to Mobile Application. i want to create an application in eclipse ide from that i can upload photo from my mobile to any site in java tech.
I have download the flickr api for it but i dont know how to use it.
Please help me as soon as possible.


thank you in advance
10 years ago
hello,
I need to generate basic UML Diagram in my project as per client requirement. but i do not know how to implement that. It should be like a report.
I am using NetBeans 6.0 as my IDE. Please give me reply as soon as possible.


Thanks in Advance.
[ September 04, 2008: Message edited by: rutvi gen ]
hi,
i am developing an EJB appication in NetBeans 6.0. i want to use sun java system application server to deploy. but when i am adding the sun java system application server, i am facing error like

"Instance[c:\Program Files\glassfish-v2]deployer:Sun:AppServer::localhost:4848 already registered"

and also i dont know what to set in Platform Folder Location category.

Thank you in advance.
Hi all,


PROBLEM-
I am downloading an image from URL and writing it to local disk drive. Now at the time of input stream i am having an Exception like -


I am using netBeans 6.0 and i have set System Proxy Setting inside it. as well to run this code successfully i have turned off my pc's firewall.

Thanks in advance
Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection( "jdbc:mysql://192.168.4.29:3306/pts?","root","root");
PreparedStatement pst = conn.prepareStatement("SELECT image FROM image WHERE devID = ?");
pst.setString(1, "dv11");
ResultSet rs = pst.executeQuery();
if(rs.next()) {
byte[] bytearray = new byte[1048576];
int size=0;
InputStream sImage;
sImage = rs.getBinaryStream(1);
response.reset();
response.setContentType("image/jpeg");
response.addHeader("Content-Disposition","filename=logo.jpg");
while((size=sImage.read(bytearray))!= -1 )
{
%>
<table border="1">
<tr>
<td width="100" height="100">
<%
response.getOutputStream().write(bytearray,0,size);
%>
</td>
</tr>
</table>
<%
10 years ago
JSP
Hi all.

My problem is like this- I am storing image in MySQL database and now i have to retrieve those image on my JSP page. I am able to retrieve those image on JSP page but the problem is that i cant fix those size. Image is being retrieved in their original format only. Can anyone tell me how can i put them in fixed format???

Thanks in advance.
10 years ago
JSP
hi all,
i am new in mobile applications. i want to make a mobile dictionary. so can any one help and tell how mobile applications works and which tool is best to make it.
thanks all in advance.
10 years ago
hi,
i have create a Tag Library File that generate checklist box. and this file i m using in jsp page.
the data in checklist box is coming from one of my database table.
now the problem is i m getting just five row from table. and i want all the data present in table.

my coding of tld file is as below,
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

<taglib>
<tlibversion>1.2</tlibversion>
<jspversion>1.1</jspversion>
<shortname>customlist</shortname>
<uri>http://www.servletsuite.com/servlets/customlisttag</uri>
<info>Custom list box taglib</info>

<tag>
<name>customlist</name>
<tagclass>com.cj.customlist.CustomListTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>ouputs a custom listbox</info>

<attribute>
<name>width</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>height</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>background</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>borderWidth</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>borderColor</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>className</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

</tag>

<tag>
<name>element</name>
<tagclass>com.cj.customlist.ElementTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>ouputs an element</info>

<attribute>
<name>className</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>

</taglib>


my coding of jsp page is,


<body>
<cl:customlist width="180px" height="1000px">
<% try {
String userName = "root";
String password = "root";
String url = "jdbc:mysql://192.168.4.29:3306/pts";
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection(url, userName, password);
System.out.println("Database connection established");
st = conn.createStatement();
ResultSet rs = st.executeQuery("select distinct(technology) from technology");
while (rs.next())
{
System.out.println(rs.getString(1));

%>
<cl:element><input type="checkbox" name=" <%=rs.getString(1)%>"><%=rs.getString(1)%></cl:element>
<%
}

} catch (Exception e1) {
System.err.println("Cannot connect to database server" + e1.getMessage());
} finally {
rs = null;
}
%>

</cl:customlist>

</body>
can anyone help???
thanks in advance.........
10 years ago
JSP