Any easy Struts tutorial?

I was asked to do a reaaaally basic thing with struts... I have a web application already developed, and I need to be able to go to a certain jsp file, let's just call it view.jsp, by writing view.do in the URL bar instead of view.jsp. I'm finding it really difficult to find a simple tutorial...

Just make another action in action mappings, like this:
<action path = "/ViewView"
                type = "sdmi.emp.web.maintenance.ViewViewAction"
                scope = "request"
                name = "viewForm"
                validate = "false">
            <forward name = "success" path = "/View.jsp"/>
        </action>
        <action path = "/View"
                type = "sdmi.emp.web.maintenance.ViewAction"
                scope = "request"
                name = "viewForm"
                validate = "true"
                input = "/View.jsp">
            <forward name = "success" path = "/employee_search.jsp"/>
        </action>

Similar Messages

  • Any easy way to generate unique primary key for database table?

    I'm currently playing with the J2EE reference implementation from Sun which comes with the IBM Cloudscape database. This Cloudscape database supports the use of an AutoIncrement field.
    First question: Can I use CMP and assume that the database will generate a proper key for me? Anyone tried it out successfully before?
    Also, based on what I've heard so far, it seems that generating database primary key is not really well-supported by J2EE using CMP in that a lot of J2EE developers have to resort to workarounds like using a session bean, JDBC and (1) some seed numbers for ID implanted in the database itself (as in the J2EE tutorial DukesBankApp example) or (2) using the SQL MAX aggregation command + 1. Usign seed number is contradictory to good database design and using MAX is dangerous for heavy traffic application if 2 beans try to insert themselves into the database at the same time (synchronizarion problem).
    Anyway I find it dumb that we still have to go back to JDBC and SQL which was the reason why the concept Entity Bean was introduced; to make database persistence transparent! Now it seems that J2EE makes it worse and more troublesome than before.
    Second Question: Is there any easy (hopefully transparent/automatic) way of generating primary key ID?

    if you want to rely on your container or database then go hard, will probably be faster.
    to make a cross container/db soln I used a CMP Entity bean called Sequence with one field for uid
    I use one instance and increment the field each time.
    To do the logic, I have a utils class with static method, no need for session bean overhead
    I reckon this approach is OK considering all things

  • My Adobe has stopped allowing me to move library books from my PC to my KOBO (both show authorized on the ADE. the message reads : CE_COPY_NOT_ALLOWED - No permission to copy book.  It used to work. Any easy fixed for me?(I already tried uninstall and re-

    My Adobe has stopped allowing me to move library books from my PC to my KOBO (both show authorized on the ADE. the message reads : CE_COPY_NOT_ALLOWED - No permission to copy book.  It used to work. Any easy fixed for me?(I already tried uninstall and re-install)

    Welcome to the Club! Got the same Problem and had a really hard time reaching the Customer Support because they were down due to maitenance! Just wrote to their experts chat and hope to get an answer in this life!
    I tried to authorize my Computer and eBookreader with a new Adobe-ID, but it says I've done used this ID too often, even though it was brandnew! Can't copy my just-purchased eBook because "Copying is not allowed".
    I hold my thumbs for you that Adobe solves this Problem fast enough. Other ways I'll sell my eBookreader and buy the Kindle-Reader from Amazon and say GOOD BYE to Adobe!

  • Recent convert to Apple. Previously, I backed up my family pictures from PC to an external hard drive,  a WD MyBook 3T. I can view the pics on my Macbook Pro, but I can't add new pictures. I'm sure this is a format issue, any easy way to correct it?

    Recent convert to Apple. Previously, I backed up my family pictures from PC to an external hard drive,  a WD MyBook 3T. I can view the pics on my Macbook Pro, but I can't add new pictures. I'm sure this is a format issue, any easy way to correct it?

    Install NTFS 3G
    http://macntfs-3g.blogspot.com/
    If you were going to be reading and writing to a NTFS System Partition, you might have to worry about the instability messing up the operating system.  However, you are reading/writing from a non system, backup device so you don't have to worry about screwing up an operating system.
    I would still temporarily move my data to another device and reformat the drive for Mac OS X Extended.

  • Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happen

    Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happened any idea what causes this??
    iMovie '08, Mac OS X (10.5.8), FCE 4

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Any Easy Way to pass initial parameters to a VI created with New VI?

    In LabVIEW 2010 I can use OpenG's New VI function to create and launch a VI that is built from a template.
    Is there any easy way to pass initial parameters from the VI that creates the New VI to the New VI that will be available as soon as the New VI starts?

    Check out the Control Value Set invoke node. I personally don't like this node, and tst has got a great suggestion to promote cleaner, less fragile syntax for launching VI's dynamically that require input parameters.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Hi guys !!  I have an iPhone 3GS and there is something wrong. I am trying to download the podcasts app and it says it requires iOS 7 or later. I'm really going mad and I can't download any kind of music or ringtone. Is there any easy solution.

    Hello guys !! I have an iPhone 3GS, it's on iOS 6.1.3 but I'm unable to download the podcasts app because it says it requires iOS 7 or later.because of this I cannot download any type of music or ringtone.apple has done very bad as they r now only dealing with the latest and forgot about the previous customers. Any easy solution??

    It was not legitimately unlocked by the carrier it was originally locked to. ONLY the carrier it is locked to can authorize unlocking it.
    In order to allow it to be used on a different carrier, the phone was hacked or jailbroken. An unauthorized modification was made to the phone. That modification has damaged the phone. You can not get support for it here or from Apple.

  • Any easier way to set due dates?

    By and large, I'm pretty happy with the functionality of iCal, even if it's a bit basic. But setting due dates on to dos and events is very frustrating!
    Let's say you add a new to do, then click the due date box. Today's date is filled in, say, 26/08/2007 in my part of the world. I want to schedule the to do for next month. To change it you click on the day part, enter a number (say, 08), then tab or click on the month part. At this time the iCal display jumps to 08/08/2007 (in the past!). Now I get to manually type in the new month, 9, and press Return or tab and things are good again. It's all kind of long-winded and messy. What's sorely needed is a drop-down calendar picker, or the ability to click on the existing calendar at the left to pick a date.
    Does anyone know of any easier way to enter due dates? I've even looked for external programs that handle to do functionality, but can't find any that automatically sync changes to iCal for syncing to my Palm Treo. Anyone know if iCal in Leopard is any better in this regard?
    Thanks in advance!

    I couldn't agree more. I can't believe that this has escaped Apple for so long, and didn't even make it into Leopard. Let's say its the middle of November and I want to schedule a to-do due date for the end of the week, say Friday, second week of December. I do this all the time. Sorry, but I can't do the math this quickly, so I need to open up a calendar, or scroll down the calendar, then enter the exact date manually.
    Just give me a quick pop-up. Travel web sites do this. Now Up To Date in 1992 had drop down calendars. So does Entourage, which is what I use ONLY because of this one glaring pain. Entering due dates, reminders, etc, is just a pain in iCal, and even worse now in Mail.

  • Is there any easy way to send free invoice via email without my credit info

    Is there any easy way to send free invoice via email without my credit info?

    Depends upon what you mean by 'it failed'. If it's that you are getting a message to contact iTunes Support then no, you will have to contact them (the 48 hours should be the maximum time that it takes for them to reply).

  • Is there any (easy) way to use Pages to edit documents imported via iFiles?

    Is there any (easy) way to use Pages to edit documents imported via iFiles?

    That is a question better answered by the developer:
    http://www.ifilesapp.com/
    Peter

  • Could anyone provide an easy ADF tutorial to go through from end to end

    Could anyone provide an easy ADF tutorial to go through from end to end retrieving a table with parameter and display result as a table on web page. would like to learn EO, VO, AM page generation with this easy example.
    Thanks

    I've been using these
    http://www.oracle.com/technology/products/jdev/11/cuecards111/index.html
    I've done this one all the way through a couple times.
    http://www.oracle.com/technology/obe/obe11jdev/bulldog/ria_application/developriaapplication_long.htm

  • Any easy way to tell if Optional VI connection is connected?

    If a connection to a VI is Optional, is than any easy way to tell if an connection is made by the calling function or if it is disconnected?
    Thanks.

    This question has been asked and answered many times on the forums. The quick answer is "no", whereas "sentinel" value detection may be sufficient for meeting your specs/requirements.
    Spoiler (Highlight to read)
    At this risk of being appearing obtuse and insensitive, I would recommend you perform a comprehensive forum and LabVIEW Help search prior to posting. You're becoming a forum regular, and I would recommend that as you learn from the LabVIEW experts, likewise you attempt to answer questions of forum beginners. Answering other's questions sharpens your skills even more than having your own questions questions answered! Give and take, you know? Thanks! -Jack
    At this risk of being appearing obtuse and insensitive, I would recommend you perform a comprehensive forum and LabVIEW Help search prior to posting. You're becoming a forum regular, and I would recommend that as you learn from the LabVIEW experts, likewise you attempt to answer questions of forum beginners. Answering other's questions sharpens your skills even more than having your own questions questions answered! Give and take, you know? Thanks! -Jack
    ***Edit: post collision with Ravens... originally I linked to those threads as well, but took a few minutes more to revise my response ***
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Output_link is there any easier (shorter) way??

    Is there any easier (shorter) way to create an simple link as the code below? I am wondering that the code for creating an simple link moved from one line
    <h:command_hyperlink href="login.jsp" label="Login Page"/>
    To 4 lines:
    <h:output_link value="login.jsf">
    <f:verbatim>Login Page</f:verbatim>
    </h:output_link>

    AFAIK, there's not an easier way in the beta. I'll pass this on to the rest of the EG.
    Regards,
    Adam Winer (EG member)

  • OC4J Struts Tutorial

    I was following the struts tutorial and everything was fine until I tried to run it. When starting OC4J, I got:
    Error initializing server: Error instantiating default application at file:/home/mcdanijr/jdevhome/system9.0.5.1.1605/oc4j-config/application.xml: Constructing UserManager for default:caught oracle.security.jazn.JAZNRuntimeException
    04/05/04 16:25:54 java.lang.IllegalStateException: Shutdown in progress
    04/05/04 16:25:54      at java.lang.Shutdown.add(Shutdown.java:82)
    04/05/04 16:25:54      at java.lang.Runtime.addShutdownHook(Runtime.java:193)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService$2.run(Unknown Source)
    04/05/04 16:25:54      at java.security.AccessController.doPrivileged(Native Method)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService.<init>(Unknown Source)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService.getService(Unknown Source)
    04/05/04 16:25:54      at oracle.security.jazn.util.PersistenceService$PersistenceThread.run(Unknown Source)
    Is there some magic I missed?
    Best,
    Joe McDaniel
    The Institute for Genomic Research
    Rockville, MD

    Nevermind (I think). I switched to 1.4.1 as the JDK for the project and it looks like OC4J is starting OK now.

  • I have a new macbook pro and want to transfer my Mail autofill from my old mac. Never used Time Machine or Migration Assistant -- looks complicated. Any easy way to do this?

    I have a new macbook pro and want to transfer my Mail autofill from my old mac. Never used Time Machine or Migration Assistant -- looks complicated. Any easy way to do this?

    caitlinfromcambridge wrote:
    Thanks -- I would like to try this. I do not know how to reach hard drive from old mac to new. Can you help me with this?
    There are two ways - you can boot your old Mac in Target Mode (reboot your Mac, and as soon as you hear the startup chime hold down the T key on the keyboard until you see the yellow/orange Firewire logo on screen).  You can then use a FireWire cable to connect your new mac to your old one.  The old Mac hard drive will appear on your new Mac as if it is an external hard drive.
    Details on Target Disk Mode:  http://support.apple.com/kb/ht1661
    If you don't have a firewire cable but you do have a home network (i.e. both computers can access the Internet at the same time), you can share the hard drive on your old Mac and then connect to it on your new Mac.
    Good article on sharing your hard drive:  http://support.apple.com/kb/HT1549
    Finally, if the above doesn't thrill you, you can hook an external drive to your old Mac, copy the mail folder over to it, then connect the external drive to your new Mac and copy it over.  It's two steps, but if you don't have a firewire cable and aren't comfortable with sharing over a network it will work just as well - you just have to wait for the mail folder to copy twice instead of once.
    If you get stuck post back!

Maybe you are looking for

  • Tracking my own threads -- how to sort by date?

    Simple question, but I haven't figured out an answer.  Hoping there is one... I'd like to be able to find any threads I've been involved in AND then sort them based on most recent activity by anyone in the thread.  When I go to my "Tracker" page, the

  • Special G/L for one time customers

    Dear Experts, I have created a one time customer. When I am posting a special G/L against it, I am getting the following error message (error F5 265, Special G/L posting to one-time account is not defined).The special G/L is already maintained in the

  • Bug in comp.displayStartTime

    at least I think its a bug.  if I have a comp that begins at frame 100 and run the following script, I would expect the comp to start at frame 100...but it changes to 99.  I am on cs3.  heres the code:     comp    = app.project.activeItem;     oldTim

  • Photo Booth Effects have vertical green lines

    Can anybody explain why some of my photo booth effects have vertical green lines running through them and how it can be corrected/removed?! Looking at the files they all begin with "dts" /Users/audio3/Desktop/Photo 7.jpg

  • Unable to download Adobe Reader - Drwatson postmortem debugger problem

    I am trying to download Adobe Reader.  When I click the Download now - - I get the following message:  Website wants to install the following add-on  Adobe DLM. If you trust the website and add-on and want to install it , click here.   I click the me