Creating multiple response instances.

I have created a jsp through which i can download a jar on to my cell.
My requirement is first to send a wml to the client and then start downloading
the jar file. But, i am able to display the wml file but not able to download the jar
file.
[b]this is code i am using to send the wml file:
response.setContentType("text/vnd.wap.wml");
RequestDispatcher viewPage_sucess1=request.getRequestDispatcher("/sucess.wml");
viewPage_sucess1.forward(request,response);
this is code i am using to download the jar file:
response.setContentType("application/vnd.symbian.install");
            String disHeader = "Attachment;Filename=" + fileName ;
            response.setHeader("DownloadFile",disHeader);
            path="/".concat(path);
            System.out.println("NEW PATH----------------------------->>>"+path);
            file = new File(path);
            out.clear();
            out=pageContext.pushBody();
            fileInputStream = new FileInputStream(file);
            int i;
            while ((i=fileInputStream.read())!=-1) {
                response.getOutputStream().write(i);
            response.getOutputStream().flush();
            if i try download the jar without the wml file, it works fine.
can anyone please suggest me what to do. Is problem due to response
object. how would solve this problem.

I need to use an xml file for the questions and answers.
And there are more than 1 correct answer for the questions.
I'm pretty new to actionscript so a few pointers in the right
direction would be a great help to me.
Should I be using the xml component? The dataset components?
Check box components for the questions?
How do I get the xml to interact with the flash.... sorry for
all the questions.

Similar Messages

  • Create multiple portal instances with only one database?

    Can someone create multiple portal instances with only one database?
    If so, how is this done, just by running the portal configuration wizard?
    How are most people running with multiple developers working on portal? Do they share a portal instance, or create their own?
    Thank you very much!
    Phillip

    i'm currently using 9ias rel 2(9.0.2) and i have install one infrastructure and two mid tier, hoping that this will create two portal, but it didn't. Can you please tell me how to do create two portal within one server.
    thanks and regards;
    andrew

  • Creating multiple categories instance on document creation

    Im trying to create a document with multiple categories instance on it .
    It seems it only takes the last CATEGORY_DEFINITION passed to creation call.
    NamedValue[] attrNV1 = new NamedValue[2];
    attrNV1[0] = new NamedValue( "CUSTOM_82413", "Ma valeur1");
    attrNV1[1] = new NamedValue( "CUSTOM_82800", "Ma valeur3");
    NamedValue[] catDef1 = new NamedValue[2];
    catDef1[0] = new NamedValue( Options.CATEGORY_CLASS_ID, new Long( 82414 ));
    catDef1[1] = new NamedValue( Options.CATEGORY_DEFINITION_ATTRIBUTES, attrNV1 );
    fileMeta[ 3 ] = new NamedValue( Options.CATEGORY_DEFINITION, catDef1 );
    NamedValue[] attrNV2 = new NamedValue[1];
    attrNV2[0] = new NamedValue( "CUSTOM_82789", "Ma valeur2");
    NamedValue[] catDef2 = new NamedValue[2];
    catDef2[0] = new NamedValue( Options.CATEGORY_CLASS_ID, new Long( 82790) );
    catDef2[1] = new NamedValue( Options.CATEGORY_DEFINITION_ATTRIBUTES, attrNV2 );
    fileMeta[ 4 ] = new NamedValue( Options.CATEGORY_DEFINITION, catDef2 );
    Item doc = fileM.createDocument(fileMeta, null, null);
    Only last CATEGORY_DEFINITION is created.
    Is this normal behavior or can I create multiple category instance at document creation?

    I dont know why this is not working. I think It might be a bug.
    you can create multiple category instances using fileM.updateDocument()

  • Creating Multiple Response Questions.....

    Hi.
    I'm looking at updating a load of Java Applets here at work
    accross to Flash.
    I'm not looking at using the quiz templates but wondered if
    anyone can help me out?
    Basically I need to create a multiple response question using
    an xml file and was wondering on the best way to achieve this?
    Any help would be much appreciated.

    I need to use an xml file for the questions and answers.
    And there are more than 1 correct answer for the questions.
    I'm pretty new to actionscript so a few pointers in the right
    direction would be a great help to me.
    Should I be using the xml component? The dataset components?
    Check box components for the questions?
    How do I get the xml to interact with the flash.... sorry for
    all the questions.

  • How to create multiple AD instances

    Hello Everyone,
    I have a requirement to create different resource object for different type of accounts (as recon rule is different for them) under same AD resource. For that i exported the resource object ( AD User--removing dependency), process (AD User) and process form (UD_ADUSER). In resource object i replaced "AD User" with "AD User1" and tried to import it but it gives me error on updating 'RRL' and 'SDC' tables. Same happens for process (Change AD User to AD User1, UD_ADUSER to UD_ADUSER1, Lookup.AD.Configuration to Lookup.AD1.Configuration) and process form (change UD_ADUSER to UD_ADUSER1, AD User to AD User1, tdUD_ADUSER to tcUD_ADUSER1[data object]).
    I checked that RRL and SDC tables contains the recon rules and column metadata respectively but i am not able to find out why it is Showing me the error on updating these tables. Does anybody achieved this and what is the best and easiest way to create the multiple instances?
    I am just trying to create multiple instances manually here :)

    Thanks Evolution...i actually missed out this lookup....
    Now provisioning is working fine for other resource object also...
    I have one more doubts regarding child table...i am using the same child table UD_ADUSRC for this resource object also and when i assigned any group membership thru this child table (in AD User1) it gives me DOBJ.insert failed error. I have checked the tasks (+Add user to group, Remove user from group, update user to group+) and all are referring the correct attrs (as in AD User). There is mapping defined in Resource Object and Process definition for Reconciliation also but recon any user with group membership is also giving me error...
    can't we use one child form in two process forms ? any other configuration which i should check?
    I am using the same look up for Reconciliation mapping attrs for both the resource objects (AD User and AD User1)....

  • How to create multiple component instances at runtime using java

    Hi,
    I need to create component instances at runtime using java.I found ComponentSet.add method.But I am not finding a way to get handle of ComponentSet.
    I see methods with params of IRuntimeNode.But how to get ComponentSet from IRuntimeNode.
    If anybody knows or have sampel code then please share with me.
    thanks,
    ashok

    Ashok --
    This is a common challenge for those using Configurator Extensions with multiple instantiation for the first time. The problem is that the CIO's representation of the structure for multiply-instantiable Components differs slightly from what both Configurator Developer users and Configurator Runtime users see in those respective applications. Multiply-instantiable Components are not direct children of the Model in which they're defined. Internally, there is an entity that sits between the parent Model and the instantiable Components; that intermediate entity is the ComponentSet object you've found in the CIO documentation.
    If the name of your multiply-instantiable Component is "My Component", then its ComponentSet may be accessed simply by calling getChildByName("My Component") on its parent Model; a List of the instantiated Components may be accessed with the ComponentSet's getChildComponentNodes() method, and instances may be added and deleted using its add() and delete() methods.
    Hope this helps.
    Eogan

  • Create multiple Task Instance from one Task Instance

    We have a process, where user can request for multiple resources(access) in one single request.Currently user has to wait until all the resource requests are approved by application owners to start the provisioning process.
    I am thinking of splitting that one request(task) into multiple task, based on the number of resources requested.so that, if one resource request is approved user can get that particular access.
    My question :
    1.How will I split the one task into multiple task and pass the required information to child task?
    2.How do I handle views?Currently since its one task , we checkout and check-in the same view.
    3.How will I overcome the possibility of one view overwritten by the other.
    Thanks.

    We have a process, where user can request for
    multiple resources(access) in one single
    request.Currently user has to wait until all the
    resource requests are approved by application owners
    to start the provisioning process.
    I am thinking of splitting that one request(task)
    into multiple task, based on the number of resources
    requested.so that, if one resource request is
    approved user can get that particular access.
    My question :
    1.How will I split the one task into multiple task
    and pass the required information to child task?
    2.How do I handle views?Currently since its one task
    , we checkout and check-in the same view.
    3.How will I overcome the possibility of one view
    overwritten by the other.
    Thanks.Hi,
    yes u can split one task into multiple task means as ur requirment diffrent task for different resource. so u have to write diffrent W/F for each resource and call them by setting a counter for number of resource.
    the below code help u.
    <Variable name='index'>
              <i>0</i>
         </Variable>
    <Activity id='1' name='createNewTask'>
              <Action id='0' name='createView' application='com.waveset.session.WorkflowServices'>
                   <Argument name='op' value='createView'/>
                   <Argument name='type' value='Process'/>
                   <Argument name='viewId' value='Process'/>
                   <Argument name='taskName'>
                             <s>give any name to the task</s>
                   </Argument>
                   <Argument name='process'>
                             <s>task name that u want to launch</s><!-- u can get task name dynamicly by rule also by passing resource name -->
                   </Argument>          
                   <Argument name='accountId' value='$(accountId)'/><!-- pass the required information to child task as argument -->
                   </Action>
                   <Action id='1' application='com.waveset.session.WorkflowServices'>
                   <Argument name='op' value='checkinView'/>
                   <Argument name='view'>
                        <ref>view</ref>
                   </Argument>
                   </Action>
                   <Action id='2'>
                        <set name='view'>
                        <null/>
                        </set>
                   </Action>
                   <Transition to='incrementIndex'/>
    </Activity>
         <Activity id='2' name='incrementIndex'>
              <Action id='0'>
                   <set name='index'>
                        <add>
                             <ref>index</ref>
                             <i>1</i>
                        </add>
                   </set>
              </Action>
              <Transition to='createNewTask'>
                   <lt>
                        <ref>index</ref>
                        <ref>length</ref><!-- number of resource-->
                   </lt>
              </Transition>
              <Transition to='end'/>
         </Activity>

  • One Oracle Application Server and multiple OC4J Instances

    While we are getting new server (for development) we have to set-up a Development and Production enviroment for our project (dont have previous OAS installation) but on the same machine.
    So, is a good option to have One OAS INstallation (Ora Home) and then create multiple OC4J instances, one for each environment (Development, QA and Production)?, is it possible? How to manage deployments between OC4J instances, simulating different contexts if they are in the same server and under the same HTTP Server? Will be there conflicts?

    Hi,
    you can do this and OracleAs will manage the different instances. The deployment can be done with Enterprise Manager in which case you select the OC4J instance first before deploying. If deploying from JDeveloper, you can specify the OC4J instance when creating the named connection
    Frank

  • Multiple JVM instances

    Dear all,
    I am trying to create multiple JVM instances using createJavaVM(...) but I can't do it. When I try to create the second instance, the function returns an error.
    Does anybody know about getting multiple JVM instances running??
    Thanks in advance,

    Hallo,
    createJavaVM(...) trys to create a JVM in your current
    process, so I am not surprised that you get an error
    the second time round, because there is already a JVM
    in the process. If you want multiple JVMs, each needs
    to be in its own process.
    Why do you want to create more than one JVM in your
    process? The JVM is multithreadable, and you can start
    more than one thread in the JVM. Would that do what
    you want?I need multiple instances because my application needs nearly 2Gb of memory and the maximum heap I get is 1700 Mb. I think with multiple instances, I'll get it.
    Do you know about getting a bigger heap??
    >
    David Singleton
    [email protected]

  • Multiple component instances for one component usage

    Hi,all
    How can I create multiple component instances for one component usage.
    I'm using the following code for creating  a single component instance for specific component usage:
    if(c_Usage.hasActiveComponent())
          c_Usage.deleteComponent();
    if(wdContext.currentContextElement().getSelectedTab().equalsIgnoreCase("Registered"))
          c_Usage.createComponent("health.gov.registered.Registered";);
    I can't create one more component instance for
    IWDComponentUsage c_Usage
    cause I have to delete the component instance associated with this component usage.
    Any idea how can I do it anyway?
    Regards,
    Michael

    Hi,
    To create another instance of the same component you need to embed the same component under the Used Components more then once. For Example if you have Componet A to which you want to embed Component B then under "Used Components" of Component A add component B twice.

  • Running Multiple Server Instance in Weblogic Server

    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my application server
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't find any
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool for connectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is there some
    other way to do it.
    Thanks in advance
    Niranjan

    There is an answer on your first question at
    weblogic.support.interest.clustering
    I asked a similar question. Search for a message posted by me on 24/11/00
    Rgds,
    Mike
    "Niranjan Soni" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my applicationserver
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't findany
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool forconnectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is theresome
    other way to do it.
    Thanks in advance
    Niranjan

  • Multiple jvm/instances/auto restart

    Hi
    I have two mid tiers and both are load balanced by BigIP load balancer .
    I want to know the following
    1. How can I increase the jvm process and what is it's advantages/disadvantages ?
    2. Is it possible to set automatic restart feature in the Application server ?
    3. In some article I found that we can create multiple oc4j instance and give the same
    context root . What is the advantages/disadvantages ?
    4. Is there any feature in the app sever for monitoring like if the appserver uses more resources or crashes we can send email to the administrator ?
    Thanks,
    Suneesh

    Hello,
    My answer is based on the fact that you are using OracleAS 10g (R1, 2 or 3) -which one are you using?-
    OPMN: Oracle Process Management and Notification is the service in charge of starting and monitor the status of a process such as OC4J and its related JVM. Take a look to the OPMN documentation of your release. (and Administration Guide)
    To have multiple OC4J that use the same context root (same application deployed) you need to have an instance with cluster enabled for several process of the same instance. Take a look to the deployment and configuration guide of your App server version.
    OPMN, Clustering, and Oracle Deployment guides will answer the 4 questions you have.
    Regards
    Tugdual Grall

  • Multiple Response Sheets for one form

    Hello,
    Can anyone tell me how to create multiple response sheets for the same form?
    For example, my sales team needs to send the form out to different companies, but needs their responses sepearted to analyze.
    Please Help!

    Hi,
    You can only have one active Response Sheet per form, this means that while you are using the same form for different companies, the responses that everyone submits will go to this one response sheet.
    However, if you just want to add other sheets in the 'View Responses' tab, for backing up data or other purposes, you can select Insert menu/Sheet in the 'View Responses' tab
    In your case, it sounds like you need a form per company or you can use one form and have a field requesting the user to enter the company name (or you can have a drop down for the user to select a predefined list of companies) and then once you received all the responses, you can sort or filter the responses in the table based on the company name, for example. Or export your responses in Excel format, and do the analysis there.
    thanks,
    Lucia

  • How can I force TestStand to create multiple instance of an activex server instead of share the same reference?

    Hi, All:
         I am trying to migrate a application coded by VC++ to TestStand+CVI. This application opens multiple serial com ports and send commands to test targets, and get responses from these targets. The VC++ application creates multiple thread, and every thread create an activeX server instance which is responsible for opening serial port,sending test commands ,and getting response. It works fine as every thread has itsown activeX instance, so data and commands can be handled in the right serial port successfully.
         Yet when I works on TestStand, I got problems. I choose parallel model as the process model. I create a activeX object reference with AxtiveX/COM Adapter, and store the reference in a sequence local varialbe. If there is only 1 testsocket, It is OK. But if there are multiple test sockets, and communication between the application and test targets will be directly to the last test target. I try to popup a message within a execution to indicate the value of the activeX object reference, and all of them are identical. But this is not the behavior I want.
        So, is it possible to force TestStand to create independent instances of an activeX server? How can I make it work?
    Thanks

    Thanks for your comment, Dan.
          Yet I do get problems as none of us know how to program an activeX server so that it can be forced to be a single-instance or multiple-instance.
    As I mentioned earlier, there is existing application which is written by VC++ can create multiple instances of this activeX server, all I have to do is to create multiple threads, and initiate an instance of this server to contrl multiple test targets.
         My colleague said he creates the server with VC++ ATL, and cofigure it to be dual-interface and STA. And in the VC++ application side(client side), I use smart-pointer in threads to create an instance of the server:
     IMySerialServer pIMySerialServer;
      HRESULT hr = pIMySerialServer.CreateInstance("UUTCmd.MySerialServer");
      if(FAILED(hr))
       AfxMessageBox("Fail to create instance.");
    And then I got multple instances of the activeX server. Every thread can have itsown com port, can send/receive commands indepently. I have no idea how can I make it work on TestStand. Would you show me some reference documents or sample codes?
    Thank you
    Cipher

  • Can I create multiple instances of  realplayer plug-in in one jsp page?

    I want to play meny video files in one jsp web page, these video files are to be played with the embeded plug-in of realplayer, each plug-in was linked(use its SRC property) a different video file. But, to my surprise, when I press the play button, every player played the same video file,not its specified file.
    I have no idea why it did so and what can I do?
    Whether can I create multiple instances of realplayer plug-in in one jsp page, that is to say, each instance is independent of others?
    thanks in advance!

    Generally speaking, Internet Explorer tries not to launch multiple versions of a plug-in. So what's happening is that you load the first video clip, and then before it has a chance to play, you load the second video clip into the same window. (It's like changing songs in WMA.)
    In some cases - this may not work for Real Player, but it's worth trying - if you spawn a new window through a hypertext link and then launch the plug-in in that window, IE will treat it separately. Otherwise, you could not, for example, run two Macromedia Flash applications from different web sites at the same time.
    Keep in mind that only one program can access the soundcard at a time, so Real Player may purposely "pause" or "cancel" other video streams until the active one finishes. If you were using the desktop version, selecting another video by any means aborts the currently running video (i.e., RP won't let you create a separate instance of it).
    The easiest solution is to create a wrapper JSP file that takes the name of the video clip, and plays it. Call that JSP and specify that it should be opened in a new window via the TARGET keyword in the anchor tag. Then hopefully RP itself won't block a second window from running.

Maybe you are looking for

  • My Sine Wave File sounds different in Logic than iTunes

    I am working on creating musical compositions with embedded sine wave patterns (which I am generating in a foriegn application). These sine waves are designed to entrain the brain to different frequencies to facilitate in stimulating meditative state

  • Script Works In Simulator, Fails After Project Build

    I have a DSP3 project that consists basically of the following: One menu with 5 buttons. 5 tracks I wrote a script that uses SPRM8 to determine which button was last used and to display that button when the user returns to the menu. The script works

  • Google sheets for blackberry Q10

    Hey, does blackberry Q10 have Google sheet App? Thank you,

  • Problem with downloading adobe reader

    i have windows vista home, internet explorer 8. any time i try to download adobereader it says that my explorer crushes... is there any solution for this problem???

  • Can multi-colored round ball be stopped?

    The round multicolored ball comes up and continues sometimes for several minutes......is this pesky little thing stoppable? Is it only with Mac's? I am hoping someone out there has a method of destruction for that little ball..........thanks!