Integrate flash component into JSP page

Hi,
I need to integrate a flash component into my JSP page. flash component is used to put signature via mouse drag. the signature that is put should be captured and stored in DB. can anyone help me how to do it. Thanks in advance...

I thought about including it in an outputText tag but i never tried it because the output text shouldn't be rendered as html code (by definition).
Thank you for your brilliant solution, it works fine now.

Similar Messages

  • How to insert a Flash SWF into my page

    I am using GL6 on an Intel MAC running 10.5.6.  I have a Flash file I created using Flash CS3 and want to have it appear within my GL page.  However when I try to insert the file into the site window, I get the error message: myfile.swf could not be updated. Do you want to continue anyway?
    How do I get the SWF file into the page?
    Thanks.

    You can try to use my flash action original made to avoid the IE Eolas problem
    It wont give you a preview (flash only show in browser)
    It was made in GL5 and shud works in all newer versions
    http://www.jart.dk/jgom/golive/golive-actions/swfobject.html
    If neither GL's nativ or my action works it may be somthing with your flash

  • Importing avi files into jsp pages

    hello all. im new to jsp and java. i would like to know how i could import .avi files from my MySQL database (where ive given paths for the avi files) into a jsp page. i am basically trying to make an application that allows users to select particular video files and play them. the user has the ability to upload and delete these videos

    newbie4337 wrote:
    im sorry i guess i didn't phrase that properly. i meant to say that i had saved the paths in the database If you have some saved URLs in the database (URLs to where these avi files can be found)
    you just need to retrieve the URLs and use them when generating links (<a href="..."></a>) in the html produced by your JSP.
    You have already given the paths in the html generated by your jsp? Paths as in URLs?
    Then you must already have a servlet deployed that accepts HTTP requests for .avi URLs and reads the relevant .avi from the database and serves back an avi stream with the right mime type (video/x-msvideo) in the headers...
    ([w3schools|http://www.w3schools.com/media/media_mimeref.asp]).
    could you give me some more info on that?If the URLs are hosted somewhere else you do not need any of this.

  • Importing classes into JSP page

    Hi There,
    I am new to this and here is my problem.
    I am doing a shopping cart tutorial and trying to get a JSP page to import two classes :
    <%@ page language="java" contentType="text/html"
    import="ShoppingBasket,Product"
    errorPage="errorpage.jsp" %>
    I get :
    C:\jakarta-tomcat-4.1.30\work\Standalone\localhost\_\shop_0002dbasket_jsp.java:7: '.' expected
    import ShoppingBasket;
    ^
    C:\jakarta-tomcat-4.1.30\work\Standalone\localhost\_\shop_0002dbasket_jsp.java:8: '.' expected
    import Product;
    ^
    C:\jakarta-tomcat-4.1.30\work\Standalone\localhost\_\shop_0002dbasket_jsp.java:50: cannot resolve symbol
    symbol : class ShoppingBasket
    location: class org.apache.jsp.shop_0002dbasket_jsp
    ShoppingBasket basket = null;
    The classes compile ok . I read that instead of comma seperating the classes it might be better to put them in a package but I do not know the correct syntax or where to put the package if this is correct.
    The tutorial is from this book and the shopping cart source code is here.
    http://www.ineasysteps.com/books/?1840781971
    Any help appreciated
    Jim Ascroft

    A little beginners explanation of classpaths and packages is in order here. A package works like an extension of the name to keep class names unique. For example, if you have a ShoppingBasket.class and you want to use my ShoppingBasket.class along with it the two class names must be unique or different from one another in some way. Yours could be in com.yourcompany package and mine could be in org.mycompany package. When you reference you Shopping backet in your code you would use com.yourcompany.ShoppingBasket and when you reference mine in the same code you would use or.mycompany..ShoppingBasket. Shorthand for the class can be used by adding an import at the top of the referencing java file. An import is like saying "hay compiler, whenever you see ShoppingBasket look for it in the com.mycompany package!" That brings us to the next point. The package name must always be reflected in the directory structure of the .class file location in order to be found. Your shopping basket must be stored under the directory com/yourcompany if it is in package com.yourcompany. That directory structure should extend off of a classpath entry in order to be made available to the JVM. Classpath entries point to folders, jar or zip files that contain packaged and unpackaged classes. So If you have a classpath entry that points to C:\jakarta-tomcat-4.1.30\webapps\ROOT\WEB-INF\classes then all unpackaged classes (classes compiled from a .java file without a package statement) will be pulled directly out of this folder. Also, packaged classes will be pulled out of they're packaging directory structure, which should be located in this folder. You can have as many classpath entries as you want but the classes will be pulled out of the first entry that they can be found under. Now with a web app you don't normally fuss with the setting of classpaths since they are already predefined and configured for you. You just need to know to put all of your class files under the WEB-INF/classes directory in the root of your web app. You do, however, still need to know how they work. You also should know that any jar files should be placed in the lib folder of your web app and not under the classes folder.
    Getting back to your immediate problem, why are you getting class not found errors? Well this stems from what was said above. To fix these kind of problems follow these steps:
    1st off, find out exactly which .java file the .class file was compiled from. (This can be a problem in some environments where multiple copies of source hang around.) This step may involve a recompile and paying close attention to the compiler arguments. In an IDE there should be a setting or dialog that lets you find out exactly where it's placing the .class files created from you source.
    Next, determine what package the .class file should be in by examining (and maybe changing) the package statement at the top. For example, if you intended to put ShoppingBasket in the com.bloodoo package make sure it has a package "com.bloodoo;" statement at the top.
    Next recompile the .java source and move the packaging directory structure into the classes folder of your app. (This would be WEB-INF/classes under the root of the web-app.) For example if ShoppingBasket.class was compiled into the com/bloodoo folder under C:\Program Files\YourIDE\projects\yourproject\output then copy the com folder out of the output folder and into the WEB-INF\classes folder.
    Next examine the calling code (JSP or servlet .java code) and make sure it references the problem class out of the right package. For example, yourpage.jsp should reference the class com.bloodoo.ShoppingBasket and not ShoppingBasket if the shopping basket is deployed in package com/bloodoo. This gets tricky with jsp usebean tags because the desire is to use shorthand but I'm not sure if that works with the use bean tag. Make any modifications and recompile if necessary.
    Lastly, as a rule of thumb avoid wild-card imports (eg. import com.package.*) because they are a common cause of confusion especially when refactoring package names and resolving these kind of issues.Those steps should allow you to resolve 85-90% of your class not found issues. The other 10-15% are rare cases involving the use of custom classloaders, the Java extension mechanism and/or classpath trickery. If you still have questions/problems post back.
    Cliff

  • Using flash content in jsp page???

    hey guys,
    I'm trying to develop a jsp page but the problem is that the page should also contain some flash animation.
    Is it possible to do this?
    I've already tried using the "publish" option in flash mx 2004 but it dosen't work.

    Is it possible to do this?yes
    I've already tried using the "publish" option in
    flash mx 2004 but it dosen't work.you need to provide a more detailed description and error message
    it doesn't work doesn't give us much to work with

  • Implementing Database codes FAIL /error in parsing data into jsp page

    Hi there,
    I have this problem trying to build a portal application. I am using the JSPDynPage, jsp page and a bean to build a page.
    I have this problem parsing data from JSPDynPage to the beans and to the jsp page.
    I tested out the connection between the beans and the jsp page. There is no error parsing information from the beans to the jsp page.
    So i tried to test out the codes for the database from the beans.
    Will this work? Because it does not display the results i want.
    I need an Solution asap to find out wad is wrong also also the correct codes to the database.
    public String db(){
    try {
                 InitialContext iC = new InitialContext();
                 DataSource dataSource = (DataSource)iC.lookup("java:env/jdbc/mySQL");
                 java.sql.Connection connection = dataSource.getConnection();
                 PreparedStatement st = connection.prepareStatement("SELECT name FROM test WHERE id='123'");
                 ResultSet resultSet = st.executeQuery();
                 while (resultSet.next()){
                      name = resultSet.getString("name");
                      name = name.toString();
                 connection.close();
                 return name;
                 } catch(Exception n){
                      e = "Exception";
                      return e;
    This is the method i put in the beans to test out the database connection.
    Thanks Loads
    Quatre

    Hi there,
    Thanks for the reply, i thought that no one is going to reply me anymore. Thanks loads.
    Bean Class name: Bean1
    Bean Packeage name: Beans1
    Bean id : myBean1
    Jsp Codes
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="myBean1" scope="application" class="Beans1.Bean1" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
       <hbj:textView id = "ll" text="lalalalalalalalalasasa" />
      <%--
    <hbj:textView id = "l">
                   <% l.setName(myBean1.getName());%>
    </hbj:textView>
    --%>
    <hbj:textView
                    id="appraisal_yr_label"
                    text="Apprasial Year:">
                    </hbj:textView>
                    <hbj:textView id = "la" >
                    <% la.setText(myBean1.getName());%>
                    </hbj:textView>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Beans1.java
    package Beans1;
    import java.io.Serializable;
    public class Bean1 implements Serializable{
    private String name = new String();
    private String e = new String();
    private String year = new String();
         public void setName(String name){
              this.name = name;
         public String getName(){
              return name;
    JSPDynPage
    import Beans1.Bean1;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class testDBv5 extends PageProcessorComponent {
    import Beans1.Bean1;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class testDBv5 extends PageProcessorComponent {
      public DynPage getPage(){
        return new testDBv5DynPage();
      public static class testDBv5DynPage extends JSPDynPage{
        private Bean1 myBean1= null;
        private String name = new String();
        public void doInitialization(){
              try{
                                  IntitialContext context = new javax.naming.InitialContext();
                                  DataSource dataSource = (DataSource)context.lookup("java:env/jdbc/appDB");
                                  Connection connection = dataSource.getConnection();
                                  Statement stmt = connection.createStatement();
                                  ResultSet rs = stmt.executeQuery("Select AppraisalYear From tblAppraisal Where AppraisalYear='2007'");
                                          while(rs.next()){
                                            year = rs.getString("AppraisalYear");
                                            rs.close();
                                            stmt.close();
                                            connection.close();
                                            return year;
                                       }catch (Exception n){
                                            n.printStackTrace();
              IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
                     Object o = profile.getValue("myBean1");
                     if(o==null || !(o instanceof Bean1)){
                        myBean1 = new Bean1();
                        profile.putValue("myBean1",myBean1);
                     } else {
                          myBean1 = (Bean1) o;
                        Object value = request.getSession().getValue("myBeans1");
                        if (value==null || (value instanceof Bean1)){
                             myBean1 = new Bean1();
                        request.getSession().putValue("myBean1", Object value);
              DataBase cn = new DataBase();
              name = cn.dataBaseConnection();
              myBean1.setName(name);
    //name = "gir";
    //myBean1.setName(name);
    // IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    //IPortalComponentContext myContext = request.getComponentContext();
    //Bean1 myNameContainer = (Bean1) myContext.getValue("myBean1");
    //myNameContainer.setName(name);
          // fill your bean with data here...
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("testDBv5.jsp");
    //testing purpose
      public static void main (String[] arg){
         testDBv5DynPage ef = new testDBv5DynPage();
               ef.doInitialization();
    Thanks Loads
    Quatre

  • Embed video player or flash payer on Jsp page

    HI all, I am new to java, and i want store videos in database(Mysql) and also want to retrieve and play videos on my jsp page,like youtube,how can i embed video player or flash payer on my jsp page so that i can play videos of almost all formats. iam doing all this in servlets.
    Can anybody help me?? and give details about all that??
    Thanks.

    Hi thanks for ur response,
    Can you please help me more, i am using eclipse on linux OS and trying to play video,using JMF,by using jmf.jar,mediaplayer.jar,multiplayer.jar files in my applications ,and when i run my class it gives error "No media player found" as there is no media player in linux,so how can i play my video in real player or in some other player in llinux using eclipse.
    iam using sample code provided by JMF to play video.
    Thanks.

  • Number of component on jsp page

    Hi,
    Is there any limit on number of components(elements) i can have on jsp page.
    when i try to add a component (even object spacer) after a certain number of component, it does not display the page.
    If i want to add more component, how can i add after allowed number of component.

    Hi Saravanan,
    You could use the portal activity report, see http://help.sap.com/saphelp_nw04s/helpdata/en/58/728ea01cf64fff996b827f2a06f9b1/frameset.htm
    Anyhow, if you have developed the iView by yourself, and you are only interested in the hits on that iView, you could implement a counter by yourself, but that should consider cluster environments and how to aggregate the data of these. All this is implemented in the portal activity report, so if that fits somehow, that should be the easiest way for you to go.
    Hope it helps
    Detlev

  • Importing java classes into jsp page

    I'm trying to import java classes inside my jsp page, while doing that i am getting compilation error "package uma.natarajan.javaclasses" not found. I don't know where to copy the java files. i'm keeping my jsp files under public_html folder
              

    Hi uma,
              create uma\natarajan\javaclasses under weblogic_home\myserver and copy java
              classes(u want to import) to uma\natarajan\javaclasses and then u try.
              Concept is the java classes u import should be present in a classpath. Hope
              this may help u,
              Arun,
              [email protected]
              "uma natarajan" <[email protected]> wrote in message
              news:3a490bcb$[email protected]..
              > I'm trying to import java classes inside my jsp page, while doing that i
              am getting compilation error "package uma.natarajan.javaclasses" not found.
              I don't know where to copy the java files. i'm keeping my jsp files under
              public_html folder
              

  • Jsf component in jsp page

    Hi sir,
    I have developed one jsf application where jsp page has been created , and jsf components were embedded. I m little bit confused regarding,
    1. is there no jsp components as its own.
    2. if I create jsf page instead of jsp, then can i get all the functionalities of jsp to avoid the jsp extension.
    I m getting lots of help from all of you. so i m grateful to you.
    Regards
    Inam

    Hi,
    I dont think that developers check your question at 'Database security' forum.
    Good luck.

  • How Can I Add Pivot Tables of Excel Into JSP Pages

    Hello all,
    Basing upon a query to database, i wanted to add a Microsoft Excel pivot table functionality in JSP page [with the result of query].
    Is it possible to create a Pivot Table in JSP with dynamic data from database ??
    Can any body help me in solving this issue ???
    Thanks & Regards
    Krishna

    There are a few alternatives to doing this (depending on the clients you are serving this page up for).
    Going the pure HTML
    There is an open source project called JPivot which provides an HTML front end for Pivot Table (using tag libraries)
    Going the Microsoft Office route there are a few options:
    1) POI HSSF ( http://jakarta.apache.org/poi/index.html) allows you to "update" an existing Pivot table by replacing data values contained in a template pivot table.
    2) Use the open source XELEM api (xelem.sourceforge.net) which produces SpreadsheetML (Micorsofts current XML file Format). At present, I don't believe this handles creating a pivot table from scratch (you have to manually create the Pivot Table template, read in the template (with XELEM) and update the data values in the template before writing it out. (the same holds true for POI)
    3) Commercially the company I work for (www.workbeans.com) is writing a pure Java Pivot Table API that will allow you to create a Pivot Table in the Excel SpreadsheetML file format from scratch. (supported by Office 2000, XP and 2003). The Pivot table functionality isn't slated until a future release (Oct. 2005), so if you can wait until then we could help you further.
    Best,
    Eric
    M. Eric DeFazio
    Application Architect, workbeans
    [email protected]

  • File Chooser into JSP pages

    Hello, i would like to allow the user of one of my JSP page to choose a file on his computer, as doing attachment. Is it possible?? Do you see some better way to do that??
    Thanks

    Yes, it's possible. But you can't use a FileChooser, that's a Java class. You need an HTML solution, and there is one. You use a form with enctype="multipart/form-data" and an input box with type="file". Do you use Internet e-mail like Hotmail? If you do, then look at the HTML they use when you send a mail with attachments.

  • Accessing an Activex Component in JSP page

    Hi,
    I am trying to disable header and footer of window's page setup. I am doing that successfully with HTML page. Where as while i am trying the same with JSP it is not disabling the Header and Footer. The code is as shown below :
    <script type="text/vbscript">
    Dim WSHShell
    Set WSHShell = CreateObject("WScript.Shell")
    WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", ""
    WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", ""
    </script>
    I think it is not recognizing VBscript.
    Can anybody tell me how to disable the Header and Footer with JSP page.
    Thanks and Best Regards,

    Per the specification, I have set the application
    level resource
    bundle
    as follows:
    <application>
    <message-bundle>com.awolart.MessageResources</message->
    <locale-config>
    <default-locale>en</default-locale>
    </locale-config>
    </application>However, I can not find any references in the
    specification on how to
    access this resource bundle in a jsp.The <message-bundle> element is only useful if you want to override the message strings for the standard conversion and validation error messages produced by the JavaServer Faces implementation (they tell the implementation where to find the replacement text). It is unnecessary to specify this for application-specific resource bundles.
    Craig McClanahan

  • Html block of code into jsp page.

    Is there possible, using JSF and tiles, to include dynamically a block of html code into a jsp file, or tile ?
    I've tried to create an html file and to include it in a jsp, but at runtime the contents of the html code is not refreshed.
    Any ideas ?
    Maybe using a custom component that acts like a div container for the html code ?
    Thanks in advance.
    Edited by: veveu on Mar 4, 2008 7:18 AM

    I thought about including it in an outputText tag but i never tried it because the output text shouldn't be rendered as html code (by definition).
    Thank you for your brilliant solution, it works fine now.

  • Java class into jsp page

    hi i,m a beginnner
    how can i run my own java class into a JSP file?
    please help me!
    thanks

    If you understand the OO concepts and wrote the Java class right, then all you need to do is something like:YourJavaClass yourJavaClass = new YourJavaClass();
    yourJavaClass.doSomething();After all I rather recommend to use servlets for business logic instead of JSP (read: scriptlets).

Maybe you are looking for

  • External Calls , SIP Setup.

    So far I have a 2811 setup with a few CIPC softphones. This is working fine. What i'd like to do now is set up calling to external phones. We have set up a voip account with a company and have the following details. SIP username, SIP Password and SIP

  • Need Help in installations and connecting displays. Please!

    Hello Everyone, Need Help in installations and connecting displays. Please! Im planning on installing in a cafe shop : (Store Self improvement) 4 TV's (can be  Built in Wi-Fi) Store menus 2 touch screen tablets.  To be use as Emenu (digital Menu) 1 6

  • Creator 2 Solaris Version

    Hi all, I'm used to work with Netbeans 5.0 and Creator 2 at the same time, which caused no trouble on Linux, but since I switched to Solaris 10 (on the same machine 1 GByte RAM, Intel Pentium IV 2.4 GHz) Creator freezed if I try to start NetBeans. Fo

  • I just put a new fuser kit into my copier (5550 series). now, when i print the sheet is pink!

    An hp5550 series laserjet printer was just donated to our office.  It needed a fuser kit and I just replaced it.  Now the sheets are pink when copies are made.  What's going on?

  • How to verify 3GS backup actually happened ?

    I did backup (via itune's Backup menu and via sync function) in May and can see these backup listed when I right click on the 'Restore from Backup' drop menu from itune. However, when I just did another backup similarly via 'Backup' menu and sync fun