Can i user response.setStatus(301) and sendRedirect( url ) together ?

in my redirect page , according to a condition i am setting the status as MOVED_PERMANENTLY on a condition in the same time i am directing this to a different URL
res.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
((HttpServletResponse)res).sendRedirect(rvo.getToURL());
                                   req.getSession().getServletContext().getRequestDispatcher(rvo.getToURL()).forward(req,res);but every time after redirect it is still throwing 302 ( moved temporarily ) ( i checked this through live HTTP headers )
can any one please help me

Sorry Dr Clap,
I was asking the code if anyone have
I tried the code below
response.setStatus(301);
response.setHeader( "Location", "http://www.new-url.com/" );
response.setHeader( "Connection", "close" );It is working only for those URLs which has specific file name on it
for eg :
http://softwarewip3.corp.emc.com:1001/about_us -- Fails
http://softwarewip3.corp.emc.com:1001/about_us/index.htm  -- Works Can any one please help me it is URGENT !!

Similar Messages

  • Can you user a track pad and magic mouse together

    is this possible or does it cause some kind of problem?

    You can use it with no problems, for example, you can use the mouse for precission tasks such as video editing and the trackpad for multitouch gestures

  • ADOBE DPS - MAGAZINE to TABLET in INDESIGN.....Need to brush up my tablet design in DPS (did it a few yearscback), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?

    ....Need to brush up my tablet design in DPS (did it a few years back), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?

    See this forum post here from Bob. Best place to learn DPS is on Adobe TV http://tv.adobe.com/product/digital-publishing-suite/
    If you are specifically looking to learn how to create interactive overlays, go here http://helpx.adobe.com/digital-publishing-suite/help/overview-interactive-overlays.html Watch the videos on "Folio Overlays panel, Part I & Part II"

  • Can you use Apple TV 1 and Tv 2 together And what is the best setup

    Hey guys
    Can you use Apple TV 1 and Tv 2 together?
    And if you can what is the best setup with teh two devices above and the need to hook it to one TV.
    Thanks in advance.
    -David

    Welcome to the Apple Community.
    If I understand correctly you want to use both the Apple TV's with one TV.
    There wouldn't be a problem with that, they will each need there own network connection and should be connected to different AV inputs on the TV so that you can switch between each Apple TV as a source with your TV remote.
    If you don't have two HDMI ports on the TV, the Apple TV 1 will connect by component cables, if this isn't possible you would need to get yourself an HDMI switch.

  • Can a user be a developer and an admin user in the same workspace?

    Hi
    We have just upgraded one of our environments from APEX 3.2 to Apex 4.1.
    In our existing apex applications version 3.2 we have the senior developer users set up with both user is an administrator and user is a developer set to yes.
    When I try to set up the same in Version 4.1 I only seem to be able to set the user up with either developer or admin and not both as the user is a developer radio button is greyed out when user is and adminstator is selected.
    Is it not possible in 4.1 to be an administrator and a developer. Does this mean that one person may have to have 2 logins if they are performing an adminstrator and developer role in Apex 4.1?
    Please advise
    Regards
    Kay

    Hi,
    When you set user as admin, it is same as in Apex 3.2 admin+developer
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Can Power Users or Mgt Create and Design Reports Through Query Designer ?

    Dear BI consultants,
    Iam new to BI.
    My management has requested me to Train Power users from All Modules(FICO,HR,QM,PP,SD,MM) to Create Queries and Design Through Query Designer.
    My question is are we suppose to Give query Designer Access to Power users or Mgt so that they can create Queries and reports by themselves.Please Suggest me wht is the Best Practices.
    is it feasable to train power users and Mgt as to how 2 create queries. will there be any side effect on the System or our end.
    Plz suggest.
    wht are the advantages and disadvantages of this.
    If I train the Power users then is there any risk of my Job.
    since they will be creating all reports by themselves.
    wht else can a BI consultant do since iam in a support project.
    how do i convince my Mgt?
    Plz Suggest.
    Thanks Awaiting

    This is common procedure maintained in most of the company's for end users.
    There is no issue if you train the power users.you will be the first point of contact if they have any doubts.and more over you are supporting for your client right? this can't be handed over to power user or end user. data is imp for the client so there will not be any problem for you, if any issue comes while loading you need to take care of the errors and fix the.
    power users or end user will be familiar with Business requirement not with the Query building logic's not with the BW procedure so no worries for you.
    as vineeth said its better to keep control regarding the global and key things at your end so that you will not loose contol on the reports.

  • Can multiple users access the account and use services on different computers?

    ?

    Hi vighter,
    A subscription is tied to an invididual Adobe ID and password. The licensing agreement allows that user to access the subscription on up to two devices, but not at the same time.
    Best,
    Sara

  • Can I mix Pages page layout and word processing together in one document?

    Hello there ! I am quite new to Pages and I am desperate to learn as i want to get rid of everything being Microsoft
    As you all know when you open Pages you can choose between page layout and word processing !
    the thing is i thought that after using a page layout you could just go with word processing easily... well no, you can't, but i'm sure i'm missing something...
    For exemple i really like the catalogue brochure and it would be perfect for me to start a project... but after a few pages, i can just add blank pages and if i want to type text, i have to add text boxes... i don't want that, I want word processing... and another thing in this brochure i can't add table of content because it is not by default in the template...
    So my question is quite basic here, can we link Page layout and word processing without having to use text boxes and everything ?
    Thanks in advance !
    Have a good day

    Alexander,
    Welcome to Apple discussions.
    The simple answer is no. What differentiates page layout from word processing mode is that the PL mode has no text layer. So everything that goes on the page must be an object of some kind. And any pages you add to a PL document must also be PL. You can't mix the two modes. One way around it is to start with a blank page, insert a text box, then stretch the box so that it covers the entire page. You can the type in it as if it were a text layer in a WP file. You can even capture that page so that you can add it automatically when you need it, or save it as a template.
    As for building a Table of Contents, it appears that Pages only sees text styles that are on the text layer, which means it won't see styles that are in objects -- which means it won't work with a PL document. From being a long-time reader of this discussion group, I've noticed it's rare that someone wants to add a ToC to a PL document.
    If you find that you're going to be mixing text and graphics, start with a word processing template. If you really like the Catalog Brochure, you could always copy some or all of its elements over to a blank WP template.
    Hope this helps.
    -Dennis

  • Can the e-mu proteus x and 1212m work together?

    Hi
    I'm after the Proteus X sound module as well as the 1212M audio card because of the Mastering Grade audio converters.
    Will both of thoses cards work together?
    Is there a upgrade package to get the Proteus X sounds on the 1212M sound card?
    any other ideas or suggestions would be great
    Chris

    Chriszelno,
    Proteus X will work with any of the Digital Audio Systems, including the 1212M. I don't see a Proteus X/1212M bundle on the EMU webpage, but there are some good prices on Recertified B-Stock 1212M's and Proteus X separately in the Bargins and Specials section.
    You might consider the Emulator X Vintage Composer bundle which includes the 1212M, Emulator X (which has all the functionality of Proteus X plus much more in the way of sample creation), and the Sounds Beat Shop 2. Currently it shows up as being out of stock on the website, but the 1-800 number on the site will get you in contact with someone who would have up to the minute news on what is available.
    Jeremy

  • INVALID RESPONSE CODE 301

    Hi Techie's..
    In a webdynpro application I have used a Web Service model to get backend data; we have a cluster environment in Test (two server nodes linked with load balancing server and a sap dispatcher).
    Using visual administrator --> web services container, the endpoint & WSDL is set to the load balancing server. The webdynpro application fails with this error
    The initial exception that caused the request to fail was:
    com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 301 while accessing URL: http://lumnrs61.luminus.int:8143/inspection.wsil. Response Message: MOVED PERMANENTLY. Content Type: text/html; charset=utf-8. Body Content: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>301 MOVED PERMANENTLY</TITLE> </HEAD><BODY>
    Moved Permanently
    The document has moved here </BODY></HTML>
    at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveURL(DestinationsResolver.java:220)
    at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveEntity(DestinationsResolver.java:120)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.initialize(WSQueryImpl.java:184)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSInterfaces(WSQueryImpl.java:151)
    at com.sap.engine.services.webservices.server.management.discovery.ServiceDiscoveryImpl.getWSDLUrl(ServiceDiscoveryImpl.java:71)
    ... 80 more
    The application works fine in development environment, the endpoint points to the single server node.
    Can you let me know how to resolve this issue, we need to have this scenario of load balancing in place such that the web services also get invoked in a load balanced mode.

    Hey buddy...
    The address is changed.... this code is a standard http status.
    Is a warning, saying that your target is not in this place... target changes....
    try to verify this target... under your web browser, or telnet, tracert... whatever... check what is your return...
    Regards...
    =)

  • I press the swtich off and menu button together, but still can't on and sync my phone! can anyone help me? please...

    I was prepare to update the latest facebook app, but on the half way suddenly stuck... i can't press any button! i can only press the swtich off and menu button together for restart my phone, and of course turn into full black screen and the apple comes back again to the screen and for a really long time. I did try to sync to my laptop but it can't work, the apple stay there forever. Can someone help me? 

    OR RECOVERY MODE
    Recovery Mode
    1. turn off the iPhone.
    2. connect the USB cable to the iphone.
    3. press the home button (the large round), and press and hold connect the other end of the USB cable to your PC.
    4. continue to hold pemuto the home button.
    5. within about 8/10 seconds will appear on the screen of the phone USB cable + iTunes.
    6. your iphone is now in recovery mode.
    7. will open automatically iTunes you will detect an iPhone in recovery mode.
    To return to normal mode you just hold the home button + shut down: the Apple logo in about 1 minute and the iphone will reboot.

  • Can I run a Unique Clients and Users Summary report customized by both floor area and SSID?

    In Cisco Prime, can I run a Unique Clients and Users Summary report customized by both floor area and SSID?

    Allright guys. I appreciate the quick responses. I've worked a lot in CR however i am not understanding the solution so I'd appreciate if you can dumb it down for me. If i understand it correctly you guys are suggesting to make a formula, that either return my group by string (which is a formula in my report) or the Quantity. I tried writing a formula like this
    if ({@param} = 1 then
    GroupName ({@GroupBy})
    else
    {NetPNL.GrossAfterAdj}
    but it seems like CR does not allow you to return 2 different data types. Even if it had worked i would not know what to do from there. Can anyone please dumb it down for me. To make my situation more clear below is an example of how my data is..
    MN 100
    MN 200
    MN 50
    CA 300
    CA 500
    when the data shows in the report, its grouped by state, so it comes out like
    MN 350
    CA 800
    I want the users to decide whether they want it sorted by state  (ascending)
    CA 800
    MN 350
    or Total quantity (asc)
    MN 350
    CA 800

  • Can aim users and .mac users video/audio chat with each other?

    today was a crazy day with ichat. two of my friends were able to video chat 1 on 1. my mac is qualified to handle 3-way or 4-way chats. when they invite me, the bubble pops up. i hit accept and the loading spindle keeps on spinning for minutes until it just denies me entrance. they get an error saying i never accepted, so as soon as they invite me, they don't get any other response back.
    could it be that i am on the AIM network and both of them are on the .mac network?
    iMac G5   Mac OS X (10.4.9)   1.8ghz, 1.5gig ram, 3rd party camcorder, latest iChat. router installed.

    can aim users and .mac users video/audio chat with each other?
    Yes. Apple does not have its own publicly available IM service; iChat uses the AIM network, and there are few functional differences between AIM and .Mac screen names. If they are using a client other than iChat, there may be interoperability issues with audio and video chats, or the other client may not support those types of chatting.
    (21228)

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • How can multiple users edit and access same ACCESS file

    Hello,
    We have 2 access files and multiple users needs to edit and access those files.
    How can I enable mulitple access but only one user can edit rest of users are in read-only mode for one file and multiple access and edit on the another file.

    Hi,
    You should split your database in a front and backend. Then create two seperate front ends which you can distribute. If you need readonly you can opt for two options, setting the attributes of the file to read only or create a front end with read only forms.
    The last one takes a little more work but is safer than setting the attributes to read only because people can change that back themselfs.
    Maurice

Maybe you are looking for

  • Windows 8 USB recovery fails with CTOERROR.flg error

    Windows 8 recovery using HP supplied USB recovery device failed with CTOERROR.flg error. [22:53:29.29] ChkErrBB.CMD : Detect some error during PININST_BBV. [22:53:29.31] ChkErrBB.CMD : Check c:\system.sav\logs\BurnBootWarn.log [22:53:29.31] ChkErrBB.

  • Contribute & Dreamweaver

    Hello - I run a small business and for years have edited my site in Dreamweaver. Currently, I have version 8 and have been using it for 10 months with no issues - in fact - I've never had any problems connecting to my server with DW. Recently, it has

  • Retrieve caller url in doGet()

    In ine of my page there is a link to one of my servlet. Also this servlet can be directly by tyiping on address bar. I need to get the calling url withing the doGet method in the servlet. both request.getHeader("referer") and request.getAttribute("ja

  • How to keep .tag-files from accessing request?

    How can i keep .tag-files from accessing the request? I only want to allow the .tag-file access to parameters given to it as input attributes.

  • Migrating to Openbox from Flux; Should I bother?

    Hello guys! I'm a pretty happy Fluxbox user. I have my keybinds, my own custom made theme, a quite long apps file that gets everything going the way I want when I login. Thing is, I do not use any of the things Flux has that Open doesn't, meaning the