How am i supposed to have a link inside a servlet?

Hello, i'm having an html page which consists of a form.
The action of the form is a Servlet.
The data is inserted successfully in the database and a message using out.prinlt is displayed.
My question is:
How am i supposed to out.println a link which points to the previous page?
I mean let's say i have a Back link , and when the user clicks on it
goes to the previous page.
Thanks, in advance!

Well i did sthg like
out.println("<a href = \"javascript: history.go(-1)\"> << Previous page</a>");i use out.prinltn only for typing 2 - 3 sentences that describe an error (e.g. Data not inserted in Database)
BalusC wrote:
Pass the page identifier as a (hidden) request parameter.
That said, using out.print/write in servlets for presentation is a huge smell. Reconsider your approach/design before it's too late.
a. What's the use of having a hidden parameter?
b. If i use out.prinltln for printing some simple data like (Error! Please insert again) is there any problem?Do we consider that as bad design?
Thanks, you all!

Similar Messages

  • How to change the color of the links inside a portlet ?

    Hi,
    I have to apply a css into one of the portlets of my page. Since I thought it would not be easy I figured out that the only thing the client cares is the color of the links inside the portlet. The portlet has a bunch of links and these link should be blue and 12pt. Does somebody know how to do that ?
    Thanks,
    Rafael.

    Change hyperlink color:
    There are about 50 predefined styles with each template. They are modifiable. Hyperlink is one of the styles.
    Follow this process:
    • In your document select a word of text, any word will do.
    • Style it the way you want your hyperlinks to look.
    • Show Styles Drawer from the View menu.
    • Find the Hyperlink style in the drawer and right-click on it.
    • Select - Redefine Style from Selection - in the pop-up menu.
    That's it. You've changed the hyperlink style for this book.

  • Can you force a link inside a .pdf to open the "linked to" document in a new window?

    When I have a link inside my .pdf document - linking to another .pdf document or to a Word document - how can I force the linked-to document to open in a new window?
    I have a web site (business internal, so unfortunately I cannot point to it).  My HTML menu has links to .pdf documents - no problem.  However, once I open those .pdfs, they contain links to other .pdfs and to Word documents.  Clicking on these links, which reside inside my .pdfs, opens the "linked-to" docs in the same page.  How can I force them to open in a brand new frame?
    All of my .pdfs were originally created in Word, and in the Word versions, the links DO open into new frames.  I am not sure why, when I convert them to .pdfs, they lose this feature.
    Can anyone help?

    Hi Magenta,
    Would you mind reposting this question over on the Acrobat boards?  You've posted in the AIR forum and you'll have better luck with this over there.
    Thanks,
    Chris

  • URL link inside XML file

    Hi, does anyone know how if its possible to create a link
    inside XML description. The script like this:
    <a href="
    http://yoursite.com"target="_blank"> did not
    work.
    Thanks,

    Thanks, I tried the code which made the whole existing script
    fall apart. I got the file from FlashDen and to do the change will
    require an advanced programming in which I am absolute 0. Here is
    the template
    http://www.flashden.net/files/16781/index.html
    I am trying to create URL inside the image description.
    I feel absolutely helpless.
    Thanks again for your effort.

  • This is how I am supposed to contact to have my annual creative cloud membership refunded?  I cancelled immediately upon seeing the charge and followed the instructions given and wound up here.  Am I supposed to share my username and password with the for

    This is how I am supposed to contact to have my annual creative cloud membership refunded?  I cancelled immediately upon seeing the charge and followed the instructions given and wound up here.  Am I supposed to share my username and password with the forum?  Adobe, I am about to go social with my frustrations!

    No, this is a public forum, as in user-to-user, so you should not share any private information here.  You will need to contact Adobe Support by chat or phone, which is apparently getting harder and harder to do.  Use the link below and choose the Still Need Help? option at the bottom in the blue area - in the section that opens take your pick of chat or phone.
    Contact Customer Care

  • HT201365 I work for a company and when we have users terminated they return their phones and we do not know the passcord or apple id for them how are we suppose to wipe a device?

    We terminate user and we sometimes like to remote wipe or get back a phone that is locked by a passcode we do not know what it is? So how are we suppose to be able to wipe the devices. The users setup their own apple accounts so we never know which email or password are either? so how are we suppose to remotely wipe or wipe device to be able to reuse?

    I am in the same situation, trying to figure out the most elegant way of recovering company iPhone assets that are returned to me.  It won't help for anyone already set up under an existing Apple ID, but here is what we're doing, moving forward:  All AppleID accounts must be set up under the user's work email address.  This way, when John Smith leaves our company, I can have our email admins reset his work email password.  I then go to the Apple ID link, ask Apple to reset that user's work AppleID password through Email authentication, and that auto-email is sent to the mailbox that I now have control of.  I click the "reset" link in the email, and proceed from there.  Not the smoothest process, but it will hopefully work.

  • HT201263 i have an iPhone 4. I forgot my passcode and can't access my phone. i tried to restore it, but halfway through the process iTunes stops working and a message pops up saying "iPhone cannot be access because it has a passcode" how am I suppose to r

    how am i suppose to access my phone? PLEASE HELP

    Follow the process mentioned below step by step to get your iPod Touch/iPhone/iPad working.
    Make sure you have Latest Version of iTunes (11.1.3) Downloaded and Installed on your Computer, if not then you can download the latest version of iTunes from the Link below.
    http://www.apple.com/itunes/download/
    Now once you have the Updated version of iTunes installed on your computer follow the below steps to get your iPod Touch/iPhone/iPad in Recovery Mode and Then restore it to factory settings
    Open iTunes Application on your computer and then start the process step by step
    1>Disconnect your device from the computer (if connected). The process won’t work if you start with the iPod Touch/iPhone/iPad connected to the computer. Leave the cable connected to the iPod Touch/iPhone/iPad, as you will be reconnecting the iPod Touch/iPhone/iPad to the Computer later in the process.
    2>Power down your device. Turn off your device by holding down the Power button ( On Top right corner of iPod Touch/iPhone/iPad). When the power slider appears, slide it to the right. Wait for your device to comepletely shut down before continuing.
    3>Press and hold the Home button (Home Button is located at bottom of your iPod Touch/iPhone/iPad screen/display). With the Home button held connect the device to your computer with the USB cable. When reconnected, your device should turn on.
    (If the low battery screen appears, charge your device for a few minutes and try the process again.)
    4>Continue holding the Home button. After a few moments, you will see the "Connect to iTunes" screen on your device. This screen is a picture of an arrow pointing from a USB cable to the iTunes logo. When you see the screen you can release the Home button.
    5>iTunes will display a message stating that a device in recovery mode has been connected. From there you can proceed to restore your iOS device. Once you see this message click on OK and then click on Restore
    Once you click on Restore iTunes will download the Latest available version of iPod Touch/iPhone/iPad software (ipsw file) in your computer and after the download is completed the same will be restored in your iPod Touch/iPhone/iPad. You will see the Download process and Restore process on top of your iTunes screen. Once the restore is completed your iPod Touch/iPhone/iPad will automatically restart and you will see a message that iPod Touch/iPhone/iPad has been Restored and will connect after restart.
    Now you will have to follow some steps on your iPod Touch/iPhone/iPad to Customize your Device for First Use.
    Hope this process will help you

  • I have Disney movies at MyDisneyMovies.  Supposedly that account is linked to my itunes account but I can't see my movies anywhere in itunes.  Why?

    I have Disney movies at MyDisneyMovies.  Supposedly that account is linked to my itunes account but I can't see my movies anywhere in itunes.  Why?

    cnh46 wrote:
    I have Disney movies at MyDisneyMovies.  Supposedly that account is linked to my itunes account
    Did you actually link it to your iTunes account?
    It doesn't do it automatically.
    -> http://www.disneymoviesanywhere.com/help
    "How do I connect my iTunes Account?
    You can connect your Disney Movies Anywhere account with your iTunes account within your Disney Movies Anywhere Settings. Select Account and then Connect Accounts. Here, select iTunes to begin. You will be guided to iTunes in order to complete the process. Once completed, you can return to Disney Movies Anywhere and visit the Connect Accounts section to confirm that your accounts are connected.
    You are able to connect one iTunes account to your Disney Movies Anywhere account. You can disconnect and connect the account at any time, but you will not be able to connect to a different account for 180 days.
    Connecting your iTunes account syncs all your eligible Disney, Pixar, and Marvel movies between both services. The movies in your iTunes account are subject to the terms and conditions of the iTunes service. View more details on accessing movies from your iTunes account."

  • I currently have OS X Leopard on a macbook. No where in the entire currently that I live stocks Snow Leopard in order to upgrade. So can anyone tell me how I am supposed to upgrade to Lion without access to Snow Leopard?  arrrrgg! Thanks

    I currently have OS X Leopard on a macbook. No where in the entire country that I live stocks Snow Leopard in order to upgrade. So can anyone tell me how I am supposed to upgrade to Lion without access to Snow Leopard first?  arrrrgg! Thanks

    If by "posted to you" you mean shipped, yes. Usually UPS or FedEx is used by Apple. Note that you may need to access the Online Store that's for your country. If you are not in the US then you cannot purchase it for shipment outside of the US. You can use this link to find the store that serves your country: Change Country. You will find it at the bottom of the Online Store page.

  • I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    Did you remove Quicktime X?
    On a normal install Quicktime 7 is installed in the Utilities folder and Quicktime Pro in the main Applications folder.
    You will need to reinstall OS X to get Quicktime X back if you have deleted it.
    I notice yor profile says 10.5.8. Quicktime X is only available on 10.6 and above.

  • OK, I need to be able to have a linked TOC, and also have destinations created in FM10 that will not be lost when I 1. Save the book as a PDF. then 2.  need the PDF to be as small as possible, but without losing my destinations. Anyone know how to do that

    OK, I need to be able to have a linked TOC, and also have destinations created in FM10 that will not be lost when I 1. Save the book as a PDF; then 2. I need the PDF to be as small as possible, but without losing my destinations. Anyone know how to do that??
    I had been saving as a PDF and then reducing the size of the PDF by printing it as a PDF with a degree of image compression. I write manuals with a LOT of screen captures and line art that needs to be clear. So it is a balancing act between image clarity and PDF size. The PDFs on the web need to be smaller - sure you can undertsand.
    Anyway, when I print the PDF again, I lose both my destinations and bookmarks.
    Anyone know of any way to avoid that?

    Control the images by creating a custom PDF Job Options and then selecting it in the PDF Job Options drop-down of the PDF setup dialog box (File > Save as PDF...)
    Create the custom PDF Job Options file with Distiller. If you do not have Distiller, open the Printing Preferences of the Adobe PDF printer. Start with the Smallest File Size Job Options settings and Edit.

  • I have 2 iphones, 1 personal and 1 business.  I thought I was supposed to have 2 separate itunes accounts.  I now have a work ipad and want to only have 1 itunes account that I can use for all 3 devices.  How do I cancel 1 account or just combine the 2?

    I have 2 iphones, 1 personal and 1 business.  I thought I was supposed to have 2 separate itunes accounts.  I now have a work ipad and want to only have 1 itunes account that I can use for all 3 devices.  How do I cancel 1 account or just combine the 2?

    I want to be able to transfer my apps from my original itunes account that I have on my personal iphone 3 and work ipad 3 to my work iphone 4S ,as well as purchase more more apps for the work iphone with the original itunes account.  Plus I need to sync all 3 of them with my work tower computer.  I really appreciate you're trying to help me out.

  • How Can I have 5 links in the same picture

    Good morning.
    I would like to know,how I can create 5 or more links on 5 different positions in the same picture.

    If your writing about html links I believe that is what slicing is all about. I have not done any.  I think what slicing does it cut a image into parts without seams these parts can be addressed using mouse over which may replace the part to highlight the area and if clicked on link to an other page.
    Use Photoshop Help search on Slicing.

  • How to change a text item to have a link that opens a different page?

    Hi,
    How to change a text item to have a link that opens a different page?
    Thanks,
    Guy

    Hi Denes,
    I understood what the code will do. But it did not work.
    ...a href="f?p=&APP_ID.:2:&SESSION.">LINK</a...
    By default, P5_TASK_NAME displays Task Name which is passed from Page 3.
    So I changed your code as follows so that P5_TASK_NAME value may be displayed with a link.
    ...a href="f?p=&APP_ID.:3:&SESSION.">:P5_TASK_NAME</a...
    But P5_TASK_NAME value appears without any link and does not open page 3.
    Then I created a new text item (display only) in the same HTML region in page 5 and entered the following code in the default box:
    ...a href="f?p=&APP_ID.:3:&SESSION.">LINK</a...
    When I ran the application, it displayed the whole code as text.
    How can I display P5_TASK_NAME value with a link to open page 3?
    Would appreciate your help.
    ... to be replaced with < or >
    Could you please let me know how to display link code correctly?
    Thanks,
    Guy
    Edited by: GUY3 on Mar 11, 2009 4:20 PM

  • How do I send a customer a link so that he can view what I have done so far on his website?

    I am doing my first website with Dreamweaver and I don't know how to send/email my customer a link for him to review what I have done so far ?
    Could someone please offer me advice? Thanks
    Looking forward to getting replies...

    Upload (PUT) your files to a Web server and send him the URL to a page on that server. A URL would look like this:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7eb 4a.html
    That particular URL goes to the DW help for:
    Getting and putting files to and from your server
    Mark A. Boyd
    Keep-On-Learnin' :-)
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.

