How to to get Struts Action at very first loading

Hi, All;
I was working on Jsp with Struts framework, I do not know how to get the Struts action to run during the very first loading if it is no submit buttons.
When first load of page, I'd like to retrieve data from Action class (or other class) with request, then drop it to request attributes or create a bean.
Because, normally Action class will be invoked in submit on page form which predefined in config files, but my page should get data from class with request at very first loading (without button submit), so can anyone know the way to do this kind of things? Is there other thing need to do in strust-config.xml. I really appreciate your ideas or examples.

Sure. In the url just call that Action's path (e.g /app/myAction.do) which will first fill the data and then send to the desired JSP.
Click Here
When the user clicks on the link the Action would be automatically called. And you can do whatever you need in the Action.

Similar Messages

  • How do i get my actions from CS6 to work on CC?

    How do i get my actions from CS6 to work on CC? The function keys do not work, I have to reload them everyday. I have saved my action set to my desk top and right now I have to reload them everyday, sometimes this helps sometimes it doesn't. Here is my set of actions...
    /version 3
    /name [ 27
    547261636965277320416374696f6e20323031332d20436c6f7564
    /isOpen 1
    /actionCount 9
    /action-1 {
    /name [ 8
      4d6574616c204252
    /keyIndex 0
    /colorIndex 0
    /isOpen 0
    /eventCount 1
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_openDocument)
      /localizedName [ 4
       4f70656e
      /isOpen 0
      /isOn 1
      /hasDialog 1
      /showDialog 0
      /parameterCount 4
      /parameter-1 {
       /key 1668444016
       /showInPalette -1
       /type (enumerated)
       /name [ 7
        43726f7020546f
       /value 4
      /parameter-2 {
       /key 1885823860
       /showInPalette -1
       /type (integer)
       /value 1
      /parameter-3 {
       /key 1851878757
       /showInPalette -1
       /type (ustring)
       /value [ 31
        543a5c4d6574616c5c5f303161706f2d4c61736572204672616d65732e6169
      /parameter-4 {
       /key 1668246642
       /showInPalette -1
       /type (integer)
       /value 2
    /action-2 {
    /name [ 9
      636f6c6f72206d3230
    /keyIndex 6
    /colorIndex 0
    /isOpen 1
    /eventCount 4
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_openDocument)
      /localizedName [ 4
       4f70656e
      /isOpen 0
      /isOn 1
      /hasDialog 1
      /showDialog 0
      /parameterCount 4
      /parameter-1 {
       /key 1668444016
       /showInPalette -1
       /type (enumerated)
       /name [ 7
        43726f7020546f
       /value 4
      /parameter-2 {
       /key 1885823860
       /showInPalette -1
       /type (integer)
       /value 1
      /parameter-3 {
       /key 1851878757
       /showInPalette -1
       /type (ustring)
       /value [ 40
        543a5c436f6c6f7220476c6173735c4672616d65735c4d32302d522d33336d6d
        2d33306d6d2e6169
      /parameter-4 {
       /key 1668246642
       /showInPalette -1
       /type (integer)
       /value 2
    /event-2 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_selectAll)
      /localizedName [ 10
       53656c65637420416c6c
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /event-3 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_copy)
      /localizedName [ 4
       436f7079
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /event-4 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_closeDocument)
      /localizedName [ 5
       436c6f7365
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /action-3 {
    /name [ 13
      4f70656e20436f6c6f72204252
    /keyIndex 5
    /colorIndex 5
    /isOpen 1
    /eventCount 4
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_openDocument)
      /localizedName [ 4
       4f70656e
      /isOpen 0
      /isOn 1
      /hasDialog 1
      /showDialog 0
      /parameterCount 4
      /parameter-1 {
       /key 1668444016
       /showInPalette -1
       /type (enumerated)
       /name [ 7
        43726f7020546f
       /value 4
      /parameter-2 {
       /key 1885823860
       /showInPalette -1
       /type (integer)
       /value 1
      /parameter-3 {
       /key 1851878757
       /showInPalette -1
       /type (ustring)
       /value [ 37
        543a5c436f6c6f7220476c6173735c4672616d65735c42522d36366d6d2d3630
        6d6d2e6169
      /parameter-4 {
       /key 1668246642
       /showInPalette -1
       /type (integer)
       /value 2
    /event-2 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_selectAll)
      /localizedName [ 10
       53656c65637420416c6c
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /event-3 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_copy)
      /localizedName [ 4
       436f7079
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /event-4 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_closeDocument)
      /localizedName [ 5
       436c6f7365
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /action-4 {
    /name [ 14
      4f75746c696e65205374726f6b65
    /keyIndex 0
    /colorIndex 3
    /isOpen 1
    /eventCount 1
    /event-1 {
      /useRulersIn1stQuadrant 1
      /internalName (ai_plugin_outline)
      /localizedName [ 14
       4f75746c696e65205374726f6b65
      /isOpen 0
      /isOn 1
      /hasDialog 1
      /showDialog 0
      /parameterCount 0
    /action-5 {
    /name [ 15
      3130302520416c6c20434f4c4f5253
    /keyIndex 10
    /colorIndex 0
    /isOpen 1
    /eventCount 3
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (ai_plugin_setColor)
      /localizedName [ 9
       53657420636f6c6f72
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 5
      /parameter-1 {
       /key 1768186740
       /showInPalette -1
       /type (ustring)
       /value [ 10
        46696c6c20636f6c6f72
      /parameter-2 {
       /key 1718185068
       /showInPalette -1
       /type (boolean)
       /value 1
      /parameter-3 {
       /key 1954115685
       /showInPalette -1
       /type (enumerated)
       /name [ 10
        434d594b20636f6c6f72
       /value 4
      /parameter-4 {
       /key 2036690039
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
      /parameter-5 {
       /key 1651270507
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
    /event-2 {
      /useRulersIn1stQuadrant 0
      /internalName (ai_plugin_setColor)
      /localizedName [ 9
       53657420636f6c6f72
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 6
      /parameter-1 {
       /key 1768186740
       /showInPalette -1
       /type (ustring)
       /value [ 10
        46696c6c20636f6c6f72
      /parameter-2 {
       /key 1718185068
       /showInPalette -1
       /type (boolean)
       /value 1
      /parameter-3 {
       /key 1954115685
       /showInPalette -1
       /type (enumerated)
       /name [ 10
        434d594b20636f6c6f72
       /value 4
      /parameter-4 {
       /key 1835496545
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
      /parameter-5 {
       /key 2036690039
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
      /parameter-6 {
       /key 1651270507
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
    /event-3 {
      /useRulersIn1stQuadrant 0
      /internalName (ai_plugin_setColor)
      /localizedName [ 9
       53657420636f6c6f72
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 7
      /parameter-1 {
       /key 1768186740
       /showInPalette -1
       /type (ustring)
       /value [ 10
        46696c6c20636f6c6f72
      /parameter-2 {
       /key 1718185068
       /showInPalette -1
       /type (boolean)
       /value 1
      /parameter-3 {
       /key 1954115685
       /showInPalette -1
       /type (enumerated)
       /name [ 10
        434d594b20636f6c6f72
       /value 4
      /parameter-4 {
       /key 1668899182
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
      /parameter-5 {
       /key 1835496545
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
      /parameter-6 {
       /key 2036690039
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
      /parameter-7 {
       /key 1651270507
       /showInPalette -1
       /type (unit real)
       /value 100.0
       /unit 592474723
    /action-6 {
    /name [ 15
      4368616e676520746f207768697465
    /keyIndex 0
    /colorIndex 0
    /isOpen 0
    /eventCount 1
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (ai_plugin_setColor)
      /localizedName [ 9
       53657420636f6c6f72
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 2
      /parameter-1 {
       /key 1718185068
       /showInPalette -1
       /type (boolean)
       /value 1
      /parameter-2 {
       /key 1954115685
       /showInPalette -1
       /type (enumerated)
       /name [ 10
        434d594b20636f6c6f72
       /value 4
    /action-7 {
    /name [ 13
      617070726f76616c2070616765
    /keyIndex 44
    /colorIndex 0
    /isOpen 1
    /eventCount 4
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_openDocument)
      /localizedName [ 4
       4f70656e
      /isOpen 0
      /isOn 1
      /hasDialog 1
      /showDialog 0
      /parameterCount 5
      /parameter-1 {
       /key 1885431653
       /showInPalette -1
       /type (integer)
       /value 1
      /parameter-2 {
       /key 1668444016
       /showInPalette -1
       /type (enumerated)
       /name [ 7
        43726f7020546f
       /value 4
      /parameter-3 {
       /key 1885823860
       /showInPalette -1
       /type (integer)
       /value 1
      /parameter-4 {
       /key 1851878757
       /showInPalette -1
       /type (ustring)
       /value [ 23
        543a5c417070726f76616c2074656d706c6174652e6169
      /parameter-5 {
       /key 1668246642
       /showInPalette -1
       /type (integer)
       /value 2
    /event-2 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_selectAll)
      /localizedName [ 10
       53656c65637420416c6c
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /event-3 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_copy)
      /localizedName [ 4
       436f7079
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /event-4 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_closeDocument)
      /localizedName [ 5
       436c6f7365
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 0
    /action-8 {
    /name [ 6
      4d6972726f72
    /keyIndex 12
    /colorIndex 0
    /isOpen 1
    /eventCount 1
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (adobe_reflect)
      /localizedName [ 7
       5265666c656374
      /isOpen 0
      /isOn 1
      /hasDialog 1
      /showDialog 0
      /parameterCount 2
      /parameter-1 {
       /key 1634625388
       /showInPalette -1
       /type (unit real)
       /value 90.0
       /unit 591490663
      /parameter-2 {
       /key 1668247673
       /showInPalette -1
       /type (boolean)
       /value 0
    /action-9 {
    /name [ 4
      30783079
    /keyIndex 0
    /colorIndex 2
    /isOpen 1
    /eventCount 3
    /event-1 {
      /useRulersIn1stQuadrant 0
      /internalName (ai_plugin_setColor)
      /localizedName [ 9
       53657420636f6c6f72
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 2
      /parameter-1 {
       /key 1718185068
       /showInPalette -1
       /type (boolean)
       /value 1
      /parameter-2 {
       /key 1954115685
       /showInPalette -1
       /type (enumerated)
       /name [ 10
        434d594b20636f6c6f72
       /value 4
    /event-2 {
      /useRulersIn1stQuadrant 0
      /internalName (ai_plugin_transformPalette)
      /localizedName [ 15
       5472616e73666f726d2050616e656c
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 1
      /parameter-1 {
       /key 1954115685
       /showInPalette -1
       /type (enumerated)
       /name [ 23
        4d6f7665207265666572656e636520696e205820746f3a
       /value 0
    /event-3 {
      /useRulersIn1stQuadrant 0
      /internalName (ai_plugin_transformPalette)
      /localizedName [ 15
       5472616e73666f726d2050616e656c
      /isOpen 0
      /isOn 1
      /hasDialog 0
      /parameterCount 1
      /parameter-1 {
       /key 1954115685
       /showInPalette -1
       /type (enumerated)
       /name [ 23
        4d6f7665207265666572656e636520696e205920746f3a
       /value 1
    this is my set of saved actions...i was told to paste it in here...is this what you ment?

    Who told you to post in the scripting forum…? To be honest you a talking to a pretty small selection of AI users here… Actions would be better discussed in the General Fourm where more users use them… That and I don't know a user who posts in this little community who uses CC yet…
    #target illustrator
    var aiActions = File( Folder.desktop + '/YourActionsNameHere.aia' );
    if ( aiActions.exists ) {
              app.loadAction( aiActions );
    } else {
              alert( 'Could NOT locate your Actions' );
    I've no idea if the above works Im using CS5 so can't test… You could try adding to a Startup Scripts folder in your app folder…

  • How triggers are getting into action?

    Dear all,
    We all know that triggers can be on table level (DML) or database level (like DB logon or logoff).
    My question is : how triggers are getting into action? What happens in oracle server that when we execute some DML (say update), DB server triggers the relevent trigger.

    Fortunately Oracle documents this in the manuals that come with your database.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/srvrside.htm#i13313
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/srvrside.htm#sthref1105
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/srvrside.htm#i18617
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/srvrside.htm#CIHGDBBG

  • How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    Hello Arthur,
    Thank you for the reply.
    You were correct that deleting the app and reinstalling it was the only thing to make it work but unfortunately I lost all the documents I made, even though they were backed up to iCloud before i deleted the app. At the same time as deleting pages I had to delete keynote and numbers too, so I've lost all the documents in them too.
    The mb of data which was assigned to each programme in iCloud has reduced, so. I guess they are gone for good. Is there any other way to reaccess them?
    Not your fault but I am a bit fed up the the iPad. I have lost work that I've done and have no other copy apart from what was in iCloud, as I don't have a printer and couldn't email them too myself as I couldn't get into the programme and  i've also got episodes of tv series I purchased that I can't download and albums that are half downloaded with songs missing, so I feel a bit swindled out of time and money and am going back to DVD ,  pen and paper and CDs .
    Instead of using iCloud I guess the only way to make sure I don't loose any more documents it to email them to myself each time I save them on the iPad. Is there anything else you could suggest please?
    I don't have any other apple products apart from iPods, so I can't access the iCloud on anything else can I?
    Thanks
    Amanda

  • My hard drive crashed and I have lost my Itunes library. How can I get my the music that I loaded from my own CDs back on my PC from my iPod?

    My hard drived crashed in my HP Pavilion desktop and I have installed a new one. I have Windows 2007. My Itunes library is gone. How can I get all the music that I loaded onto my iPod from my own CD's back into an Itunes library?

    The loading of audio files to iPod is designed to go one way only: computer to iPod. There are some third-party applications available which will rescue an audio library and write the files back to a PC HDD. The playlists might not copy, nor the album art work, nor videos but you might be able to recover all audio files. Some apps are open source and available for free download, for example: Senuti, Onyx. There are others which are  Windows-based; do a Google search to find out. 

  • HT204053 How do you get your last batch of down loads to the new computer if the old one crashed before i was able to get it on my ipod

    How do you get your last batch of down loads to the new computer if the old one crashed before i was able to get it on my ipod

    See Here  >  Download Past Purchases
    http://support.apple.com/kb/HT2519

  • How do I get Pages to capitalize the first word of a sentence and the letter 'I?"

    How do I get Pages to capitalize the first word of a sentance and the letter "i" automacticly?

    I am also having this problem. Does anyone have an answer?
    I jus upgraded from Pages 4.3 and it's in Preferences. Not so in Pages 5.0.

  • How can I get Mail to capitalise the first letter of a sentence?

    Hello all,
    this is my first time using apple Support Community.  i am a new apple user and have just got my first MacBookPro (its wonderful).  however, i am having some difficulties. 
    How can i get Mail to capitalize the first letter of a sentence and also capitalize 'i' as 'I' automatically?
    Also, how can i get apps like Pages to do the same? and for that matter typing into internet sites like this one? look at the lack of automatic punctuation!!
    Thank you all for any advice and tips you may have. 
    Paul.

    I don't think whether it's easier or not is really an issue.  The problem is that all of these wonderful technologies are taking away our understanding of how to communicate in writing.  It's not a matter of being lazy and not "wanting" to do it, but rather getting to a point where many people "can't" do it.
    I certainly wasn't pointing any fingers.  I use a calculator (or computer if I happen to be on one at the time) to do the most basic math calculations.  I can be out to lunch with co-workers and we have to pull out a calculator to split a bill 4 ways.  I went through school at a time when calculators were not permitted.  So, at one time, I could have easily done all of that stuff in my head.  So far as math goes, my mind has turned to mush a long time ago.  I doubt I could work my way through a long division problem at this point... even if I sat there and really tried.
    Computers were not generally consumer items when I was growing up.  So I didn't grow up in a world with spell checking.  I have certainly grown to use it though and I'm sure my ability to spell properly has diminished somewhat because of it.  I tend to be less careful when typing something out.  If I'm not sure of the spelling on something, I just let my computer either fix it or give me a suggestion for the corrected spelling.  Fortunately, I grew up having to rely on my own ability to spell, so with that foundation, I tend to do fairly well when it comes to spelling.
    We're at a point now where systems can correct grammar and sentence structure.  I think all of these are great tools to help us out, but they shouldn't be used to take the place of actually knowing how to do things.  Having said that, I'm fairly sure that is exactly what will happen.  Just as today, I rely almost entirely on some form of electronics for everyday math, I'm sure people growing up today with expert systems able to correct everything will rely on those equally.

  • How do I get iPhoto on new iPad to load all Facebook albums to select where to upload?

    How do I get iPhoto on new iPad to load all Facebook albums to select where to upload?
    Besides 'new album' , 'wall photos', or 'iPhoto Uploads' ... it only shows 24 pre-existing albums to choose. I need to see the other 50, 60, etc albums I have.
    I've also noticed that iPhoto fails to load to certain albums with some 'Domin Exception' error of some kind (not sure the exact message).

    You need to make the new Mac iTunes library your syncing library. iTunes on the Mac sees your iPad as a new device because you have never synced with this computer before. You can make the Mac your syncing computer by following the instructions in this user tip. You will be able to transfer the purchased music on the iPad into iTunes when you follow this procedure.
    Syncing to a new computer.
    https://discussions.apple.com/docs/DOC-3141

  • How can i get struts stub classes using struts_config.xml

    Hi
    Is there any tools to get Struts stub classes (i.e Action classes,Action Forms) using struts_config.xml?
    if there, please provide the information about tools.

    Hi all,
    We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
    I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
    Performance Tuning & Profiling:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
    Using JRockit tools:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
    Diagnostics & Troubleshooting
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
    Best Regards,
    Tuva
    JRockit PM

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • How do I get a clean Fire Fox down load without any reference to RoboForm showing up on it. I am dumping roboform and don't want a reminder of that damn thing

    My master password stopped working with Roboform, for no reason. Everything they told me to do, I cannot do because it required me to have the master password, including get direct support. I am therefore removing Roboform from my computer. One problem. My fire Fox still has a Roboform start page. I cannot get rid of it. Everytime I remove Firefox and reload it, it still has the damn Roboform start page. How can I get rid of any reminders of roboform from Fire Fox?

    You can change your home page easily. [[How to set the home page]]

  • My Boyfriend has lost all of his contacts on his phone after down loading the new iphone soft wear why would this happen and how can he get them back                          how can you get back your contacts after down loading the new iphone soft wear

    My boyfriend has lost all of his contacts on his phone after downloading the new iphone softwear. why would this happen and how can he get it all back

    You don't have to post the same question at one minute intervals.  Somebody will answer it, but perhaps not in 60 seconds.

  • X6 how can i get rid of toolbar when i load camera...

    when i try to use the camera there is a toolbar on the right hand side- flash, options etc- how can i get rid of this??
    have tried tapping and sliding it......................
    thanks

    I may be wrong and if I am I stand corrected but as far as I know you cannot get rid of the side toolbar. Much the same as you cannot get ride of the toolbar on compact digital and DSLR cameras.

  • HT4946 how do i get a update for my first generaton ipod touch serial number

    how do i get a system update for my first generation ipod serial number1c744z7dw4t

    The 1G (first generation) iPod can only go to iOS 3.1.3 and you get that here.
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

Maybe you are looking for

  • Strange error with xml publisher

    I was testing sub-templates on a clone of our production environment and encountered a strange error. When I run the concurrent program I get an xml publisher error and then when I do a preview in xml publisher I also get an error. These are the exac

  • AS3 Stops Working on Update

    I updated FlashPro from 10.0 to 10.0.2 through the adobe updater.  After the update applied, Flash ignores any code entered on my action layers as if it were not there, even simple stop(); command.  Anyone else had this issue?  suggestions?  Thanks!

  • Want to execute SQL Queries from Textfile

    I have a text file full of a bunch of sql queries, of the format: select something1, something2 from someplace select something3, something4 from someplace2 select something5, something6 from someplace3 I want to execute these queries one at a time a

  • Cloning problem with Tool Tip Manager

    Hi, I am using JDialog which has got JTabbedPane. Inside the JTabbedPane I am using JTable. I want to clone JDialog object, for which I am using deep cloning technique. When I call my overloaded clone method it throws "NotSerializableExcpetion" for j

  • Why is the "Custom" option grayed out in the Image Trace drop down menu?

    I'm going crazy here. On two different versions of Illustrator (CS6 on Windows 7 and CC on Windows 8.1) I'm trying to customize the options on an image trace from the drop down menu. On both versions I can't click Custon and when I tried to use the p