Java Printing in web application

hi All,
Hi All,
we are developing a web application using struts,in one of the page the leave reports of the employee is displayed , the client requirement is the client should be able to print the displayed document, using javascript i can print the document but i wanted to use a separate applet to print the report document, so when i click a button named print in the report page a new applet should open containing the report page and i should be able to print from that applet.
Any help on this regard is highly appreciated
Thanks & Regards,
Sasikumar Sugumar

hai dude,
hope every thing going fine .
Even i'am developing an web application in which i used to print the generated reports. i tried a lot but the struck up with some error.
i'am even able to open the print dialog box.
u have written that u are able to print a PDF doc using the java script.
If u don't mind, can u send me the code to print a PDF.
Thanks in advance

Similar Messages

  • Best combination of technologies for Java db-supported web application?

    Hi everyone!
    I was given the task to develop a Java database-supported web application and am now wondering what combination of technologies would best fit my requirements.
    Basically, I am supposed to transform an "Excel-based" application into a Java-based web application that can be run in a browser in our intranet (I know, that's what a web application is supposed to do).
    The Excel application consist of an Excel sheet that holds all the data and a VBA form, that shows and lets you edit all the details/fields of a row and lets you navigate through the rows. Furthermore there are certain macros to filter the data table.
    Now, to transform the application, all data from Excel will be moved to an Oracle relational database and I want to rebuild the functionality with Java.
    Consequently, the Java application is intended to...
    - output the table as is in the browser
    - easily let you filter the data of the table
    - let you create (and save) custom filters
    - show detail view of a row
    - navigate through the rows of the (filtered) table
    - save the data that is entered/edited/deleted in the detail view back to the table in the database
    So, what are the best (and easiest to use) tools and technologies to develop such an application?
    Currently my reasearch has led me to the following conclusions:
    *1.* Architecture: I need a three-tier client-server application, which lead us to using the J2EE platform, right?
    *2.* For the persistence layer I somehow have to map the database table to a Java object,
    - either doing it completely manually (coding) using JDBC
    - or using EJB3 / Java Persistence API / Hibernate to get at least the getters and setters auto-generated, right?
    Please, correct me whenever i got something wrong!
    Oracle JDeveloper supports the mapping process with a wizard when using EJB3 and JPA
    (http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm)
    Is there something comparable available for Eclipse?
    *3.* I'd like to use Java Server Faces for the UI. Besides the reference implementation there are several other implementations with additional components for e.g. displaying tables. There are:
    - Apache MyFaces Trinidad (former ADF Faces, although ADF Faces looks different/has different style sheet than Trinidad?)
    - NetBeans Visual Web tools (which look quite nice in the tutorial, but require the NetBeans IDE, I guess?! Tutorial: http://www.netbeans.org/kb/60/web/web-jpa.html
    *4.* What IDE would you recommend? Should have a WYSIWYG editor for the JSF files and should support me as much as possible as a Java Learner!
    - JDeveloper
    - Eclipse (+Plugins?)
    - NetBeans
    - MyEclipse (only if there is a free version out there, I have read about an Eclipse plug-in, but don't know if that was free...)
    *5.* Do you know some good and easy-to-understand tutorials covering this problem?
    *6.* What other aspects should I think of? Are there certain technologies for the business logic or just normal JavaBeans? What about SessionBeans and ManagedBeans?
    Any help, answers, ideas, explanations, comments, recommendations, will be highly appreciated!
    Cheers,
    Chris

    Thanks paulcw, for your quick reply and helpful comments!
    The whole thing is getting bigger than I thought...
    Actually this is a 1-man-project, that I am supposed to realise for small department during my internship in a big company.
    Maybe a more detailed description of the structure may help you to understand what I actually need.
    The table of concern, is an overview of certain projects inside the company and read-only, as it is a view on another database uniting data relevant for the department.
    Then there is a second table for additional data (specific for the department) for each project. This data has to be entered, modified, deleted with the new application, while the data from the first table is only displayed.
    1) In this case, is AJAX / JavaScript still necessarily needed?
    2) EJB and Hibernate sound like overkill to me as well, but what would be the alternatives? JDBC, SQL queries and rowSets? And are the first mentioned really so hard to use?
    3) Do you have any recommendations on how to solve the multiple access problem (I'm sure, I'm not the only one with this kind of problem...)?
    Thanks to everyone in advance!
    Chris

  • Using the Model Facade Pattern in a Java EE 5 Web application

    Hi,
    Yutaka and I did a Tech tip
    http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html#2 on using a model facade pattern in Java EE 5 web-only applications recently. We got some questions about it, and these were some of the questions raised...
    Question 1) the first part of the tech tip(it has two articles in it) http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html showed how to access Java Persistence objects directly from a JSF managed bean, is this a good practice?
    Question 2) when to use a facade(as mentioned in the second part of tech tip) ?
    and maybe
    Question 3) why doesn't the platform make this easier and provide the facade for you?
    Briefly, I will take a shot at answering these three questions
    Answer 1) You can access Java persistence directly from your managed beans, but as your application grows and you start to add more JSF managed beans or other web components(servlets, JSP pages etc) that also directly access Java Persistence objects, you will start to see that you are cutting/pasting similiar code to handle the transactions and to handle the Java Persistence EntityManager and other APIs in many places. So for larger applications, it is a good practice to introduce a model facade to centralize code and encapsulate teh details of the domain model management
    Answer 2) IAs mentioned in answer 1, its good to use a model facade when your application starts to grow. For simple cases a spearate model facade class may not be needed and having managed beans do some of the work is a fast way to jumpstart you application development. But a facade can help keep the code clean and easier to maintain as the aplication grows.
    Answer 3) First note that both of the articles in the tech tip were about pure web apps(not using any EJBs) and running on the Java EE5 platform. Yes it would be nice if a facility like this was made available for web-only applications(those not using EJBs). But for web-only applications you will need to use a hand-rolled facade as we outlined in the tech tip. The Java EE platform does provide a way to make implementing a facde easier though, and the solution for that is to use a Session Bean. This solution does require that you use ythe EJB container and have a Session Bean facade to access your Java Persistence objects and manage the transactions. The EJB Session Facade can do a lot of the work for you and you dont have to write code to manage the transactions or manage the EntityManager. This solution was not covered in this tech tip article but is covered in the Java BluePrints Solutions Catalog for Perssitence at
    https://blueprints.dev.java.net/bpcatalog/ee5/persistence/facade.html in the section "Strategy 2: Using a Session Bean Facade" . Maybe we can cover that in a future tech tip.
    Please ask anymore questions about the tech tip topic on this forum and we will try to answer.
    hth,
    Sean

    Hi Sean,
    I'm working on an implementation of the Model Facade pattern where you can possibly have many facades designed as services. Each service extends a basic POJO class which I'm calling CRUDService: its short code is provided below for your convenience.
    The CRUDService class is meant to generalize CRUD operations regardless of the type of the object being used. So the service can be called as follows, for example:
    Job flightAtt = new Job();
    SERVICE.create(flightAtt);
    Runway r = (Runway) SERVICE.read(Runway.class, 2);
    Employee e = (Employee) SERVICE.read(Employee.class, 4);
    SERVICE.update(e);
    SERVICE.delete(r);SERVICE is a Singleton, the only instance of some service class extending CRUDService. Such a class will always include other methods encapsulating named queries, so the client won't need to know anything about the persistence layer.
    Please notice that, in this scenario, DAOs aren't needed anymore as their role is now distributed among CRUDService and its subclasses.
    My questions, then:
    . Do you see any obvious pitfalls in what I've just described?
    . Do you think traditional DAOs should still be used under JPA?
    . It seems to me the Model Facade pattern isn't widely used because such a role can be fulfilled by frameworks like Spring... Would you agree?
    Thanks so much,
    Cristina Belderrain
    Sao Paulo, Brazil
    public class CRUDService {
        protected static final Logger LOGGER = Logger.
            getLogger(Logger.GLOBAL_LOGGER_NAME);
        protected EntityManager em;
        protected EntityTransaction tx;
        private enum TransactionType { CREATE, UPDATE, DELETE };
        protected CRUDService(String persistenceUnit) {
            em = Persistence.createEntityManagerFactory(persistenceUnit).
                createEntityManager();
            tx = em.getTransaction();
        public boolean create(Object obj) {
            return execTransaction(obj, TransactionType.CREATE);
        public Object read(Class type, Object id) {
            return em.find(type, id);
        public boolean update(Object obj) {
            return execTransaction(obj, TransactionType.UPDATE);
        public boolean delete(Object obj) {
            return execTransaction(obj, TransactionType.DELETE);
        private boolean execTransaction(Object obj, TransactionType txType) {
            try {
                tx.begin();
                if (txType.equals(TransactionType.CREATE))
                    em.persist(obj);
                else if (txType.equals(TransactionType.UPDATE))
                    em.merge(obj);
                else if (txType.equals(TransactionType.DELETE))
                    em.remove(obj);
                tx.commit();
            } finally {
                if (tx.isActive()) {
                    LOGGER.severe(txType + " FAILED: ROLLING BACK!");
                    tx.rollback();
                    return false;
                } else {
                    LOGGER.info(txType + " SUCCESSFUL.");
                    return true;
    }

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • JAVA Caching in Web Application

    Hi friends!!
    I am currently working on a web application using Servlets & Jsp. I hav to develop CACHE MANAGEMENT module for it!!!
    For this development restriction is i cannot use any External cache package(like JCS, Swarm Cache).
    So i hav to use the Cache class which comes with Java Software.(developed by sun)
    But i hav not found any such class.
    pLz tell me if anybody knows the Java class used in Object Caching!!!

    However, when the link is clicked second time then the request is not received by our servlet Impossible mate.. can you show your code. You sure there are no javascript errors ?
    Why dont you just remove your object from the session after displaying the data from it and see if your page "automatically" hits the servlet when the link is clicked.
    cheers..
    S

  • Java + Frameworks + Extendable Web Applications

    Hi all
    I was taking a look to:
    http://java.sun.com/developer/technicalArticles/javase/extensible/
    Because I have to do a very extensible web application that a lot of different customers will use.
    The main goal is to build a core system that will support a lot of modules around this core.
    I want to let my developers plug and unplug (install/uninstall) modules on the fly, maybe with a web interface to let the system cut any connections to the application.
    One of the requeriments is to let developers update one customer modules while the application is running. Of course the others customers should notice nothing or almost nothing.
    I mean, I want to do almost the same thing that tomcat does with the .war files but inside a already deployed application.
    Can someone point me in the right direction?
    I want to use the Spring framework, tomcat and Hibernate.
    Can remoting help here?

    But my question is: How to implement a different
    LogManager for each container application.To quote the very first words of the API documentation for LogManager: "There is a single global LogManager object..."
    How can I have several instances of the LogManager in
    the same VM?Obviously you can't.
    Now go back to your real problem (which is, I think, that you want each context path to have separate logs) and see what the API documentation can do for you. The very first words of the documentation for Logger are "A Logger object is used to log messages for a specific system or application component." So I would suggest you need to implement a different Logger for each container application.
    PC²

  • How to print formatted data / report on user's printer in Web Application

    Hi All
    I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
    application is web based and tech. used are Java - jsp - servlets
    now prob. is ...
    how i will transfer all data to client (web browser) from the server and how i can print that data on user's printer ...??
    there is requirement that I can not use applet for this purpose.
    if any one done or have idea then let me know.
    thanks
    Shailesh Koradiya

    Hi
    Its simple, first of all break ur data in terms of pages. Write the logic in one JSP.
    suppose i have jsp PrintReport.jsp , for page 1 url will PrintReport.jsp?page=0 ... so on
    get the page parameter in JSP
    String page="";
    if(request.getParameter("page")!=null)
    page=request.getParameter("page");
    get the rowcount from the Result and assume records per page is 100
    if u have 1000 rows then 10 pages u have to serve
    StartRowNumber=page*recordsPerPage
    EndRowNumber=StartRowNumber+recordsPerPage
    Execute a SQL query , select * from table where rownum between
    StartRowNumber and EndRowNumber
    Provide google like pageNumbers in ur HTML page
    ie 1 2 3 4 5 6 ..10
    Regarding printing , Create HTML button called 'print' and add Javascript ' window.print()' on clicking it.
    Hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • Java Problem with Web Application

    Hi Experts
    I have a new poblem of connexion with my tools ( Web A
    In fact when I execute my template, I have this error of communication:
    ERROR JAVA : INCOMING CALL IS NOT AUTORIZED
    I do a lot of thing like :
    Create RFC Destination in J2EE Engine.
    Create RFC Destination for the Portal.
    Maintain Portal Server Settings for the Portal
    Maintain Single Sign-On in the BI System
    Export BI Certificate to the BI System.
    Import BW Certificate to the Portal.
    Create BI System in the Portal.
    Configure User Management in the Portal
    Export Portal Certificate to the Portal
    Importing the Portal Certificate to the J2EE Engine
    Import Portal Certificate to BI System
    Set up Repository Manager for BI Documents and BI Metadata
    Maintain User Assignment in the Portal.
    Import SAP Basis Plug-In to BI System.
    Thanks

    Let's take this one step at a time.
    1. You have successfully configured ABAP/Java communication using template installer? See note 917590.
    2. Did you assign the portal user appropriate portal roles?
    3. Can you start a web query from 7.0 query designer?

  • Help please! Java application and web application...

    Hi,
    I have a problem with inserting a java application (Main.java) in a web application(index.jsp).
    I found a source demo of a drag and drop application on the Internet, but now I want to
    have the drag and drop application work in a Jpanel/JFrame in a webapplication.
    The drag and drop application code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Main {
        public static void main(final String[] args) {
            final ButtonGroup grp = new ButtonGroup();
            final JPanel palette = new JPanel(new FlowLayout(FlowLayout.LEFT));
            palette.setBorder(BorderFactory.createTitledBorder("Palette"));
            final MainPanel mainPanel = new MainPanel();
            mainPanel.setPalette(palette);
            for(int j=0; j<4; j++){
                final JToggleButton btn = new JToggleButton("Panel "+(j+1));
                palette.add(btn);
                grp.add(btn);
                btn.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        mainPanel.setAdding(btn.getText());
            final JFrame f = new JFrame("Drag and drop panels");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(palette, BorderLayout.WEST);
            f.getContentPane().add(mainPanel, BorderLayout.CENTER);
            f.setSize(800, 600);
            f.setVisible(true);
    class MainPanel extends JPanel implements MouseListener, MouseMotionListener {
        private JPanel palette;
        private String adding="";
        private SubPanel hitPanel;
        private int deltaX, deltaY, oldX, oldY;
        private final int TOL = 4;  //tolerance
        public MainPanel() {
            setLayout(null);
            addMouseListener(this);
            addMouseMotionListener(this);
        public void mousePressed(final MouseEvent e) {
            if( adding != "" ){
                setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
                SubPanel sub = new SubPanel(adding);
                add(sub);
                sub.setSize(sub.getPreferredSize());
                sub.setLocation((int)e.getX(),(int)e.getY());
                revalidate();
                adding = "";
                return;
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                hitPanel = (SubPanel) c;
                oldX = hitPanel.getX();
                oldY = hitPanel.getY();
                deltaX = e.getX() - oldX;
                deltaY = e.getY() - oldY;
                if( oldX < e.getX()-TOL ) oldX += hitPanel.getWidth();
                if( oldY < e.getY()-TOL ) oldY += hitPanel.getHeight();
        public void mouseDragged(final MouseEvent e) {
            if (hitPanel != null) {
                int xH = hitPanel.getX();
                int yH = hitPanel.getY();
                int xDiff = e.getX()-oldX;
                int yDiff = e.getY()-oldY;
                int cursorType = hitPanel.getCursor().getType();
                if( cursorType == Cursor.W_RESIZE_CURSOR){           //West resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.N_RESIZE_CURSOR){     //North resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth(), hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.S_RESIZE_CURSOR){     //South resizing
                    hitPanel.setSize( hitPanel.getWidth(), hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.E_RESIZE_CURSOR){     //East resizing
                    hitPanel.setSize( hitPanel.getWidth() + xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.NW_RESIZE_CURSOR){     //NorthWest resizing
                    hitPanel.setBounds( e.getX(), e.getY(), hitPanel.getWidth() - xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.NE_RESIZE_CURSOR){     //NorthEast resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth() + xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.SW_RESIZE_CURSOR){     //SouthWest resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.SE_RESIZE_CURSOR){     //SouthEast resizing
                    hitPanel.setBounds( xH, yH, hitPanel.getWidth() + xDiff, hitPanel.getHeight() + yDiff );
                }else{      //moving subpanel
                    hitPanel.setLocation( e.getX()-deltaX, e.getY()-deltaY );
                oldX = e.getX();
                oldY = e.getY();
        public void mouseMoved(final MouseEvent e) {
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                int x  = e.getX();
                int y  = e.getY();
                int xC = c.getX();
                int yC = c.getY();
                int w  = c.getWidth();
                int h  = c.getHeight();
                if(       y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL   && x <= xC+TOL  ){
                    c.setCursor(new Cursor(Cursor.NW_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.NE_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.SW_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.SE_RESIZE_CURSOR));
                }else if( x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.W_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL ){
                    c.setCursor(new Cursor(Cursor.N_RESIZE_CURSOR));
                }else if( x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h ){
                    c.setCursor(new Cursor(Cursor.S_RESIZE_CURSOR));
                }else{
                    c.setCursor(new Cursor(Cursor.MOVE_CURSOR));
        public void mouseReleased(final MouseEvent e) { hitPanel = null; }
        public void mouseClicked(final MouseEvent e) {}
        public void mouseEntered(final MouseEvent e) {}
        public void mouseExited(final MouseEvent e) {}
        public void setAdding(final String string) {
            adding = string;
            setCursor(new Cursor(Cursor.HAND_CURSOR));
        public void setPalette(final JPanel panel) { palette = panel; }
    class SubPanel extends JPanel {
        public SubPanel(final String name) {
            setPreferredSize(new Dimension(100, 100));
            setBorder(new TitledBorder(new LineBorder(Color.BLACK), name));
    }This application works with JFrame, but I want to display the JFrame in a webapplication (JSP Page).
    I'm using Netbeans 6.0 (GlassFish) to create webapplication using Visual Web JavaServer Faces.
    So in summary:
    How can i display the drag and drop application into a JFrame (better in a JPanel) in a webapplication (index.jsp)??
    Hope you can help...
    Thanks in advance...
    Greetings,
    Rajsh

    So have an applet that opens a JFrame... JSP or not has nothing to do with it, since it's nothing but HTML the client gets.
    You can't have a JFrame embedded in an HTML page. And if you could have an applet but don't know how to get that copied code to fit inside (I mean, content pane is content pane), you might want to consider learning how to do that.

  • Print Web Application with chart

    Hello all!
    We want to print our Web Application after push a button, not over context menu.
    I have read the "How to ... Enhance Web Printing". But this solution doesn't help me with charts as far as I understand. Else it would be a fine solution for my problem.
    Has anyone an idea how I can print the whole web application with chart and table? But I have to say that the web application is embedded in SAP Enterprise Portal. So it is also no answer to just print the full web page.
    Isn't there a way to just use context menu commands with a button?
    Thanks for help!
    Regards,
    Peter

    If you are using BI 7.0 you can use PDF based printing for this.
    In 3.5 you can use StyleSheets for formatting, and use js command window.print to just print the BI Report area within EP.
    <A href="ajavscript:window.print()">Print</A>

  • Java in Web application designer

    hi all,
    can any one tell me where u will be implementing java code in WAD.
    i mean can u tell me the scenario where we can write java script coding in WAD.
    thanks in advance..
    Ram

    Hi,
    check this link for ur answer...
    Using java Script in Web Application Designer

  • Web Application Shows Pop up message after Upgrading to Java 7 Update 11

    Hello,
    We have developed a Java based Enterprise Web Application and currently using in Production environment. With the recent Java Security vulnerability issue, the client machines (desktops) were upgraded to Java 7 update 11 (Java plugin for Web browser). After the upgrade, users are having issues in accessing the application. User gets a Security Warning popup - "Do you want to run this application? An Application from the location below is requesting permission to run Location: xyz.... ". Even if they check the "Do not show this again for this app" checkbox, it still shows the Security Warning popup for every screen clicked by the user. The Application has "Trusted Certificate" but using a 3rd party jar which has an unsigned applet. The popup goes away if we change security level to Medium. We don't want to reduce the security level from 'High' to 'Medium' because of the Security issues and users may access other websites.
    Is there a way to resolve the unsigned applet issue without compromising the security?
    Thanks
    Padmanaban

    With Java 7u11 Oracle increased the default security level to help reduce the of recently discovered exploits getting past the security sandbox.
    That said, I seem to recall from a few years ago that any untrusted component delivered to the client might cause the entire application to be treated as untrusted (as it should), and this may be the case here.
    Although license issues may prevent you from doing this, I have found that unpacking and then repacking-and-resigning (with your own key) all 3rd party JARs can get around this, but only you can decide whether this is (a) legal and (b) advisable in the first place.

  • Instantiating a eInsight business process through web application

    Hi all,
    Has anybody ever tried instantiating a eInsight business process involving user activities by clicking a link on a web application? All the tutorials I have seen so far are all based on input files. Could anybody please refer me to some sample where a eInsight process is started by clicking a link or rather interactively.
    Thanks & Regards,
    Sujoy

    An eInsight Business Process is instantated when a message for its initial Receive Activity becomes available for delivery. If you contrive to deliver a message to eInsight's BP from a Web Applicatin you will achieve the result you seek. The receive activity can be associated with a File eWay, a JMS Client end-point or any numer of other end points/adapters/connectors capable of receiving a message. You could, for example, use the JMS API Kit in a JSP in your web application to send a message to a JMS Receive activity that starts the BP. That presupposes that your web application is external to the Java CAPS solution. You could also build your web application using the eVision product, which is specifically designed to allow you to build Java CAPS-based web applications/composite applications. Have a look at eVision to see if you can use that to achieve what you need to achieve.

  • Unable to access java web application index page on Weblogic server 10.3.6

    Hi,
    I have deployed a Web application on Weblogic server.
    My war file is very basic with just a index page.
    I am able to deploy & access its index page properly in OC4J ( applicaton server on soa suite 10g ) and apache tomcat.
    But when i deployed same war file in weblogic am not able to access its index page, Getting below error:
    Error 503--Service Unavailable
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    *10.5.4 503 Service Unavailable*The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay may be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    status=Prepared, Consolidated State=Prepared, Target-Specific State= Prepared.
    what does Prepared indicates here?*
    Adminserver.log prints blow log when i try to access the index page
    ####<Dec 26, 2012 8:27:17 AM GMT> <Warning> <netuix> <soa-app-dev-01.am.health.ge.com> <AdminServer> <[ACTIVE] ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'> <501226496> <> <9b375c7445d8c121:79ee4f70:13bc880be7a:-8000-0000000000000209> <1356510437306> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=WebAppApplicationOverviewPage&WebAppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3D*Weblogs*%2CType%3DAppDeployment%22%29.>
    My Deployment descriptors are as below:
    Web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>Weblogs</display-name>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <description></description>
    <display-name>SOA11gLogServlet</display-name>
    <servlet-name>SOA11gLogServlet</servlet-name>
    <servlet-class>com.ge.healthcare.soa.logs.SOA11gLogServlet</servlet-class>
    </servlet>
    </web-app>
    ==================================================================
    weblogic.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.3/weblogic-web-app.xsd">
    <wls:weblogic-version>10.3.6</wls:weblogic-version>
    <wls:context-root>/Weblogs</wls:context-root>
    </wls:weblogic-web-app>
    ==================================================================
    Please help me to resolve the issue,its bit urgent.Let me know in case of anything else required to check and verify.
    Thanks in advance.
    Regards,
    Rahul Aahir
    Edited by: 978673 on Dec 26, 2012 4:22 PM
    Edited by: 978673 on Dec 26, 2012 4:32 PM

    In weblogic 10.3.6, when you deploy using console, you have to click on start button which appears in Deployments page.
    Your weblogic.xml file should be as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.3/weblogic-web-app.xsd">
    <wls:weblogic-version>10.3.6</wls:weblogic-version>
    <wls:context-root>/logs</wls:context-root>
    <container-descriptor>
    <index-directory-enabled>true</index-directory-enabled>
    </container-descriptor>
    <virtual-directory-mapping>
         <local-path>/opt/oracle/logs</local-path> (as per your path)
         <url-pattern>/logs/*</url-pattern>
         <url-pattern>*.log</url-pattern>
    </virtual-directory-mapping>
    </wls:weblogic-web-app>

  • Can't print a report from within web application

    <p>I can run the report within Eclipse and it displays fine.  When I click the export button a modal window comes up and all works as expeced.  If I click the print button then a modal box comes up but it is blank except for a little white square up in the top left corner.</p><p>When I view the html source in the browser, the displayPrintDialog function makes reference to active X print control.</p><p>prm.codebase = "../ActiveXControls/PrintControl.cab";</p><p>but I don&#39;t have that within my web application. </p><p>Is there something that I need to install on this machine to get printing to work?</p><p>Any help would be greatly appreciated.</p><p>Marty Jones </p><p> </p>

    <p>Unfortunately the ActiveX print control was not validated with the CR4E version of the Java Reporting Component. Therefore users must implement the prininting via the PDF print option. The print option is determined by the printMode property of the viewer. The default should be PDF but if you want to ensure that it always uses PDF you can set the following code using our API:</p><p> crystalReportPageViewer.setPrintMode(CrPrintMode.PDF);</p><p>If you are using the Tag Libraries you should set the property printMode equal to PDF.</p><p>Hopefully, in a future release we can look at adding in a "pure" print option again. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

Maybe you are looking for

  • Electronic signature in about 100 documents at a single blow?

    In our company we are not using Acrobat yet (except the reader), but thinking of buying it as we need to implement electronic signature for future processes. Now I need to know if it is possible to sign a large amount of documents electronically in o

  • PO in SRM and R/3- How to  distinguish

    Hi all: we have SRM and R/3 and we do reporting in BW. i know lot of BW and i am trying to catch with up with EBP now. aswe know a SC is created in SRM, it gets (may/maynot) approved. in our case once it gets approved although a PO is created in SRM

  • Want to set Microsoft Outlook as default in Windows 8.1

    When I click on an email link it takes me to the mail option in Windows 8.1, whereas I want it to open a new email in Microsoft Outlook. How can I change this default?

  • Clearing items upon hitting "Enter Query"

    I have a detail block with 5 fields in each record. There are five non-database items on the form to display the current record in this detail block. Upon moving the cursor to a different record in the block, the new record's fields are displayed in

  • I need help with registering my Photoshop CC subscription.

    I purchased the monthly subscription service for the Adobe Photoshop CC. My trial of Photoshop CS6 I downloaded just expired. When I enter my adobe i.d. and try to "licence this software" the next screen is requesting a serial # which I never receive