Write from a Servlet directly into Dropdownmenu...

Hello
Is it possible to write directly from a Servlet into a Dropdownmenu?
I have a jsp Site with form tags, and the dropdownmenu exists. I don't create it with the servlet.
Thanks Tomi

Hello
Is it possible to write directly from a Servlet into a
Dropdownmenu?yes, you could create the dropdown source from the servlet or even better from the existing jsp page.

Similar Messages

  • How to write from a servlet to it's war file?

    We need to be able to write a file from a servlet into the document root
              area to it can be accessed by a browser. Before we used war files, we
              would simply figure out the real document root directory and write the
              file somewhere under it. How would I do this when my application is
              packaged as a war? I don't see a way to write to a "xxx.war" file and
              if we run from an exploded war, how do I determine the location of the
              document root at runtime from the servlet? I don't want to have to hard
              code the path or make each installation specifiy it in a properties
              file. It seems there should be a better way to handle this. Any ideas?
              

    Thanks for your help. Not to beat this to death but say I want a response that
              includes a bunch of HTML generated by a servlet or JSP and in the middle I want
              a dynamically created image. So basically I want an <image> tag in the middle
              of the html returned. Could I dynamically generate the image and add it to the
              response in the middle of the servlet/JSP processing? I thought the only option
              would be to return an html page the referred to an image via an <image> tag.
              What do you think?
              Kirk
              Cameron Purdy wrote:
              > Hi Kirk,
              >
              > Yes, you can accomplish all of those things without writing files out.
              > Writing files will severely degrade performance in many cases, and will lead
              > to certain classes of bugs such as those caused by multiple browsers within
              > the same process or rampant use of "back" lists. (That's a long-winded way
              > of saying persistent state on the server that reflects a client's transient
              > state has a way of being wrong, sooner or later.)
              >
              > All you have to do is return a URL that includes the necessary information
              > to get the picture. You do that now by creating a random thingamabob name:
              >
              > http://www.mysite.com/myapp/thisisarandomname12345.jpg
              >
              > Instead of random, try:
              >
              > http://www.mysite.com/myapp/thisisthepictureforemployee-17.jpg
              >
              > The issues are the same (someone trying to guess URLs) but you do have the
              > problem that the URLs are easier to guess because they follow a pattern.
              > You should secure-check each request anyway. (Lots of tricks for making
              > that very efficient, but that is a book in itself.)
              >
              > So what serves up the .jpg? A Servlet!!! It gets the request, builds (or
              > reads from db or whatever) the .jpg image and streams it out. Now you get
              > 3-4 times the performance and a much more orderly arrangement of URLs etc.
              > that can now be "saved" and "bookmarked" etc. Also no congested temp dirs
              > etc.
              >
              > Peace,
              >
              > --
              > Cameron Purdy
              > Tangosol, Inc.
              > http://www.tangosol.com
              > Tangosol Server: Enabling enterprise application customization
              >
              > "Kirk Everett" <[email protected]> wrote in message
              > news:[email protected]...
              > > What I want to do is one one servlet request generate an image file in the
              > doc
              > > root and then return a page back to the browser that contains an image tag
              > > referring to the generated image file. I also want to be able to generate
              > a file
              > > of data based on a user's posted selections and then present them with a
              > link to
              > > download the file. If I don't write these to disk in the docroot how
              > would I
              > > give the user a link to them? Is there a better way? Thanks for your
              > help.
              > >
              > > Kirk
              > >
              > > Cameron Purdy wrote:
              > >
              > > > Yes, if you have to write a file (either because you expect it to be
              > used
              > > > many times or you wish to assemble a huge (>1mb) response without using
              > > > memory), then do so to a temp or working dir. There is no reason to use
              > the
              > > > doc root at all for that, other than to use FileServlet, which is eaily
              > > > replicated for your own specific purposes. For the most part, there is
              > no
              > > > reason to write the file, since you can write the response back to the
              > > > browser just as easily as to a file.
              > > >
              > > > Peace,
              > > >
              > > > --
              > > > Cameron Purdy
              > > > Tangosol, Inc.
              > > > http://www.tangosol.com
              > > > +1.617.623.5782
              > > > WebLogic Consulting Available
              > > >
              > > > "Kirk Everett" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > I agree that in general this should be avoided but we have two cases
              > where
              > > > we
              > > > > need to write a file to the
              > > > > the document root. The first is we allow the user to generate a file
              > and
              > > > > download it to thier machine. So in
              > > > > one servlet the user selects the data and submits the form. The
              > servlet
              > > > then
              > > > > writes a file to the docroot and
              > > > > the user is then presented a link where they can download the file.
              > The
              > > > second
              > > > > is when we want to generate
              > > > > a chart image in a gif. The servlet writes the image to the docroot
              > and
              > > > another
              > > > > JSP refers to the image in an
              > > > > image tag. In both cases we are using mangled names and we clean up
              > the
              > > > files.
              > > > > Do you have a better solution?
              > > > > Thanks for your help.
              > > > >
              > > > > Cameron Purdy wrote:
              > > > >
              > > > > > Writing to a deployed application is generally a thing to be
              > avoided.
              > > > Among
              > > > > > other things, it is a potential security issue. Apps should be able
              > to
              > > > be
              > > > > > locked down (no OS write access except non-exec temp space). I
              > suggest
              > > > not
              > > > > > doing writes if at all avoidable. What are you trying to
              > accomplish?
              > > > > > Perhaps stream back a big file?
              > > > > >
              > > > > > Peace,
              > > > > >
              > > > > > --
              > > > > > Cameron Purdy
              > > > > > Tangosol, Inc.
              > > > > > http://www.tangosol.com
              > > > > > +1.617.623.5782
              > > > > > WebLogic Consulting Available
              > > > > >
              > > > > > "Kirk Everett" <[email protected]> wrote in message
              > > > > > news:[email protected]...
              > > > > > > We need to be able to write a file from a servlet into the
              > document
              > > > root
              > > > > > > area to it can be accessed by a browser. Before we used war files,
              > we
              > > > > > > would simply figure out the real document root directory and write
              > the
              > > > > > > file somewhere under it. How would I do this when my application
              > is
              > > > > > > packaged as a war? I don't see a way to write to a "xxx.war" file
              > and
              > > > > > > if we run from an exploded war, how do I determine the location of
              > the
              > > > > > > document root at runtime from the servlet? I don't want to have
              > to
              > > > hard
              > > > > > > code the path or make each installation specifiy it in a
              > properties
              > > > > > > file. It seems there should be a better way to handle this. Any
              > > > ideas?
              > > > > > >
              > > > >
              > >
              

  • How to load properties from csv file directly into a .dll parameter in a test step

    Hi,
    I would like to take values from a property file  and plug them directly into parameter used to invoke dll calls.
    I have looked at examples on how to use the property loader to input test limits, but I cannot figure out how to pipe into the params.
    I have tried. <step name>.Module.<param name>
    step.propertieslist[0].
    Any ideas?
    Thanks,
    m
    Solved!
    Go to Solution.

    I agree that it would be nice.  The difference between limits and parameters though is that parameters are set dynamically.  What I mean by that is you never know how many parameters a step will have until you define the module. Whereas the Limits are always set in stone.  The only difference is the MultiNumeric Limit Test which is just an array that get's appended too with the same datatype.  And the only acess to a parameters value is through the API unless it is a variable.
    The other hard part is that you don't know the datatype of parameters.  Any step can have any number of parameters as well as any datatype being passed to each individual parameter. 
    I think if you are set on NOT creating Locals or FileGlobals then you would need to create custom step types with subproperties that get assigned to the parameters.  This could be even more painful though because now you have to maintain and support the custom step types.
    The other option would be to create your own property loader step that could call in and set things in the API.  HMMM now that would be an interesting project...
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Load XML data from UNIX Server Directly into Relational Database Tables

    Is there a way I can load data from an XML File into Oracle Tables , without having the Input XML file in some Oracle Server Directory. My XML File resides on UNIX Application server. And I need to directly load the data into Database tables. Without loading them into the Database Directory.
    Also I am looking for a solution that would not load my Database much and effect other running processes. Can it be done using SQL Loader ?
    Oracle Database Version is : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

    Thanks for your reply ,
    Please would you quote an Example about : 'Load the file into that table using SQL*Loader'  (From UNIX Server) Or instance of some existing thread that relates to my situation.
    The Size of the File would be about 3 GB. For a similar requirement one of my peers Code which used XMLTABLE and XPATH Approach consumed a lot of resources while running and caused the other Database Applications to slow down. Thus those guys have come up with an approach to :
            Parse XML using a C Code using some STRING Functions =>  For a CSV or Fixed width .dat file and then use SQL Loader to just load the file into Tables.
            This approach is efficient in terms of Resources and Time(Takes 5 mins). But I am not confident about parsing XML based on String based C Functions.
             Please comment about this approach . Also if possible Suggest the best efficient way of doing this.

  • Import From iPhone 3GS Directly Into iMovie '09?

    I don't think this is possible. Can you import from your iPhone 3GS directly into iMovie '09?
    With my iPhone 3GS docked, if I go to File > Import from Camera… the only device I get is my iMac's iSight camera. Why doesn't the iPhone 3GS show up?
    Yes, I know you can import videos into the Finder using Image Capture. And you can import them into iPhoto and THEN into iMovie. But how come you can't go directly from your iPhone 3GS into iMovie '09?

    You right about the iPhone 3Gs work-flow:
    _ Connect your iPhone 3Gs to your Mac
    _ Launch iPhoto
    _ Import the iPhone 3Gs videos using iPhoto
    _ Launch iMovie
    _ iMovie automatically detects the videos from iPhoto & requests if you want to Generate Thumbnails
    _ Then go to the iMovie > Event Library > iPhoto Videos

  • How do i scan from canon 9000f directly into photoshop cc?

    Just purchase Canon 9000f scanner and I don't want to use the "my image garden". I want to scan directly into Photoshop CC, but can't figure it out.

    For the Mac version of Photoshop, there is File > Import > Images from Device...   Auto Selection is set to "Detect Separate Items". Do you have that option?  (Mavericks 10.9.4)
    Is that what you are looking for?  It will scan the two maps separately and bring them in to Photoshop CC 2014 as scan.png and scan1.png
    Gene

  • Is there a way to download emailed videos from iphone 4 directly into iphoto rather than the finder

    How can I download an iphone 4 video someone has emailed me directly into iphoto,  how can I get the ones I have already downloaded from my finder to iphoto?

    susanfromnewbury park wrote:
    How can I download an iphone 4 video someone has emailed me directly into iphoto,
    You can't. Iphoto will only import movies taken by the phone directly. Move the video to the Mac and then import it.
      how can I get the ones I have already downloaded from my finder to iphoto?
    Same as any other material: File -> Import to Library or drag them to the iPhoto Window or iPhoto icon on the dock.
    However, not all video formats are supported.
    Regards
    TD

  • Can I download photos from my camera directly into PSE Editor?

    I am using Mac OSX Lion v 10-7.  If I install the PSE Editor from the Apple App store, will I be able to download my photos directly from camera into PSE Editor? I would like to process my photos with PSE as
    I have done for many years with Windows, then, after fine-tuning them, place them in a location of my choice.   I guess what I need to know is:  Is the PSE Editor sold by Apple App Store a stand-alone app, or
    is it tied-in some way with iPhoto wherein the user must go thru iPhoto to PSE,  then back to iPhoto for display in an album.  A last question: does anbody know for sure that Adobe has worked out all the "kinks"
    of PSE 10 in re to OS X Lion.  Thanks all, from a beginning iMac user.

    You don’t get the Organizer with the app store version; so you would be best to buy the boxed product or download the 30 day free trial from Adobe which is the full product.
    Otherwise if you are prepared to operate differently to how you did in Windows, you can use the iPhoto Library with the Elements Editor set up as your external editor or simply use the app on a stand alone basis, opening images in the editor directly from folders.
    FAQ
    http://helpx.adobe.com/photoshop-elements/kb/purchases-mac-app-store-faq.html
    Using iPhoto with Elements
    http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-iphoto-mac-os.html

  • Writing from Stored Procedure directly into a file...

    Hi guys,
    I would like to write the results of a stored procedure into a file. Indeed, I am calling a Stored Procedure from a script and I would like to write the result of that procedure to a file and not a table.
    Thanks guys,
    Pipoca

    Hi,
    The UTL would be nice, but since I am calling the procedure from a unix script and *I wanted to keep the file in the unix machine* I don't believe this is the solution.UTL_FILE - will refers to a directory - which resides on Server - I Hope your DB is placed on Unix and you script is exeucted from their only. Then obviously your resulted file and source exits on unix machine only.
    HTH
    - Pavan Kumar N
    OCP- Oracle 9i/10g
    http://oracleinternals.blogspot.com

  • Can i drag a clip from the desktop directly into the timeline without importing it

    its seems so easy now
    maybe I've been blind to this option before on 10.1.1
    simply dragging  from the desktop or its source a clip to the story/ timeline itself not having to use   file> import media
    which is a lot of steps IMHO
    i notice when i do it also enters the library above where clips are seen and read to be dragged on the story line
    so
    is this incorrect ?
    thanks
    anyone

    By dragging it into the timeline you're importing it based on your import preferences. Great for single clips.

  • I cannot import images from my camera directly into Elements Organizer

    I am trying to import images into Elements Organizer from my Canon EOS 6D, but it doesn't work properly. I am expecting the images to appear in the Elements Organizer, but the images are only imported onto disk. At the moment I have to re-import images from the disk location as a second step. How can I perform this in one step, as I have seen this in the tutorials?
    I am on a Mac using Yosemite using version 13 of Elements Organizer.

    There is no "into". LR and PS just reference your photos on the hard drive.
    When you import your photos "into" the LR catalog, LR can copy the images off your memory cards to the hard drive if you have not already copied them, but the photos are referenced by the LR catalog by the path and filename for the files.
    If you are having problems getting the images off the cards, what steps are you using and what error messages are you getting?

  • How to save actions from exchange going directly into CS3

    I posted this in the NAPP forum, but I haven't gotten a solution yet. I hope someone here can help.
    I downloaded quite a few actions from Adobe exchange. When I did, I got the choice to either put them in a folder or open them in CS3. Many I just clicked to open in CS3. It was more time efficient. However, there are many of them, and I was looking specifically for a cartoon effect (which I don't use very often--special project) However, while I was looking, I found many other interesting actions. Anyway, I would like to clean up the actions area and bring up only the ones I use all the time. Generally I hit clear actions or reset actions and then I bring back in the ones I want. I'm afraid to do this because these actions are not listed in the actions folder. What will happen to them? Will they go away? There are quite a few of them, and I don't want to have to redownload them. Since they are not listed in the actions folder, how can I get them listed and make sure that I can access them again?
    I have tried creating a set to move them into. That didn't work. I tried highlighting all of them to put in a set. That didn't work. If they are selected, the flyout menu save actions in grayed out. How do I get them into the action folder?
    Any help would be appreciated.
    There are a lot of great brushes and things in the exchange, too. That I will tackle next after I figure out what I'm doing with the actions. (With help from the forum, of course)
    Thanks

    Good point: One can only save one Action Set at a time.
    Photoshop really doesn't care where you save .atn files. In other words the folder in which one saves Action Sets (via Save Actions... or via download from the Internet) does not have to be
    \Presets\Actions
    The benefit of saving .atn files in \Presets\Actions is the file names of .atn files in this folder show up at the bottom of the Actions Palette menu, facilitating easy loading into the Actions Pallete. For .atn files saved elsewhere, the Load Actions... command will do the trick.
    >re: I know I physically saved them into folders, but I should be able to see them somewhere, shouldn't I?
    Yes.
    Try this (assuming you are using Windows XP; if Vista it will be something of this nature):
    * Start > Search > For files or folders
    * Type .atn in the box labeled "All or part of the file name"
    * Click 'Search'
    When the search is complete, you should see the .atn files you saved plus any others on your computer.
    Hang in there. You'll be an action monster before you know it. :)

  • Will BusinessView + BIAR from XIr2 import directly into 2008 Server?

    Customer is looking to deploy on Windows Server 2008 and wants to use Crystal Server 2008.  Can they import the Business View and BIAR files from an XIr2 installation or do the individual reports need to be upgraded first?  Note that they will not have an existing XIr2 server - just the Business View and BIAR files that are from a XIr2 server.

    No one - yes - if you're excluding any but the Crystal Reports Designer people hanging out in this forum.
    You might try over at Business Objects -> BusinessObjects Enterprise Admin forum for migration questions.
    Sincerely,
    Ted Ueda

  • Putting code from .as files directly into a frame instead

    Hi,
    I have a situation where I am modifying a working FLA file to work in just one Scene of a project I am working on.
    The FLA file is linked to two external .as files.
    I would like to take that code and call it from Fram 1 of the Scene as it will only but used for that scene and I do not want it affecting the other scenes.
    I removed the package wrapper and changed any private function/public function just to function etc.
    part of the issue is calling on Movieclips in the library.
    I am trying to use drag and drop to drag Movieclips to Target transparent Movieclips.
    The .as files uses:
    import THE;
    In a function I use:
                the = new THE();
                addChild(the);
                the._targetPiece = tTHE_mc;
                the.addEventListener(MouseEvent.MOUSE_UP, checkTarget);
                the.x = 103.50;
                the.y = 72.60;
    I get an error for the "import THE;" as error 1046: Type was not found orwas not a compile-time constant: THE
    I get the error for the function reference as: error 1180 call to a possibly undefined method THE
    Any advise would be grateful.

    Hi,
    Yes,
    The movieclip THE is in the Library.
    I click on it and it displays in the preview window.
    It has the Class name of THE and the base class of: flash.display.MovieClip
    This why I am flustered by this, it should work.
    Here is the complete code: There are actually five Movieclips, each one is a word:
    ==========================================================
    stop();
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        import flash.filters.DropShadowFilter;
        import THE;
        import BOY;
        import KICKED;
        import HIS;
        import BALL;
            var _targetPiece:*;
            var _origX:Number;
            var _origY:Number;
            var _totalPieces:Number;
            var _currentPieces:Number;
            var the:THE;
            var boy:BOY;
            var kicked:KICKED;
            var his:HIS;
            var ball:BALL;
            function DragGame()
                _totalPieces = 5;
                _currentPieces = 0;
                createPieces();
            function createPieces():void
                the = new THE();
                addChild(the);
                the._targetPiece = tTHE_mc;
                the.addEventListener(MouseEvent.MOUSE_UP, checkTarget);
                the.x = 103.50;
                the.y = 72.60;
                boy = new BOY();
                addChild(boy);
                boy._targetPiece = tBOY_mc;
                boy.addEventListener(MouseEvent.MOUSE_UP, checkTarget);
                boy.x = 165.25;
                boy.y = 72.30;
                kicked = new KICKED();
                addChild(kicked);
                kicked._targetPiece = tKICKED_mc;
                kicked.addEventListener(MouseEvent.MOUSE_UP, checkTarget);
                kicked.x = 247.05;
                kicked.y = 72.30;
                his = new HIS();
                addChild(his);
                his._targetPiece = tHIS_mc;
                his.addEventListener(MouseEvent.MOUSE_UP, checkTarget);
                his.x = 323.85;
                his.y = 72.30;
                ball = new BALL();
                addChild(ball);
                ball._targetPiece = tBALL_mc;
                ball.addEventListener(MouseEvent.MOUSE_UP, checkTarget);
                ball.x = 379.60;
                ball.y = 72.75;   
            function DragDrop()
                _origX = this.x;
                _origY = this.y;
                this.addEventListener(MouseEvent.MOUSE_DOWN, dragMovie);
                this.addEventListener(MouseEvent.MOUSE_UP, dropMovie);
                this.buttonMode = true;
            function dragMovie(event:MouseEvent):void
                this.startDrag();
                this.filters = [new DropShadowFilter()];
                this.parent.addChild(this);
            function dropMovie(event:MouseEvent):void
                this.stopDrag();
                this.filters = [];
            function disable():void
                this.buttonMode = false;
                this.removeEventListener(MouseEvent.MOUSE_DOWN, dragMovie);
                this.removeEventListener(MouseEvent.MOUSE_UP, dropMovie);
            function checkTarget(event:MouseEvent):void
                if(event.currentTarget.hitTestObject(event.currentTarget._targetPiece))
                    event.currentTarget.x = event.currentTarget._targetPiece.x;
                    event.currentTarget.y = event.currentTarget._targetPiece.y;
                    event.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, checkTarget);
                    event.currentTarget.disable();
                    _currentPieces ++;
                    if(_currentPieces >= _totalPieces)
                        gotoAndStop (5);
                else
                    event.currentTarget.x = event.currentTarget._origX;
                    event.currentTarget.y = event.currentTarget._origY;
                    //gotoAndStop (7);

  • Audioselection from file directly into multitrack

    Hi there,
    would you be so kind to give me some advice on these 2 questions I have.
    1. how can you put a selection (and not the whole file) of an audio file directly into the multitrack. Under the windows version this was control + M. But I can't find this in the C5.5. Although copiing small parts and putting them afterwards into multitrack is an option I would prefer putting it directly into multitrack. (and continue working on the audiofile-screen)
    2. as a fresh Mac-user I can't find the option where to put audio from the web directly into the audiofile. I can only record from my internal mic. This could be a question for a Mac-forum but you guys are pretty smart so I've heard.
    Thank you so much. Derk.

    To insert a selection into multitrack, right-click the selection and choose Insert into Multitrack and select the destination session.  On Mac, the shortcut key for this operation is SHIFT+CMD+I though you can modify it as you like under Edit > Keyboard Shortcuts.
    To record streaming audio to a virtual input (in order to record it to a file) you'll want to install an application such as SoundFlower which allows you to create a virtual audio device and route outputs and from various devices to these virtual input channel.  Audition can then be configured to use this as its default input and capture those streams.  (Note: This is becoming more and more difficult on all platforms as content providers pressure Microsoft and Apple to remove these features in an attempt to protect their content.  The "What you Hear" or "Wave Mix" option that's been available in Windows audio mixer for so long can really depend on the version of Windows and the manufacturer of your audio device anymore.)

Maybe you are looking for

  • 10g Client crash on Windows XP Pro 64bit

    Wenn connecting to an Oracle 9.2 Server, the Client crash with Coredump. ncluded to Dumps with deliverd Java 1.5.04 and new installed Java 1.5.0.13 # An unexpected error has been detected by HotSpot Virtual Machine: # EXCEPTION_ACCESS_VIOLATION (0xc0

  • Creation of delivery channal for contracting

    Hi, as i understand from my mm friend, we can not create a sub-contracting delivery channal (india) without taking the wip in stores. so, during prod operation prior to sub-contracting operation we should take the halb in stores with 101 movement typ

  • JDeveloper business component browser is very slow

    Hi everyone, A view that runs very fast -- 2 seconds -- through SQL Developer takes an extremely long time -- several minutes -- when using the business component browser in JDeveloper. Any suggestions would be appreciated as I am a newbie with JDeve

  • Can I import a PDF from a URL?

    If I have a URL to a PDF, how can I import that into my Acrobat.com files?

  • Exceptions in file-idoc scenario

    Hi Folks, I am developing a file-idoc scenario. What are the different exceptions I would be needed to handle apart from the following two identified? 1. Mapping issue 2. Problem in posting the idoc (SAP system may be down and others) Thank you