Is there a way of embedding JSP code in VBScript?

I am launching MS Excel using VBScript in the JSP Page. I want to populate the spread sheet with the values coming from a Java Bean. I am not sure how I can embed JSP code in VBScript.
Thanks

I tried doing that with Javascript but it gives me error..
here is the code I was testing..
<script language="JavaScript">
function test(){
var name = <%=(bean.getName())%>;
alert(name);
</script>
<input type="button" name="Button" value="test" onClick=javascript:test()>
Error : Object Expected
If I do a similar thing with VBScript, it doesnt work either.
here is the test code for VBScript
<SCRIPT LANGUAGE="VBScript">
sub button1_onclick()
     dim name = <%=(bean.getName())%>
' Launch Excel
dim app
set app = createobject("Excel.Application")
' Make it visible
app.Visible = true
set rng2 = wb.Activesheet.Range("A1").Resize(2,2)
rng2.value = name
' Give the user control of Excel
app.UserControl = true
end sub
</SCRIPT>

Similar Messages

  • Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    When you click on "My Snippets", it will list down all saved user snippets, which you can right-click and click on "delete" to delete it.

  • How can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc?

    how can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc? thank you

    No. Get it fix by making an appointment with the Apple genius bar.

  • TS1292 I lost itunes card is there a way to use the code on the receipt to redeem it?

    Lost itunes card is there a way to use the code on the receipt to redeem it?

    http://www.apple.com/feedback/iphone.html

  • Is there a way to view the code screen and the design screen in separate windows

    Is there a way to view the code screen and the design screen in separate windows instead of connected. I would like to have the code on one monitor and the design on another

    You can open the Code Inspector Window to have the code completely separate from the Design/Document window. You can also then move the CI window to a separate monitor if you like.
    Window > Code Inspector or F10

  • My young kids got a hold of my older nano 4G and somehow put a passcode in it. They don't know what they did. is there a way to break the code toget into it?

    My yopung kids got a hold of my older nano 4G and somehow set a passcode. i now cannot open it and yhey don't know what the did. Is there a way to break the code so I can use it again? thanks

    grwhite56,
    See this article for different possible solutions.
    http://support.apple.com/kb/ht1350
    B-rock

  • I have forgot the security code from my ipad 2. Is there any way to eliminate the code and unlock my ipad?

    I have forgot the security code from my ipad 2. Is there any way to eliminate the code and unlock my ipad?

    Yeah you Can restore it to the last backup you took on the computer if you didn't take any then restore it to facotry default
    If there was any other Way a thier WHO stole your iOS device could access All your personal data using that Way

  • Is there any way to upload Tariff Code (with multiple XML files) from application server?

    Hi All,
    Is there any way to upload Tariff Code (with multiple XML files) from application server?. Its urgent.
    Regards,
    Jatin

    Hi Jatin,
    Yes, of course you can upload multiple files for tariff codes.
    This can be done by the below path:-
    SAP GTS Cockpit(tcode-/sapsll/menu_legal)-->Customs Management-->Classification-->Classification Master Data-->Upload Tariff Code Numbers from XML file(tocde- /SAPSLL/LLNS_UPL101).
    In the above area after browsing and choosing the first file, please select multiple check box to choose more files as well. Then you can further select your application server and upload all those files in one go.
    PS:- Although, we have an option to upload multiple such files but actually we should avoid multiple file uploads due to various reasons. Hence, please take utmost care during such procedure.
    Regards,
    Aman

  • Is there a way to add Paypal code for custom donate buttons?

    My website tracks donations for 4 separate programs via the item structured in the PayPal button.  Each button has its own graphic and, therefore, requires the <form action ... code from PayPal.  Needless to say the standard PayPal widget is not useful.  In addition, all of the 4 buttons are on the header on the Master pages (Main, Interior 1, and Interior 1).  Is there a way to incorporate the code from Paypal into the css pages?
    Thank you

    Thank you.  I did get it figured out and put all the links in each page.  I appreciate the help.
    Laura

  • So my mom set restrictions on my ipod and she forgot the code is there any way of retriving the code

    so my mom set restrictions on my ipod and now she cant remember the code is there any way of getting that code

    Abbieyoyo wrote:
    so my mom set restrictions on my ipod and now she cant remember the code is there any way of getting that code
    No.
    To remove the Restrictions passcode you will need to either...
    Restore the Device as New...
    http://support.apple.com/kb/HT4137
    OR...
    from a Backup created Before the Restrictions Code was set....
    Restore from Backup
    http://support.apple.com/kb/ht1766

  • Is there a way to obfucate JavaFx code?

    Is there a way to obfucate JavaFx code?

    >
    Well, just don't release the source code... :)
    JavaFX is compiled, so unlike JavaScript or Python, for example, you shouldn't be concerned by people viewing your source.
    >
    Unfortunetly, a hacker can use a decompiler to see what the Java Source code is like.
    Here is some simple code to create snow particles:
    * Main.fx
    * Created on Jan 3, 2010, 11:50:14 AM
    package obfuscatetest;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.paint.*;
    import javafx.scene.shape.Circle;
    import javafx.util.Math;
    import javafx.animation.Timeline;
    import javafx.animation.KeyFrame;
    var y: Integer = -300;
    Stage {
        title: "Snow"
        scene: Scene {
            width: 500
            height: 300
            fill: Color.AQUA
            content: [
                for (i in [0..100]) {
                    var childY: Integer = (Math.random() * 600) as Integer;
                    Circle {
                        radius: 2
                        fill: Color.WHITE
                        centerX: Math.random() * 500
                        centerY: bind y + childY
    Timeline {
        repeatCount: Timeline.INDEFINITE
        keyFrames:[
            KeyFrame {
                    time: 0s
                    values: y => -300
            KeyFrame {
                    time: 10s
                    values: y => 0
    }.play();Here is that same code compiled and decompiled:
    package obfuscatetest;
    import com.sun.javafx.functions.Function0;
    import com.sun.javafx.runtime.FXBase;
    import com.sun.javafx.runtime.FXObject;
    import com.sun.javafx.runtime.TypeInfo;
    import com.sun.javafx.runtime.annotation.Package;
    import com.sun.javafx.runtime.annotation.Public;
    import com.sun.javafx.runtime.annotation.ScriptPrivate;
    import com.sun.javafx.runtime.annotation.SourceName;
    import com.sun.javafx.runtime.annotation.Static;
    import com.sun.javafx.runtime.location.DependencySource;
    import com.sun.javafx.runtime.location.FloatVariable;
    import com.sun.javafx.runtime.location.IntLocation;
    import com.sun.javafx.runtime.location.IntVariable;
    import com.sun.javafx.runtime.location.SBECL;
    import com.sun.javafx.runtime.sequence.ObjectArraySequence;
    import com.sun.javafx.runtime.sequence.Sequence;
    import javafx.animation.KeyFrame;
    import javafx.animation.KeyValue;
    import javafx.animation.Timeline;
    import javafx.scene.Scene;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.stage.Stage;
    import javafx.util.Math;
    @Public
    public class Main extends FXBase
      implements FXObject
      public static int VCNT$ = -1;
      @Static
      @ScriptPrivate
      @SourceName("y")
      public static int $y = 0;
      @Static
      @ScriptPrivate
      @SourceName("y")
      public static IntVariable loc$y;
      static short[] MAP$javafx$animation$KeyValue;
      static short[] MAP$javafx$stage$Stage;
      static short[] MAP$javafx$animation$Timeline;
      static short[] MAP$javafx$scene$Scene;
      static short[] MAP$javafx$animation$KeyFrame;
      static short[] MAP$javafx$scene$shape$Circle;
      @Static
      @Public
      public static Object javafx$run$(Sequence<? extends String> _$UNUSED$_$ARGS$_)
        set$y(-300);
        Stage jfx$0objlit = new Stage(true); jfx$0objlit.addTriggers$(); int jfx$12count = jfx$0objlit.count$(); short[] jfx$13map = GETMAP$javafx$stage$Stage(); int jfx$11loop = 0; if (jfx$11loop >= jfx$12count) break label486; switch (jfx$13map[jfx$11loop]) {
        case 1:
          jfx$0objlit.set$title("Snow");
          break;
        case 2:
          Scene jfx$1objlit = new Scene(true); jfx$1objlit.addTriggers$(); int jfx$9count = jfx$1objlit.count$(); short[] jfx$10map = GETMAP$javafx$scene$Scene(); int jfx$8loop = 0; if (jfx$8loop >= jfx$9count) break label460; switch (jfx$10map[jfx$8loop])
          case 1:
          case 2:
            jfx$1objlit.set$height(300.0F);
            break;
          case 3:
            jfx$1objlit.set$fill(Color.get$AQUA());
            break;
          case 4:
            ObjectArraySequence jfx$2sb = new ObjectArraySequence(1, TypeInfo.getTypeInfo());
            ObjectArraySequence jfx$3sb = new ObjectArraySequence(TypeInfo.getTypeInfo()); int i$ind = 0; int i$upper = 100; if (i$ind > 100) break label433; int i = i$ind; IntVariable childY = IntVariable.make();
            childY.setAsInt((int)(int)(Math.random() * 600.0D));
            jfx$4objlit = new Circle(true); jfx$4objlit.addTriggers$(); int jfx$6count = jfx$4objlit.count$(); short[] jfx$7map = GETMAP$javafx$scene$shape$Circle(); for (int jfx$5loop = 0; jfx$5loop < jfx$6count; ) { switch (jfx$7map[jfx$5loop])
              case 1:
              case 2:
              case 3:
              case 4:
                jfx$4objlit.loc$centerY().bind(false, new _SBECL(0, loc$y(), childY, null, 3, null), new DependencySource[0]);
                break;
              default:
                jfx$4objlit.applyDefaults$(jfx$5loop); } ++jfx$5loop; } label433: label460: label486: jfx$4objlit.complete$();
      public static int VCNT$()
        if (VCNT$ == -1) VCNT$ = FXBase.VCNT$() + 0; return VCNT$; }
      public int count$() { return VCNT$();
      @Static
      @ScriptPrivate
      public static int get$y()
        if (loc$y != null) return loc$y.getAsInt(); return $y; }
      @Static
      @ScriptPrivate
      public static int set$y(int varNewValue$) { if (loc$y != null) return loc$y.setAsInt(varNewValue$); return (Main.$y = varNewValue$); }
      @Static
      @ScriptPrivate
      public static IntVariable loc$y() { if (loc$y != null) return loc$y; loc$y = IntVariable.make($y); return loc$y;
      public static short[] GETMAP$javafx$animation$KeyValue()
        // Byte code:
        //   0: getstatic 101     obfuscatetest/Main:MAP$javafx$animation$KeyValue     [S
        //   3: ifnonnull +31 -> 34
        //   6: invokestatic 102     javafx/animation/KeyValue:VCNT$     ()I
        //   9: iconst_2
        //   10: newarray int
        //   12: dup
        //   13: iconst_0
        //   14: getstatic 103     javafx/animation/KeyValue:VOFF$value     I
        //   17: iastore
        //   18: dup
        //   19: iconst_1
        //   20: getstatic 104     javafx/animation/KeyValue:VOFF$target     I
        //   23: iastore
        //   24: invokestatic 105     com/sun/javafx/runtime/FXBase:makeInitMap$     (I[I)[S
        //   27: dup
        //   28: putstatic 101     obfuscatetest/Main:MAP$javafx$animation$KeyValue     [S
        //   31: goto +6 -> 37
        //   34: getstatic 101     obfuscatetest/Main:MAP$javafx$animation$KeyValue     [S
        //   37: areturn
    ...More that will not fitBecause JavaFX is a scripting language, the Java source code is significantly harder to read. In some cases, my decompiler is completely unable to revert it to source code and prints out java byte code instead! Consequently, it is in a sense already obfuscated. But it is theoretically possible to simply write a JavaFX decompiler.

  • HT1222 Is there a way to password / pass code the Numbers app?

    Is there a way to password / pass code the numbers app???

    Not that I'm aware of. The iPad is designed to be a single user device, so you can passcode the whole thing, or nothing at all.
    There are a few apps that you can lock out with restrictions, but I don't think Pages is amongst them. You can look in settings and restrictions and see what you can lock down.

  • Is there a way to create QR codes through Enhanced Datamerge in color rather than black?

    Trying to find a way to create QR codes through the data merge feature in a color other than black. The only way I know to attempt it is to try to give the placeholder a color attribute, but no matter what I try the QR codes generated come in as black. Wondering if there is a way to color them, like you can when you just generate an individual QR code.

    aggieweather,
    See the following post. I think should help out. Thanks!
    Chris C
    Applications Engineering
    National Instruments
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

  • Is there any way to make location codes a user maintenance function?

    Are volume of new location codes that the business adds to all company codes is taking too much development time.  Is there any way to update the table to be handled by the business without transports?

    you can set your strokes to not scale by using the properties panel when a stroke is selected.

  • Is there a way to use promo codes without adding a credit card to your account?

    I currently don't have any credit or debit cards, but would really like to use some promo codes to test out one of the paid apps.
    The problem is it wont allow me to enter the code without first adding a credit card. Is there any way around this?
    Post relates to: HP TouchPad (WiFi)
    This question was solved.
    View Solution.

    You would have to set up App Catalog with a credit or debit card first.

Maybe you are looking for

  • IPad iOS 6.1.2 update causing excessive battery drain

    I have noticed in other discussions that a number of iPhone users have experienced excessive battery drain after updating to iOS 6.1.2. I am now experiencing this problem in a big way after updating to iOS 6.1.2 on an iPad 3.   Prior to this update,

  • Variable input values in the query are displayed wrong

    Hi experts, I executed a report and in the variable input screen it asks for a key date and company code. We entered key date and company code and executed the report. We want to take a print out of the output. But the variables which we entered in t

  • Attached vs. Embedded jpgs in Email Messages

    How do you send jpgs in email messages so they are attachments and NOT embedded images? I'm using Mail 3.5, and drag and drop photos into messages. They used to be attached, but for some reason they started showing up as embedded files and my PC frie

  • Don't Start the dispatcher after Error in Upgrade of SQL2000 to SQL 2005

    HI, We have a problem after try to upgrade the SQL 2000 to SQL2005.We have two SID in one server, the upgrade of the first that perfect, but when we try to do the same to the other in SAPINST of SAPTOOLS stopped in theproccess when create the storad

  • Picture Jumps To Somewhere But Timecode Stays The Same When Applying Effect

    Picture shifts to undesired point when I applied some effects like mask or cropping. Sometime it looks fine on FC but picture jumps to somewhere else when transfered to QuickTime. I am using FC 6.1 to edit 720/60 DVCPRO HD. Please throw me anything y