Weirdness involving IE, JSP, data scraping and server-side redirecting

I have a JSP script that validates inputted data. Upon successful input, it will
1) set a cookie
2) Do a data scrape to a URL that points to a servlet that performs server-side actions based upon query string data that is formed from your input
3) Redirect back to itself to ensure cookie availablity and further actions.
If you run this script on Netscape or Firefox, all is well.
If you run this script on IE, while [2] works, it seems to be performing [2] twice, because the actions are duplicated (the actions in [2] consist of placing info into flat files so you can see what is going on).
Does IE have a problem with data scraping + server-side redirection (I am using response.sendRedirect()) that I don't know about?
Thanx
Phil

Agoston_Bejo wrote:
The problem is that right after having logged in, while you're still in the filter, the beans managed by JSF haven't been put into any scope yet. (The faces servlet hasn't been called yet, so it hasn't had the chance to instantiate the managed beans, put them into the appropriate scopes etc.) So it is request scoped? Just create one yourself. I however don't see any benefit/reason for having the logged in user in the request scope ..

Similar Messages

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • JSP in place of server side includes

    I would like to know what is a server side include and why is it that JSP is preferred to server side includes.

    SSI is used to paste external parts into static HTML Pages and only for simple
    things (not for programs, database accesses,..)
    JSP is much better, because you can use a rich toolkit (JDK), can manipulate the HTTP-answer in more flexible manner as SSI, and all advantgaes of JAVA.
    Regards,
    Geri

  • UIX - unable to turn off client and server side field validation

    Hello,
    I've scoured the forums for info on how to turn off client / server side field validation, for the very common case of a Cancel button. Here's the use case:
    User enters a page displaying records of some kind that can be edited, or an option to create a new one. User clicks create, is taken to a new data entry form. Before entering any data, the user decides he isn't interested, and clicks the cancel button.
    The problem I'm having is that I'm getting messages that required fields have no values. I have found several references on this forum that setting the submitButton attribute unvalidated="true" will turn off client side validation. Here's what my submitButton looks like:
    <submitButton text="Cancel" event="success" unvalidated="true"/>
    But I am still getting errors, such as:
    JBO-27014: Attribute ListName in DealerListAppModule.WebDlrListsView1 is required
    Now I have also seen references in the forums to turning off server side validation by overriding the validatModelUpdates method in the DataAction. I have done this too. No luck.
    Any ideas why this isn't working? I have seen other posts in the forums stating that there were improvements in JDev 10.1.2 that caused a create but not insert, where you could just navigate away from the page you were on, without having to worry about rolling back the create of a new record. I am also not seeing this behavior either. I am using 10.1.2, completely updated, but when I execute a create, if I navigate back from the create page to the original one without saving (i had to fool with this to get it to work because of the validation problems above), I am still seeing the blank, created record in my rowset. I originally created my project in 9.0.5.2, but am now using 10.1.2, and having migrated the project.
    So what's the deal? What's the definitive way to turn off both client side and server side validation, and what's the status of this create but not insert functionality?
    Brad

    Haven't worked with this but possibly this method of "deactivation" is not valid in 11gR2? Have you cross checked that with Oracle support?

  • Client side load balancing and server side load balancing

    Hello Team,
    I need to know how to set up client and server side load balancing in oracle rac.  What all things to be implemented like creating a service, tnsnames.ora settings etc.
    And also if i used SCAN ip instead of VIP. how the settings will change.
    Regards,

    Hi,
    please find here an Whitepaper with the information
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-11gr2-client-failover-173305.pdf
    kind regards

  • Server side redirect with 4.5.1 and Netscape Enterprise Server

              Is it possible to have a servlet running under WL 4.5.1 to perform a server
              side redirect ala CGI?
              Here's my config:
              web server: Netscape Enterprise Server 3.6 on solaris, with weblogic
              plugin
              servlet runner: WL 4.5.1 on different host from ES.
              Here's what I want to happen:
              1) HTTP GET from browser to enterprise server
              2) forwarded by plugin to servlet
              3) servlet logs some activity to an application log file, and sends a
              server side redirect to enterprise server
              4) Enterprise server returns the file identified by the rediect directly
              to the client.
              This is possible with enterprise server and CGI, because the ES CGI code
              checks the return stream from the CGI program for "Location: <some url>". If
              it see's that, it tries to locally resolve that URL as the client had asked
              directly for that URL. I think this would only be possible with WL if the WL
              NSAPI plug in supported a server side redirect feature. Anyone know status
              of that? Or might ES support something like this depending on the order of
              the objects in obj.conf?
              Here's what I've tried in the servlet:
              res.setHeader("Location:", location);
              res.setContentType("magnus-internal/redirect");
              res.setStatus(302);
              This just sends an HTTP tempoary new location to the client for a client
              side redirect. Client side redirect is not desirable because it doubles the
              HTTP traffic.
              Another option would be to read the file I want to redirect to from inside
              the servlet and return it from the servlet, but that is not desirable
              because I want to have ES serve the file - thats it's job, it caches, less
              network traffic (between our servers), etc.
              Server side redirect is very useful feature and not that uncommon for web
              applications, so if WL does not support it now, I will probably put in a new
              feature request.
              Thanks for your help
              Mark Johnson.
              

    Why not just use the proxy servlet to redirect to your netscape server? That
              does it on the server side!
              -russell
              Mark Johnson wrote:
              > I belive that sendRedirect performs a client side rediret, not a server
              > side redirect.
              >
              > Guy Tal <[email protected]> wrote in message
              > news:[email protected]...
              > > public void doGet(HttpServletRequest req, HttpServletResponse res) ...
              > > ...
              > > res.sendRedirect("http://destination");
              > > ...
              > >
              > > Guy
              > >
              > > Mark Johnson <[email protected]> wrote:
              > >
              > > > Is it possible to have a servlet running under WL 4.5.1 to perform a
              > server
              > > > side redirect ala CGI?
              > >
              > > > Here's my config:
              > > > web server: Netscape Enterprise Server 3.6 on solaris, with weblogic
              > > > plugin
              > > > servlet runner: WL 4.5.1 on different host from ES.
              > >
              > > > Here's what I want to happen:
              > > > 1) HTTP GET from browser to enterprise server
              > > > 2) forwarded by plugin to servlet
              > > > 3) servlet logs some activity to an application log file, and sends
              > a
              > > > server side redirect to enterprise server
              > > > 4) Enterprise server returns the file identified by the rediect
              > directly
              > > > to the client.
              > >
              > > > This is possible with enterprise server and CGI, because the ES CGI code
              > > > checks the return stream from the CGI program for "Location: <some
              > url>". If
              > > > it see's that, it tries to locally resolve that URL as the client had
              > asked
              > > > directly for that URL. I think this would only be possible with WL if
              > the WL
              > > > NSAPI plug in supported a server side redirect feature. Anyone know
              > status
              > > > of that? Or might ES support something like this depending on the order
              > of
              > > > the objects in obj.conf?
              > >
              > > > Here's what I've tried in the servlet:
              > > > res.setHeader("Location:", location);
              > > > res.setContentType("magnus-internal/redirect");
              > > > res.setStatus(302);
              > >
              > > > This just sends an HTTP tempoary new location to the client for a client
              > > > side redirect. Client side redirect is not desirable because it doubles
              > the
              > > > HTTP traffic.
              > >
              > > > Another option would be to read the file I want to redirect to from
              > inside
              > > > the servlet and return it from the servlet, but that is not desirable
              > > > because I want to have ES serve the file - thats it's job, it caches,
              > less
              > > > network traffic (between our servers), etc.
              > >
              > > > Server side redirect is very useful feature and not that uncommon for
              > web
              > > > applications, so if WL does not support it now, I will probably put in a
              > new
              > > > feature request.
              > >
              > >
              > > > Thanks for your help
              > >
              > > > Mark Johnson.
              > >
              > >
              > >
              > >
              > >
              > >
              > >
              > >
              Russell Castagnaro
              Chief Mentor
              SyncTank Solutions
              http://www.synctank.com
              Earth is the cradle of mankind; one does not remain in the cradle forever
              -Tsiolkovsky
              

  • Tabbed panels, Collapsible Panel, and Server Side Include

    Hi,
    I'm having a problem with the way a Server Side Include inside a Collapsible Panel displays.
    Here is how this particular page is set up.
    The page has spry tabbed panels.
    >>A panel has one overall Collapsible panel (the main product tab)
    >>>>Nested in that Collapsible panel are four other collapsible panels (Overview, Features, Screenshots, What's New).
    >>>>>>In each of these four collapsible panels is a server side Include that features that category's content
    E verything works fine as far as opening and closing is concerned. However, the problem is with the display. The content panel doesn't resize with the Include content, and therefore, the Include content extends outside the border of the content panel.
    I'm thinking this is because it is Include content rather than normal content. Is that right?
    Do I fix this by changing the overflow value of one the Tabbed Panel CSS styles? If so, which one should I change, and to what value?
    Or if that's not how to fix it, can anyone tell me how?
    Thanks a lot,
    Mike

    Hi, I'm using the latest version of Spry. I modified some CSS rules of the tabbed panels, but not the javascript file. I didn't do anything to the Collapsible Panel rules.
    Since first posting this thread, I changed the overflow of the Tabbed Panels Content Group CSS rule to "scroll". That did produce a scroll, but I'd much rather have the panel expand. So, I changed it back the way it was.
    Here's the page I'm working on. Click the Court Solutions tab to get to the problem panel.
    http://www.ptssolutions.com/Test/public_safety_products_3.shtml
    It has different results in IE and FireFox, but doesn't work correctly in either.
    Thanks a lot for all your help,
    Mike

  • Flash and server-side Java interaction

    If I have a graphic designer who is going to build a Flash
    front-end that needs to interact with server-side Java code running
    in a web server (Tomcat), should we be using Flash Remoting with a
    front-end that the designer creates with the Flash builder? It
    seems like that would be the easiest way for them to build it
    rather than having them get into Flex and all that. However, if
    there's a better way, please point it out to me, because I've never
    tried using any of these Adobe products. Thanks...

    hi Naija
    If you need to communicate with flash and java , then you
    need to move to the flash remoting concept. it the better way to
    communicate with the server side scripting language.
    ~~
    SK

  • Disable ADF Client and Server side validation during drop down changes

    In my ADF Faces there is PanelFormLayout containing dropdown with country code value. Changing the dropdown value should change the layout to different country.
    If the data is proper in the form the Layout changes perfectly but if the data is not proper it gives client validation & the layout doesn't get changed.
    I want to disable the client/server side validation while changing the dropdown.

    Hi Just framing the Question once again -
    In my ADF Faces there is PanelFormLayout containing dropdown with country code value. Changing the dropdown value should change the layout to different country.
    If the data is proper in the form, the Layout changes perfectly but if the data is not proper it gives client validation & the layout doesn't get changed.
    I want to disable the client side validation just for that page or panelformLayout
    Issue -
    If the data is incorrect on the form, user is able to change the countrycode from the dropdown but the layout doesn't changes because client validation is stopping.
    Below is the code -
    1) Changing the drop down cause the switcher to call the code - defaultFacet="#{backingBeanScope.AddressComp.displayType}" which changes the layout.
    2) But if the data is not correct the country value is getting change with the new Country but the Layout is unable to get change. ADF start showing client validation.
    <af:panelGroupLayout id="pglA1" partialTriggers="plcol1:table1 *usCountryId caCountryId*">
         <af:switcher binding="#{backingBeanScope.AddressComp.switcherComp}" defaultFacet="*#{backingBeanScope.AddressComp.displayType}*">
              <f:facet name="US">
                   <af:panelFormLayout>
                        <af:selectOneChoice value="#{bindings.CntryCd.inputValue}" label="#{bindings.CntryCd.label}" required="#{bindings.CntryCd.hints.mandatory}"
         id="usCountryId" autoSubmit="*true*">
                        <f:selectItems value="#{bindings.CntryCd.items}" id="si14"/>
                   </af:selectOneChoice>
                   </af:panelFormLayout>
              </f:facet>
              <f:facet name="CA">
                        <af:panelFormLayout>
                        <af:selectOneChoice value="#{bindings.CntryCd.inputValue}" label="#{bindings.CntryCd.label}" required="#{bindings.CntryCd.hints.mandatory}"
         id="caCountryId" autoSubmit="true">
                        <f:selectItems value="#{bindings.CntryCd.items}" id="si14"/>
                   </af:selectOneChoice>
              </af:panelFormLayout>
              </f:facet>
         </af:switcher>
    </af:panelGroupLayout>

  • SSL Certificates (p12) and server side authorization

    Hello dear ALL!
    Can u tell me how to store multiple certs in AIR app if it's possible?
    I have an server side SSL authorization. But I can't sign AIR app with client p12 certificate =(
    Is there another way to use my client certificate?
    Sorry for my english =)

    Anyone?
    Client can have several certificates (logins).
    Where in the system or in AIR app its stores?

  • RequestDispatcher.include and "server-side" include

    I have the following code in a servletA. It will dispatch a servletB within the same webapp. As a result, response content of servletB is included to a original servlet's response. Then servletA can add more data to a response before data is sent back to a client.
    servletB is called from client-side as normal, and then inside the servletA.
    Problem and Question to You:
    If I call servletB within servletA, then responses of these two servlets are merged together. This is a problem here.
    How can I dispatch servletB >>but then do not want to include<< that response data, but skip it. Only the response of servletA should be sent back to a client?
    RequestDispatcher dispatcher =
      getServletContext().getRequestDispatcher("/servlet/testServlet?id=AA");
    dispatcher.include(
      new HttpServletRequestWrapper(env.getRequest()),
      new HttpServletResponseWrapper(env.getResponse())
    );

    Thx and yes, you got it right. Due to a (bad) design, I cannot separate a logic to a standalone bean from servletB and then use that bean. So, I must call it through a url-dispatcher.
    If I'm right, I cannot take a reference to servlets from SessionContext object due to a deprecated-and-not-implemented getServlet method.
    I was hoping, that using a WrapperXXXX class would solve my problem but it did not. I am not sure about why and when should one use that WrapperXXX classes anyway in a dispatcher calls.
    Anyone has a good ideas?

  • Where to go next with Dreamweaver and server-side (php/mysql) applications?

    This question is mainly directed at David Powers but  I appreciate any input from anyone with the same concern or question.
    I've been using DW since the change from Macromedia and have developed a number of applications using built in server behaviors and sb extensions from ADDT, WebAssist, etc. I've learned to customize these behaviors to fit my needs always keeping within the "canned" code. In this way I've "learned" php.
    I own most of David's books and in fact, it was because of these that I have any idea about what I'm doing and went in this direction in my "developer" career (building php/mysql applications using Dreamweaver.)
    With the decision to remove server behaviors (and the other "developer" panels) from DW and with the deprecation of the mysql extension from the php landscape, I'm wondering where to go next? I fully understand this has to happen.
    I'm aware of some alternatives:
    Zend or some other framework - to me, this seems extremely complex
    Keep several versions of DW installed
    Stick to Joomla/WordPress/Drupal - let others who know what they're doing build the architecture
    Actually LEARN php - wish I had time; too much work to do (I know how illogical that sounds but it's a very real situation)
    I know I'm going to have to switch out all that deprecated code or better yet, rebuild the many applications which used the DW (and other) server behaviors. I'm just not sure which way to turn.

    rjjacob wrote:
    Since I wrote this post I concluded that there is no substitute for understanding and have started my re-education by delving further into the issue with updated PHP/MySQL books and tutorials so I can prepare for a Dreamweaver without this functionality.
    Yes, I too have concluded that is the way to go as well. There really is no substitute for learning as much as you can. Whilst the DW Server Behaviours were very convenient they have not kept pace, Adobe prefering to spent their time on less important updates in my opinion. The Server Behaviours are what makes Dreamweaver the tool of choice  for database integration for those who lack the knowledge. I feel the Adobe team will regret not coming up with an alternative. Anything that detracts from making the program what it is is a step in the wrong direction and for sure this is a big step in the wrong direction.
    rjjacob wrote:
    I have mainly used DW server behaviors in my development projects that's why I am curious about what others are doing to make the change. I'm surprised there haven't been more posts; perhaps I'm the last one to be taking action about this, or maybe no one is too worried about it yet.
    I think a lot have changed their working practice but many more are burying their heads in the sand. sql_ support is a way off from being completely dropped yet.
    rjjacob wrote:
    Anyway, your assessment of how terrible the server behaviors are is correct. I'm finding that true after barely breaking the binding on a few books about the greater subject and looking into mysqli and PDO.
    Yes, because I relied heavily on them I did not know how bad they were until I forced myself to look further afield. What you can do in a couple of lines of code the DW Server Behaviors produced quadruple or more to achieve the same.
    rjjacob wrote:
    But they sure were convenient!
    Yes, I agree. Maybe some extention developer will come up with a set of new improved behaviours. I tell you if they do they will make a shed load of money.

  • Simultaneous Client and Server Form Validation using Custom Tag Library

    I am developing a custom tag library for validator tags
    which are capable of doing client side validation (Javascript)
    and server side (Java). My problem is with the development
    of a regular expression based validator. Because of differences
    in the way Javascript and Java handle regular expressions
    i can not use the same regular expression for both types of
    validation. Is there any way to convert a valid regular
    expression from the java.util.regex format into the Javascript
    format or vice versa? My major problems are with the (or, ||)
    statements and the user of backslashes.

    If you are speaking of RE syntax flavours, they are basically the same(namely perl5 flavour). Any expression that works in JS should work in j.u.regex too.
    Though, their usage is quite different.
    So, there is no need for convertion of expressions.
    But porting the code may be not so trivial.

  • CSS 11503 One-arm Design and Server Default Gateway

    Our problem is determining the correct default gateway for our web servers. All IP addresses are in the same subnet (VIP, interfaces, and servers). Should the servers default gateway be the L3 switch, or the CSS?
    Thanks!
    Tom

    Hi Tom,
    If you have one arm mode, you might have problems with asymmetric flows, due that the CSS behaves similar to a firewall when it comes to flows, as it needs to see both sides of the flow ( client and server side ) in order to handle things correctly. Having this kind of setup, and even when the server pointing to the CSS as its default gateway, ICMP redirects might force the traffic to change dynamically.
    You can put as default gateway the L3 switch, but you need to force the traffic that has been load balanced by the CSS to go back to the CSS, otherwise the flow would fail. You can do this by using a group on the CSS, adding the service with the following command: 'add destination service xxxx'. This would NAT the client's IP address for the VIP that you use on the group and would force the flow to go back to the CSS.
    Another thing that you can do is to use the CSS as the server's DG, but you must make sure that all L3 devices, including the CSS have ICMP redirects turned off on this subnet. If you have a firewall on this subnet, you would need to turn off proxy ARP as well.
    I hope you find this helpful. Thanks!
    Regards,
    Jose Quesada.

  • How do you collect "console-type" data on server side ?

     

    Yoshi,
    We currently do not have any such APIs available. However, we are strongly
    directed to pursue the Java performance monitoring APIs in the distant
    future.
    One of the other options for you is to consider tools from third parties
    such as the K. L. group. Many of these tools are very good at doing one off
    performance measurements. Cumin
    Thanks, Michael
    Michael Girdley
    Product Manager
    WebLogic Server
    [email protected]
    -WebLogic is hiring for its downtown San Francisco, CA office. Resumes
    welcome.
    Performance Engineering <[email protected]> wrote in message
    news:[email protected]..
    Hello everyone,
    Does anyone know any weblogic's java API which let us collect various
    data on the server side, such as those data shown within the console ?
    Is there a set of tools that the Console uses in order to collect the
    data ? Thanks.
    -- Yoshi

Maybe you are looking for

  • Usual windows 7 opening and closing of windows are not working with my updated Firefox 16.0.1

    My Windows 7 automatically updated recently and so did Firefox. Now, with all other Windows applications including Internet Explorer, I can open a new window by right-clicking on the icon in the taskbar (showing there because the application is open)

  • Installing Docucment Management System

    HI Experts: I would like to know what is required to get a DMS solutuon working. We already have a ECC 6.00 in our environment.  We are not planning on using Easy DMS. What are the steps reqiured to get this thing working? What do we need to install?

  • HT4241 Hdmi flickering issues.

    My HDMI adaptor is constantly flickering! Please help! My hdmi adaptor used to work fine, I have tried different adaptors, different displays different hdmi cables with no luck, my brothers macbook still works fine! please help thanks. I have searche

  • Basic NOT EXISTS query not returning any results

    DB Version: 10gR2 One of our tables in the test schema is having less number of columns than the PROD shema. To determine which are missing columns in this table in Test schema i did the following. -----In Test Schema CREATE TABLE XYZ2 (COL1 NUMBER);

  • Email Parsing - Subject, From, To, etc

    I'd like to use Java to parse emails to get things like the subject line, from email address, to email address, etc. Where is a good place to start? After I get the parsing done, I'll later be doing more to work an filtering spam and viruses. But, fi