Maybe you are looking for

  • Burning DVDs off of iMovie ver. 2

    Hey all. I have a Mac G4 with os 9.1. I am trying to burn video dvds off of iMovie v.2.0.3.  Have created the project,  but can't get my Lacie firewire DVD burner to find and burn the project.  I exported the project to Quicktime, and can view it the

  • "Bill Pay" feature on bank web site no longer works

    My bank has a "bill pay" feature. I can log into the secure bank site pages without a problem, and get account information, transfer funds, etc. When I try to do the bill pay page, it simply does not load and reverts back to the previous page. Things

  • ITunes 11.1.1.11 will not access the iTunes Store on Windows 8.

    I had issues with the new iTunes since they made changes for iOS 7. Today I installed the updated iTunes 11.1.1.11 and still have issues with it on my Windows 8 computer. When I try to access the iTunes Store, it starts to load and when it is about t

  • Fill the Profit Segment in Sales order Header data

    Hello Gurus, In my project, we have sales orders with a lot of line items, more than 300, sometimes. In each line item, the user must fill profit segment field (CO-PA) (in account assignment tab) with a user-defined characteristic, the same data for

  • Import of pictures

    When I import photos, mostly the folowing error message appears. The volume for xxx.jpg was not found. Put in CD/DVD or connect to server-volume ans wait until it appears on desktop. (sorry for the translation ;-)) I have to klick the cancel button a