Query regarding URL redirection

Hi,
I have JSP 1 being hosted in one application server 1, i.e. thats the login page, on succesfull login i need to redirect the control to another JSP 2 hosted in another appilcation server 2.
But if any user tries to access the JSP2 directly i need to throw up a message saying he is currently not logged in.
So while redirecitng from JSP1 i need to pass some paramter or data which can be retrieved in JSP2 and decide on whether the user has come after successful logging in or direclty accessed the JSP2.
If i save something in session,will that be accessible accross two differnet application servers
Please let me know what approach can i take or some references
Regards,
Sandeep

Ask in the JSP forum.

Similar Messages

  • Query regarding URL Encoding......in struts

    Hi Friends,
    I am working in Struts.
    Now in some cases i have to send some data (like some id or falg value ) in URL as queryURL.
    now when the page calls at that time on the address bar i saw the whole URL.
    I wanted to encode that URL.so that no one can undestand the actual parameter values and name.
    So can any one help me about this.
    Thank You,
    Ajay Patel

    You could simply POST the data as opposed to using GET. Though it doesn't encode/ encrypt the data, but simply adds the parameters into the body of the request. If someone were to look at your requests, they'd be able to see this data.
    As for actually hiding it through encryption, you could get JavaScript libraries to do this on form submit but I doubt you'd need that much security. You could also try base64 encoding for a simpler approach.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • QSUF (Query string url filter) and SQL Server reporting services report viewer parameters

    Hi,
    this is my issue:
    I have a SQL Server reporting services web part on a page with a report with 1 parameter, lets say it's a client list
    Then i have a QSUF that will be used to filter the clients list through the URL
    However, once i connect the filter and the report viewer web part, the parameter goes away and is no longer accessible
    I'd like to somehow keep the parameter visible, in case there is no parameter sent through the URL, i would like the user to be able to choose a client from the parameter drop down list
    I saw that there is a "send empty if no values are passed" option, but i can't seem to get this working properly and i don't know if this option will make the parameter visible again
    Any help would be appreciated
    Thanks.

    Hi,
    According to your post, my understanding is that the query string url filter web part not worked well with SQL server reproting services web part.
    Did you use the Wiki page layout in your environment?
    You can change the page to a web part page, then check whether it work.
    There is a similar thread for your reference.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4d7584e3-8e1a-48bf-9346-32f8cb480dd1/query-string-url-filter-web-part?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Need help with URL Redirect in Sun Web Server 7 u5

    All I am trying to do is redirect to a static URL and for the life of me I can not get it to behave the way I would expect. I am new to Sun Web Server so I am just trying to use the Admin Console to set this up.
    Here is what I'm trying to do:
    Redirect from - http://www.oldsite.com/store/store.html?store_id=2154
    To - http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    Here's what I tried in the console.
    Added a new URL Redirect
    Set the Source to be Condition and set it to: '^/store_id=2154$' (quotes included)
    Then set the Target to: http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    Then for the URL Type I checked Fixed URL
    When I tested with: http://www.oldsite.com/store/store.html?store_id=2154 it did redirect as desired
    BUT
    When I tested with: "http://www.oldsite.com/store/store.html?store_id=5555" it too got redirected to the Target and I can't figure out how this second URL can satisfy the condition to get redirected.
    Any help is most appreciated.

    thanks for choosing sun web server 7
    it is simpler if you just edit the configuration files manually
    cd <ws7-install-root>/https-<hostname>/config/
    edit obj.conf or <hostname>-obj.conf (if there is one for you depending on your configuration so that it look something like)
    <Object name="default">
    AuthTrans..
    #add the folllowing line here
    <If defined $query>
    <If $urlhost =~ "/oldsite.com" and
    $uri =~ "/store/store.html" and
    $query =~ "store_id=2154" >
    NameTrans fn="redirect" from="/" http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    </If>
    </If>
    ..rest of the existing obj.conf. continues
    NameTrans...
    now, you can either do <ws7-install-root>/https-<hostname>/bin/reconfig -> to reload your configuration without any server downtime or <ws7-install-root>/https-<hostname>/bin/restart -> to restart the server
    if it did work out for your, you will need to run the following so that admin server is aware of what you just did
    <ws7-install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname.domainname>
    hope this helps

  • URL redirection config in PI SOAP receiver communication channel

    Hi,
    I am working on a similar scenario where I my consuming an external web service using https protocol from PI.
    I have configured a soap receiver channel to call the target url of this web service as https://portal.xyz.org.uk/webservice_alt.
    I am getting an error HTTP 302 suggesting that PI is not able to follow the re-direction to the target URL as the service resides not on that URL but on https://portal1.xyz.org.uk/webservice_alt or https://portal2.xyz.org.uk/webservice_alt.
    This is their server fail over handling mechanism which is very common. But PI 7.0 is not able to handle this.
    So if I change the target URL on the SOAP receiver channel to  https://portal1.xyz.org.uk/web service  or  https://portal2.xyz.org.uk/webservice_alt , PI works fine without errors . But this is not the right approach because, every time the web service provider takes one of these systems down for upgrade/patching etc, they inform us and then I manually go and change the target URL to the available server on my production PI system config.
    My problem is I want to resolve this redirection error in PI. I have tried raising a call with SAP itself and they pointed out to use Axis adapter which is still not working.
    So I am here asking for help. any suggestions please from the experts?
    Thanks
    Jhansi.

    Hi guys,
    I am sorry if I have not been clear so far!!
    What I am talking about is a URL redirection capability of PI. what i mean is , when you call any service in general using a browser/soap ui etc, it pings that url and follows the redirection.
    For example when i try to test this external web service directly using soap ui tool, it also returns HTTP 302 error. But when I set the 'Follow redirect' property to 'true' , it follows the redirection and calls the service on 'portal1' or 'portal2' .
    You assume PI is a test tool like SOAPUI. When the address or URL changed in WSDL and if you load the latest WSDL in soapUI it post the request to the latest URL. YOu import WSDL only in ESR not in IR. Dont forget it. Though WSDL has soap address location, it will not impact the wsdl changes directly in ID.
    It makes no sense to complain regarding the behaviour of PI when the reason for the problem is outside (WS provider).
    please note that the target url is fixed which is  https://portal.xyz.org.uk/webservice_alt.
    so we are not talking here about the service provider altering the service and sending us new wsdl's etc.
    All users of this webservice have been non-sap users so far and consumers use java, .net etc platforms and are easily able to handle the redirection.because this redirection is a part of failover mechanism.
    I hope i am able to picture my problem.
    thanks
    Jhansi.

  • Content presenter: datasource based on CMIS query with URL parameters

    Hi all,
    I am trying to create a page containing a content presenter taskflow that is based on a CMIS query containing URL parameters. In my component properties I define the following query for my datasource:
    +SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='${param.qblSubGroep}'+
    I have a URL parameter qblSubGroep containing the value "Nieuws".
    Somehow my page does not show any content. It looks like the parameter value is not passed to the data source query. When I change my query to
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xqblIntranetSubGroep='Nieuws'
    so, I hardcode the value of my URL parameter in my query, the expected content items are shown.
    Also, I have another page containing a content presenter taskflow for a single item, based on the data source:
    +${'WebCenterSpaces-UCM#dDocName:'}${param.dDocName}+
    In this case, URL parameter values for dDocName are passed correctly and content presenter is showing the document with dDocName as entered in the URL.
    Does anybody have any idea on how to solve this probem?
    regards,
    Harold

    hi all
    when i try using cmis query with Arabic characters it display no results .
    SELECT * FROM ora:t:IDC:GlobalProfile WHERE AND ora:p:xAgrPressMag LIKE'جريدة الرياض'
    this is the query i am using and the value inside ora:p:xAgrPressMag is correct and i try search this value inside content presenter normal search and it display results i am afraid that cmis query doesnt accept arabic characters
    any suggestion please its top urgent
    best regards
    Edited by: 975169 on Feb 26, 2013 12:59 AM

  • Report field substibution on URL Redirect

    I am using ApEx 2.0
    I have a page with two report regions based on SQL queries, joined by a common column. The master region is read only and in detail region, I changed the attribute of one field to display as text.
    So, for example, the Master region has two columns:
    M_COL1, M_COL2
    The detail region has 3 columns:
    M_COL1, D_COL1, D_COL2
    The regions as joined on M_COL1 and D_COL2 is the Text field.
    Next, i added a button to this detail region. When clicked I want this button to launch a URL whose parameters are sourced from some of the existing report column/fields on this page.
    I cannot seem to get the substitution to work in the URL Redirect field of the button definition.
    I want something to the effect of :
    http://someserver:port/some_path/something?param1=&M_COL1&param2=&D_COL2
    I tried putting #M_COL1#, :M_COL1 etc. but it doesn't work.
    Any ideas/pointers?
    Thanks,
    Manish

    Hi,
    5. Pop-up reports:
    - Go to any report with link column to a form. It is a very common situation.
    - Go to the link column Column Attributes/Column Link/Target and change it to URL.
    - javascript: popupURL('f?p=&APP_ID.:205:&SESSION.::&DEBUG.::::YES','Help','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');
    - Replace 205 (It is my page number) with the number of the page which you are working on.
    - Apply/Apply/Run the page.
    - One would see the printer friendly version of ones page in separate window without loosing original one.
    This is a very simple, easy to use and understand example.
    One can replace “205” with any report showing Address … for the client.
    6. One Master and many Detail tables:
    Suppose that there are relations One to Many between one master and two or more details tables.
    One can use two regions on a page. One should be a form region for the master table and second one should be a report region with several links.
    6.1. Create a view of those two or more details tables. That is one master and one details view.
    6.2. Create a Master Details form. The details form should be one of details tables.
    6.3. Go to Edit Region (Details Region) and change SQL Query (updatable query) to SQL Query.
    The Details form became Details Report.
    6.4. Change Report Region Source from details table query to the view query.
    6.5. Duplicate columns which are links and reorder them. Replace their header names with “ ” for instance.
    6.6. Into Column Attributes/Column Link/Link Text pick an icon.
    6.7. Select for Attributes/Column Link/Target “URL”.
    6.8. Into URL field type
    javascript: popupURL('f?p=&APP_ID.:205:&SESSION.::&DEBUG.::::NO','Link','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');
    and replace 205 with the appropriate page number.
    Now the page has one form with Next and Previous buttons for the master table and one report for the Details view with two or more links. Pop-up window with an edit detail table form appears when one click on a link (icon).
    Konstantin Gudjev
    [email protected]

  • URL redirect - how to switch from https to http

    Hi, all.
    We have some requirement that the portal session be switched to https on some iviews while the rest of the contents are in http. I am thinking of using url redirect on the web dispatcher.
    What I found is that the url redirect from http to https works great. Now if I want to switch back to http, the redirect doesn't work. Note that the http port is 80 and https port is 443 on the web dispatcher. To test, here is the parameter I did to switch from http to https. This works and transforms the url from http://ozonehomeep3.xxxxxxxxx/irj/portal/zsap_xxxxx to https://ozonehomeep3.xxxxxxxxx/irj/portal/zsap_xxxxxxxxxxxx
    icm/HTTP/redirect_0 = PREFIX=/, FROM=/irj/portal/zsap_, FOR=ozonehomeep3, FROMPROT=http, PROT=https, HOST=ozonehomeep3.XXXXXX
    If I flip it back the other way:
    icm/HTTP/redirect_0 = PREFIX=/, FROM=/irj/portal/zsap_, FOR=ozonehomeep3, FROMPROT=https, PROT=http, HOST=ozonehomeep3.XXXXXX
    When I connect using the url https://ozonehomeep3.xxxxxxxxx/irj/portal/zsap_xxxxxxxxxxxx, it ignores the parameter and the redirect to http did not happen.
    What is wrong?
    Thanks,
    Jonathan.

    Hello,
    I've had a similar problem for one of my customers.
    I've tried to do it on a root level, just Https://FQDN:port_https/ to http://FQDN:Port_http/
    I've used this parameter to solve it:
    icm/HTTP/redirect_0 = PREFIX=/, FOR=FQDN, FROMPROT=HTTPS, HOST=FQDN, PORT=80, PROT=http
    maby you should try:
    icm/HTTP/redirect_0 = PREFIX=/, FROM=/irj/portal/zsap_, FOR=FQDN, FROMPROT=HTTPS, HOST=FQDN, PORT=80, PROT=http, TO=/irj/portal/zsap_
    You should also verify that the standard http port (80) are open in the firewall from the outside, just take a telnet session to FQDN and port 80
    to quickly determined if the firewall policy are right.
    Good luck!
    Kind Regards
    Håvard Fjukstad.

  • NAC L2-IP on 6500 . URL Redirection Not working

    Hi,
    We are testing NAC L2-IP on a Cat 6506 running 12.2(18)SXF9.
    When configuring for NAC L2-IP, the switch is able to download the required ACL
    entries. The HTTP Server is enabled in the Switch, however still the HTTP
    redirection is Not working.
    From the Client side, I can see the SYN packets going to port 80 but no
    response (Redirect etc) comes back from the switch.
    This is the Port-ACL
    10 permit udp any eq 21862 any
    11 permit icmp any any echo-reply
    20 permit udp any any eq bootps
    30 permit udp any any eq domain
    40 permit tcp any eq 3389 any
    50 deny ip any any
    This is the ACL as specified in the "url-redirect-acl" attribute
    70 deny tcp any host 10.140.4.116 eq www
    80 deny tcp any host 10.140.4.202 eq www
    90 deny tcp any host 10.1.194.15 eq www
    100 deny tcp any host 172.25.1.15 eq www
    110 permit tcp any any eq www
    Any ideas ?
    +++++++++++++++++
    show eou ip 10.192.99.27
    Address : 10.192.99.27
    MAC Address : 0006.5ba0.5705
    Interface : FastEthernet2/47
    AuthType : CLIENTLESS
    Audit Session ID : 0000002C1387D1FB0000000D0AC0631B
    PostureToken : -------
    Age(min) : 15
    URL Redirect : http://x.x.x/y
    URL Redirect ACL : redirect-policy
    ACL Name : #ACSACL#-IP-NAC_NoCTA_ACL-464b3186
    User Name : UNKNOWN USER
    Revalidation Period : 36000 Seconds
    Status Query Period : 300 Seconds
    Current State : CLIENTLESS
    ++++++++++++++++++++++++++++++++
    Exactly the Same configuration and Secure ACS configuration works for a 3560 Switch.
    Thanks,
    Naman

    Check this bug-id: CSCse02269.

  • Is Java Webdynpro Appl deployable in WAS6.20 or URL redirection frm EP6 to7

    Hi All,
    We have two portals, one ep 6 and another ep 7.  we have developed a small webdynpro appl and it is working in ep 7, but we want it to be in EP6, our ep 6 is based on WAS 6.20.  So, Can we deploy Webdynpro java application in EP 6 based on WAS 6.20.  If not, can we provide a url redirect to that particular iview from EP 6 to EP 7.
    Please help us, if anybody has any idea on this...
    Thanks & Regards,
    Ravi

    The system object can be created from system administration role in portal System_admin_role or assign your self super_admin_role in the portal EP6.
    Then Go to System Configuration -->Portal Content and there create a system object of type "Sap system with load balancing"  after that set Authentication Ticket Type as SAP Logon Ticket, Define Logon Method as SAPLOGONTICKET, Set Message Server of your Java Stack,Remote Host Type as 3,
    Set Web AS Host Name with port no > = 50000 ie Java Stack .
    System Object name for eacch env can be  env specific/different ie DEV, QAL, PRD etc
    but create the System alias for the system object created above and keep its name  same accross all the env  eg (JVA) and use this alias in your ivew  for defining system.
    Using URL Ivew will work too, but the problem with that is , you will have to do manual config (change server id or URL) in each env to reflect the application of  the env in which ivew will be.
    Where as using webdynpro Java ivew you will not hardcode the url , and define system as system alias in the iveiw and when ivew get transported to diff env , alias will connect it to the env specific system object.
    Edited by: Saurabh Agrawal on Apr 2, 2009 2:27 AM

  • WLC url-redirect

    Using FreeRadius to do Mac authentication Bypass with External URL redirect.  I have confirmed that I'm sending cisco AV-pair for url-redirect, and the WLC shows the client having that url applied(along with the url-redirect-acl that I've applied)
    My issue, the URL presented to the client doesn't have the action_URL appended when I apply it via 802.1x.  If I change the SSID and force external webauth I get a good URL to the client(generally http://<SITE>?action_URL=http://1.1.1.1/login.html or something similar).  How can I use url-redirect to force authentication with the proper action_URL appended?
    WLC 5508 with 7.2 code
    FreeRadius running on CentOS

    Hello Jeremy,
    As per your query i can suggest you the following solution-
    Configure WLC Splash Page Redirect with the information to configure the features described.
    Complete these steps in order to configure the devices to use the splash page redirect feature:
    1.Configure the WLC for RADIUS authentication through the Cisco Secure ACS server.
    2.Configure the WLANs for the Admin and Operations departments.
    3.Configure the Cisco Secure ACS to support the splash page redirect feature.
    For more reference refer to the link-
    http://www.cisco.com/en/US/products/ps6366/products_configuration_example09186a0080956185.shtml#conf
    Hope this will help you.

  • Query regarding regx

    Hi,
    I have a query regarding regular expression.
    what regular expression should I use which matches the following urls
    http://www.abc.com/xyz
    http://www.abc.com/xyz/abc.htm
    http://www.abc.com/xyz/<any thing>
    but it should not match
    http://www.abc.com/xyz45d
    http://www.abc.com/xyz<anything> if(anything does not start with /)
    I wrote the regx as : (http://www.abc.com/xyz)(/\w)*
    but it also matches the last url.
    Thanks
    Edited by: JL.Nayak on Jun 26, 2008 9:36 AM

    prometheuzz wrote:
    kajbj wrote:
    No, that's also incorrect.I have always found it a bit odd that people continue to answer questions that already have been answered, and especially if they post an incorrect answer.Usually this can be explained by the fact that there are still some Dukes to be rewarded to the thread in question. That's not the case with this one: odd indeed.But does that mean that you shouldn't read the other replies before you post your reply?
    (There must be a rule that says that you aren't allowed to read the other replies if you are posting in a certification thread, another odd thing)

  • Can URL redirects be configured with XE and what is the HTTP Server

    I would like to be able to URL redirects. I'm running XE with Application Express 2.1.0.00.39.
    I want to be able to have a URL like www.schoolwebsite.com and when the user hits it - have it redirect to the Apex page for the application. I was thinking that I needed to use a redirect in the HTTP config file, and that XE used Oracle_HTTP and I could configure in that manner.
    But, I can't find an Apache directory.
    1. What HTTP server is used with XE and Application Express 2.1.0.00.39?
    2. Can I configure for this type of redirect?
    3. Do I need to install an HTTP server to accomplish this?
    Thanks,
    Stephen

    Hi Steven,
    search for "proxy" in this forum.
    It explains how to configure a plain Apache http server as a proxy to XE. Then you can use the default mechanisms to rewrite an url.
    Here is an example (save the file as XE.conf and store it in the Apache conf directory (file httpd.conf is there).
    The following instructions are valid for Apache2.
    # Activate the following modules in httpd.conf:
    #LoadModule proxy_module modules/mod_proxy.so
    #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    #LoadModule proxy_http_module modules/mod_proxy_http.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    #LoadModule headers_module modules/mod_headers.so
    # include the XE configuration (this file XE.conf) in httpd.conf:
    #include "conf/XE.conf"
    # XE listener is buggy, thus downgrade to http 1.0
    SetEnv force-proxy-request-1.0 1
    RewriteEngine On
    RewriteLog "D:\Programme\Apache Group\Apache2\logs\rewrite.log"
    RewriteLogLevel 0
    ## Rewrite requests /apex, /i, /public, /sys to locally installed XE
    RewriteCond %{REQUEST_URI} /(([^/]+)(/.*)*)$
    RewriteCond %2 =apex [OR]
    RewriteCond %2 =i [OR]
    RewriteCond %2 =public [OR]
    RewriteCond %2 =sys
    RewriteRule ^/(.*) http://%{SERVER_NAME}:8080/%1 [P]
    ## Rewrite main page
      RewriteEngine On
      RewriteRule ^/$       http://%{SERVER_NAME}/apex/f?p=107:1 [R]
      RewriteRule ^/index.html$       http://%{SERVER_NAME}/apex/f?p=107:1 [R]
    ## Rewrite /app1
      RewriteRule ^/app1$      http://%{SERVER_NAME}/apex/f?p=107:1:0 [R=303]Regards,
    ~Dietmar.
    Edited by: Dietmar Aust on Oct 14, 2008 1:16 AM

  • NAC Framework URL-Redirect supported on ASA ?

    Hi
    Have anybody experience with URL-Redirects and URL-Redirect-ACLs when using NAC on ASA 7.x - are this supported Attributes - who has tested this successfully ?
    regards,
    Herbert
    regards,
    Herbert

    think URL-Redirect is supported. You may check by changing RAC to use IP instead of url. If it works then in ASA add a name command for the url IP and change the RAC to way it was before. Following link may help you
    http://www.cisco.com/en/US/docs/security/asa/asa71/configuration/guide/examples.html

  • Hiding url redirects

    Hi all,
    I am using UNIX(SUNOS) with iplanet 6.1 webserver with IE 6 browser on user end. The NSAPI application i am developing recieves a request with a certain string https://MYWEBSERVER/mystring and in the nametrans stage i replace this url with https://OTHERWEBSERVER/newstring?whatever and i redirect the request from MYWEBSERVER to a different webserver OTHERWEBSERVER that is i am doing an url redirect to another server. But the problem is that the url shows up on the address bar. Is there any elegant way to not let it show up on the address bar. By elegant i mean that it should not show up whatever i do to the browser(like pressing a back button or doing a refresh or anything.
    code:
    protocol_status(sn, rq, PROTOCOL_REDIRECT, NULL);
    pblock_nvinsert("url", newurl, rq->vars);
    return REQ_ABORTED;
    Thanks in advance,
    Kind Regards,
    Nitin Soman

    Thank you very much for the reply.
    Where and how do i implement the reverse proxy.
    the NSAPI plugin does some extra things like doing some cookie validations and changing the url and redirected.
    Is it possible to do in case of reverse proxy?
    Also will it affect the functionality of the current server.. i mean whether any changes required in the server which will affect its current functionality?

Maybe you are looking for

  • Issue in modifying OIM Email Def content

    Hi, I am facing an issue that ,when i try to change the content of my email notifications,it is getting changed.But after some time or days,the changes are not getting reflected.Is this a bug with OIM?.

  • Adobe Camera Raw 5.3 vs. 4.2

    Just noticed (Adobe website) that there is a new version of Adobe Camera Raw available.  I am using Photoshop Elements 6 which comes with Adobe Camera Raw 4.2.  The latest version is ACR5.3.  Does anyone know if there are any new features or capabili

  • IPhone not recognizing music & video content

    Just after updating to iOS4 my iPhone suddenly stopped recognizing its audio and video content (the ipod app reports 'no content'). However, it does recognize that it has that amount of drive space occupied by "Other" items (when viewed in iTunes.) S

  • Serialization

    I am having this problem with serialization When the first time i am writing an object using the objectoutputstring of string class to a file , nothing but some ascii characters are written. But after that whatever string i wnt to write using the obj

  • Problem setting up online billing.

    I've been trying to set up online billing, but when I enter my 'phone number a message appears telling me to enter my whole number. I presume the problem is I have a 5 digit number - is there any way around this? Thanks.