|
hi,
i'm in a trouble to download formview/Gridview as PDF. ie; i have a formview, which is filled with data including unicode & image. when i click a button, the formview should download as pdf. can any one help me to sortout this.
i tried iTextsharp, Pdfclown, etc.. But it will download only Enlgish, not unicode & images.
imp: i want to download the Entire Formview
its urgent my dear. please help me.
Thanks in advance.
|
|
|
|
|
Industry standards and innovation took center stage at MIX10, including Internet Explorer 9 Platform Preview that includes expanded support for HTML5, hardware-accelerated graphics and text, and a new JavaScript engine.
You can get Internet Explorer 9 Platform Preview to evaluate code refreshes about every eight weeks leading up to the beta release. Developers can download the Internet Explorer 9 Platform Preview [^].
More details at Internet Explorer 9 Test Drive Ready for Developers[^]
|
|
|
|
|
Thank you
I like FireFox
|
|
|
|
|
Hi All,
If I were to explain in one line to someone why there was a need to evolve from object oriented
and come up with Component based architecture and then why there was a need to evolve further
and come up with service oriented architecture what would it be?
Technically, CBSE exposes class and SOE exposes schemas and contracts ... not that ... I need
one defining need on why we had to evolve, what would it be?
In one book I read, that SOE was to seperate frequently changing functionality from not frequently
changing functionality, remove tight coupling ... but they in my opinion
can be observed in CBSE also!!!
Regards,
NetQuestions
|
|
|
|
|
Hi.
In lack of better examples, I´ve found this javascript example which shows and hides content in a sliding way. Exactly what need.
You can see the example here:
http://www.dhtmlgoodies.com/index.html?whichScript=show_hide_content_slide
And the demo here:
http://www.dhtmlgoodies.com/scripts/show-hide-content-slide/show-hide-content-slide.html
Problem is, because of my text and image layout, I want the hide/reveal text to be in a dedicated cell.
But this example (and all the other examples I´ve found) only works when its in the same cell.
How do i fix this?
Thanks alot!
|
|
|
|
|
|
I prefer 'Spry' JavaScript By Adobe Dreamweaver .. that'll avoid u falling in problems
good luck ..
|
|
|
|
|
Thanks alot, it works 
|
|
|
|
|
Manually implement the stuff that the initShowHideDivs function does. Rather than dynamically having it change the IDs, set the IDs from the outset. Instead of dynamically adding the onclick event, put it in the question divs from the start.
|
|
|
|
|
Hi all,
I have been trying to find this out for 4 days straight, doing all types of research and yet I cannot find it, although it seems like one of the most fundamental things I can think of. I am new to jsps and servlets but not new to java, so please be patient with me
_____________________________________________________
SCENARIO:
1) I have an index.jsp page with a form with 1 field for the user to fill up.
2) I have a bean which I am trying to fill up from the index page itself.
3) I have a servlet that handles the request
_____________________________________________________
INDEX PAGE:
<%@ page import="com.java2s.*"%>
<html>
<body>
<jsp:useBean id="bean" class="com.java2s.bean" scope="session"/>
<jsp:setProperty name="bean" property="*"/>
<FORM METHOD=POST ACTION="MyServlet">
What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
<P><INPUT TYPE=SUBMIT>
</FORM>
</body>
</html>
_____________________________________________________
BEAN:
package com.java2s;
public class bean {
String username;
public void setUsername( String value )
{
username = value;
}
public String getUsername()
{
return username;
}
}
_____________________________________________________
SERVLET:
package com.java2s;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class MyServlet extends HttpServlet {
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
HttpSession session = request.getSession(true);
bean myBean = (bean)session.getAttribute("bean");
if (myBean == null)
{
myBean = new bean();
myBean.setUsername("FAILED");
}
request.setAttribute("bean", myBean);
request.getRequestDispatcher("test.jsp").forward(request, response);
}
}
____________________________________________________
PROBLEM:
I get the bean in the servlet, that is to say:
bean myBean = (bean)session.getAttribute("bean"); actually returns an object and not null, thats not a problem.
The problem is that the username field is null. I have tried it with radio buttons and numerous other fields and they have all returned null.
If anybody please could help me it would be great. I highly appreciate any time you spend helping me out.
Thanks,
James
|
|
|
|
|
Your code is different in my code...
I cant figure out whats the error in that but
If you want to fill a bean heres some simple codes...
JSP
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!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=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="myServlet" method="post">
<input type="text" name="name"/>
<input type="submit"/>
</form>
</body>
</html>
Servlet
package samplePack;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class myServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public myServlet() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
myBean bean = new myBean(request.getParameter("name"));
System.out.println(bean.getName());
}
}
BEAN
package samplePack;
public class myBean {
private String name = null;
public myBean(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
hope this help...
modified on Monday, April 5, 2010 10:54 PM
|
|
|
|
|
I'm a beginner in JSF and I have a sample program made (login and phonebook)
but I'm stock in Session Management can someone please help me...
Thanks...
modified on Monday, April 5, 2010 10:30 PM
|
|
|
|
|
Hi Guys how are u ?
i've a problem with PHP
infact iam new with this Cool lang.
anyway my problem is .. how can i share a variable with multipages
i mean if i made script depent on form just like
it's just a simple
so my question that if i go to myphp.php and put another form code just like up one i'll lose the value of $_POST['mail']
so how can i save it in another variable in another page or wherever ..
please help me 
|
|
|
|
|
The simplest way is to store it in the session.
Take a look at the sessions section[^] of the PHP manual. There are plenty of examples there to look at.
|
|
|
|
|
Thank u so much ..
that'll solve the problem .. i didn't try cookie 
|
|
|
|
|
Hi All,
I am confused.
I understand that WCF is about unifying technologies...
what i do not uderstand is when it is about inter appplication communication, what is it that WCF provides that webs service + WSE 3.0 does not provide?
Remoting is primarily talked about while splitting business and presenation of one application ...
and not talked about when it is application to application communication.
I do not understand how WCF help implement remoting. Is it that WCF supports inter application communication based on TCP protocol and hence we say it "unifies remoting". In remoting we have to
register a type after registering a channel. In WCF do we not want a type like abcd.rem at the
server and client ends?
Regards,
NetQuestionsmodified on Monday, March 15, 2010 3:42 AM
|
|
|
|
|
Hi,
to make it short: WCF contains the options of web services but also more. WCF is the unification of all (microsoft) distributed technologies . It is not tied to use the TCP protocol. E.g. you can use the MSMQ for transport or a self-defined way.
I suggest reading this article:
http://msdn.microsoft.com/en-us/library/ms731082.aspx[^]
If you think of WCF as a kind of protocol stack (like ISO/OSI), then there is the transport layer (MSMQ, TCP/IP or carrier pigeons), above would be a security layer, followed the layer defining the data that should be send and so on.
Hope this helps you a bit.
Regards
Sebastian
|
|
|
|
|
Hi,
Component oriented is about sharing class, registering types and invoking method using object reference.
Service oriented architecture exposes methods using contracts and schemas and policies.
But what I do not understand when I read that SOA helps in improving scalability.
Just by changing type from component to Service oriented, how is scalability improved.
Even in component oriented architecture, i can leverage resource management services offered by COM+ to
get hold of object pooling and JIT activation, which helps in handling more requests.
Regards,
NetQuestions
|
|
|
|
|
Have you ever tried to use COM+ services between different locations across a WAN?
|
|
|
|
|
Hi,
Probably I am trying to understand remoting and web service before properly understanding Component Based
Architecture and Service Oritented Architecture.
gray, could you help me with a link where I can understand the difference.
If you were to tell someone why there was a need to evolve and create Component based architecture
and then why there was a need to evolve and create service oriented architecture what would it be?
Regards,
NetQuestionsmodified on Wednesday, March 17, 2010 10:01 AM
|
|
|
|
|
If you have never implemented any of these things it is difficult to explain to you in terms that you would understand. There is no way you are going to get a good in depth understanding of the concepts from reading forums posts. A search for SOA on Amazon comes back with over 1500 books. Try readng some of those.
It sounds like you are taking an online course and just giving us your test questions.
|
|
|
|
|
Gray,
i have read the book meant for MCTS exam ...
(book name is .NET Framework 2.0 distributed Application Developement)
... i am not preparing for the exam.
Although this book helped me implement simple programs on .Net Remoting,
web service, MSMQ, serviced components and me aware of options in
distributed technology, it does not talk about reasons on why we
needed methodologies like CBSE and SOA and why we needed new technologies.
That aroused my curiousness ... browsing net is not helping me understand my questions.
... I am planning to become a trainer.
Is there a specific book you can recommend. Will appreciate that.
Regards,
NetQuestions
|
|
|
|
|
Many people would be upset to learn that the person training them in something had no practical experience with the topic of the training.
Start with the Wikipedia article on SOA, plus all of the items in the external links and references sections of that article. If after all of that you can't answer the series of questions you have asked here regarding SOA methodlogy then you may need to find a different topic to train.
|
|
|
|
|
thanks gray.
Let me try wiki.
regards,
Netquestions
|
|
|
|
|
Hi,
I am developing the webpage using jsp. There is a table in the page in which rows are added dynamically. each row contains multiple textboxes in different column. The first column's textbox requires the aucomplete facility.
The scenario is rows are added dynamically. There is only one row when page loads. I downloaded the code from this site which is working perfactly fine for the one textbox. if I add the same functionality to another textbox (created dynamically) it fails.
Can you please help me in resolving this issue?
Thanks,
Hemant
|
|
|
|