How do expire a page in Java Studio Creator

Hi There,
How do expire a page in Java Studio Creator ?
When pressing Back button, I would like to show "Warning: Page has Expired" on the browser.
Thanks.

Could you modify the JSP page to include the following
lines and try
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV=Expires CONTENT="now">
<%
response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-cache");
%>

Similar Messages

  • How To Increase heap size in Java Studio Creator 2

    Hi,
    I'd like to know how I can increase the heap size in Java Studio Creator 2.
    I already tried editing creator.conf, but it doesn't seem to work...
    Can anybody help me?
    thanks.

    In the servers window of creator, right-click 'Deployment Server' and choose 'View Admin Console'. A new web page comes up with the web interface to the Sun Application Server 8. Type your username and password that you configured during installation. I think default username is admin and default password either admin or adminadmin. After you're in, click 'Application Server' link in the left window, then click 'JVM Settings' tab, then click 'JVM Options' tab. Add new JVM option -Xms512m to start the server with 512MB. Find the -Xmx option and edit it to something larger, provided you have enough memory on your system.

  • How to do internationalization with Sun Java Studio Creator?

    Hi everybody,
    the Sun Java Studio Creator seems to be a great peace of software ;-) Currently I'm trying to design some forms for a hello-world-test-project. My question now is: how can I realize internationalization with property-bundles? I already managed it to create my own bundles, I set up a few locales (de, en, fr) and put in some "SayHello" Variables. But how can I associate my locale-variables in the .propertie-files with the value- or text-attributes of the UI-Components using the form designer?

    well... it's not working!
    I created some locale-properties. Put a
    <f:loadBundle basename="mypackage.mainlocales" var="messages"/>directly under the "<f:view>"-Tag as it is descriped in the manual.
    But when I write something like
    <ui:label binding="#{sites$main$mainmenu.label1}" id="label1" style="position: absolute; left: 312px; top: 168px" text="#{messages.test}"/>The designer crashes with an error-message:
    javax.faces.el.PropertyNotFoundException: Error testing property 'test' in bean of type null
         at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)
         at com.sun.rave.web.ui.faces.UIComponentPropertyResolver.getType(UIComponentPropertyResolver.java:298)
         at com.sun.rave.web.ui.faces.DataProviderPropertyResolver.getType(DataProviderPropertyResolver.java:264)
         at com.sun.jsfcl.data.ResultSetPropertyResolver.getType(ResultSetPropertyResolver.java:141)
         at com.sun.rave.jsfsupp.container.DesignTimePropertyResolver.getType(DesignTimePropertyResolver.java:169)
         at com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240)
         at com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208)
         at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:350)
         at com.sun.rave.web.ui.renderer.ValueHolderDesignTimeRenderer.encodeBegin(ValueHolderDesignTimeRenderer.java:59)
         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)Nevertheless - when I deploy my application, the locales are processed correctly.
    What am I doing wrong?

  • How to use print functionality in Java Studio Creator

    Hi,
    I am working on one JSF project using Java Studio Creator.
    I have requirement where I have one table and print button.
    By clicking the print button, I want the contents of table to be printed.
    I have configured all the required properties of this button but still by clicking this print button, I am not able to see the print window.
    Please help me in that, Its urgent.
    Thanks in advance.
    Vijay

    Hi,
    i think the best thing for you to do is to use javascript. go to jsp page of the form and find the button, as part of its attribute type onClick="window.print()"

  • How to create frames ...!  in sun java studio creator

    Hello Every One,
    How to create a frame set in java studio creator ...!
    I prefer to run my entire applicaion on a window which comes out as a frame set, rather open in a browser. How to do that ...! if some one knows it help me out.
    Basically this is what i am trying to do.
    in my web page or frame i have an list box on the left
    based on the values selected in the list the information is displayed on the right which has bunch of text boxes.
    through me an idea how to do this using Sun Java Studio Creator.
    Thanks
    Senthil

    As of 1.0 Creator doesn't support creating HTML frames via the designer. However, it may be possible to edit the JSP source to include one by hand.
    Have you tried Page Fragments?
    - WInston

  • Need to improve Java Studio Creator performance

    Can anyone has a suggestion on how to improve the performance of Java Studio Creator? JSC works fine when you have a less than 50 java files but when your building a large project JSC IDE works slow in terms of loading the whole project, modify the page in design layout, drag and drop a component or even modifying some java codes.The PC had a 2 GB memory. I'm grateful for any suggestion you can give. :D

    Hello, i supossed u r using Windows right?, and running in a x86 machine?. Ok well, even Windows XP is not so "Strong" enough to run Creator with a decent performance, i can say this because i have at home a PC Windows XP Pro, Intel Core 2 Duo Processor, 2 GB RAM, and HD Seagate Barracuda 120 GB ATA and Creator Still hangs some time, my suggestion is:
    Install Solaris in your pc, I've installed Solaris 10 11/6 in the pc ans runs great (the x86 vesion). I have a Sun Ultra 20 with 1GB RAM and 3 projects at work with more than 150 pages and works fine.
    Belthazor

  • How to call Web Services with Sun Java Studio Creator?

    Can someone from Sun please explain how to use the sample Web Services USWeather and GoogleSearch in Sun Java Studio Creator (no Portlet Application)?
    I read the Web Service Tutorial Accessing Web Services (http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/webservices.html) and this blog entry: http://blogs.sun.com/roller/page/winston?entry=code_google_search_in_no .
    But the proposed solutions do not work with the services USWeather and GoogleSearch.
    Thank you.

    Thank you for your answer, dongmei.
    It seems that the MethodResultTableDataProvider does not return the response of the web service as a value field if the WSDL contains only one result element.
    E.g. from WSDL of the USWeather Web Service which returns theGetWeatherReportResult string:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.webserviceX.NET" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
          <s:element name="GetWeatherReport">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="ZipCode" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="GetWeatherReportResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="GetWeatherReportResult" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="string" nillable="true" type="s:string" />
        </s:schema>If I drag the web service method on the page and I should be able to select the response value in the Bind to Data dialog box. But there is no value field. Value fields only occur if the web service returns more than one value.
    The question is how can I get the response GetWeatherReportResult from the service.

  • How to expire a page

    Hi,
    Anybody knows how to expire a page,for example
    if someone submit data on one page and is redirect to next
    page,if he hit back button of browser then he must see
    expire page.
    Thanks in advance.

    I usually put like this:
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 1);
    You will need to add this code to doGet() and/or doPost() methods.

  • How to change the source level in java Studio creator

    Hi,
    I am using Sun Java Studio Creator 2 Update 1 IDE, in this IDE how to change the source level to 1.5 for an existing project.
    Thanks in advance,
    Rajesh.

    Hi!
    Unfortunately Sun Java Studio Creator 2 Update 1 doesn't support 1.5 source level. But You can try to download NetBeans IDE (from http://www.netbeans.org) and there with Visual Web project You will find the same functionality as for Creator. And 1.5 source level is supported by NetBeans.
    Thanks,
    Roman.

  • How To Call HTML Page Through Java Swing Page  ???....

    Hi All ;
    Please Can You Tell Me How To Call HTML Page Through Java Swing Page ....
    Regards ;

    Hi,
    you can use HTML fragments on a panel.
    http://java.sun.com/docs/books/tutorial/uiswing/components/html.html
    However, to integrate a browser you need 3rd party software like IceBrowser
    If you Google for: HTML Swing
    then you find many more hints
    Frank

  • How to add components in java studio creator (htmLib)

    Hi,
    I'd like to add htmLib.jar into the palette of Java Studio Creator or at least into my project. Does anyone know of a tutorial or know how to do this? In particular, I need help in adding htmLib into my project: http://jsftutorials.net/htmLib/
    Thanks,
    Marc

    To add jar files :
    From the main menu, Tools > Library Manager.
    In the Library Manager dialog box, click New Library.
    In the New Library dialog box, enter the library name.
    Choose the library type and click OK.
    Click Add JAR File/Folder to browse for and add JAR files to the library reference.
    Click OK.
    In the Projects window, right-click the Libraries node and choose Add Library.
    In the Add Library dialog box, select the library reference.
    Click Add Library.

  • How to avoid Java Studio Creator 2 to use the regional settings?

    How to avoid Java Studio Creator 2 to use the regional settings to select the language that will be used to display the IDE in a certain language?
    My country settings are set to Belgium (French) but I want to have my IDE running in English.
    What should I change in the defautl properties of JSC2 to avoid this behaviour?
    Please, don't tell me to change my regional settings, it is not a valid answer :-)
    Best regards,
    Abdelkrim BOUJRAF

    just modify creator.conf in directory etc/
    add: -J-Duser.language=en
    in the netbeans_default_options line:
    like this:
    netbeans_default_options="-J-Duser.language=en -J-Xms96m -J-Xmx384m -J-XX:PermSize=32m -J-XX:MaxPermSize=128m -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Xverify:none -J-Dnetbeans.javacore.background_scanning=true -J-Dsunappsrvint.home=\"C:\Program Files\Sun\Creator2\SunAppServer8\""

  • How to Install Java Studio Creator

    Hello:
    I have a question regardin on how can I optimize the resources that my enterprise already have. I.e I can put an X86 Server (i mean really a server) to be an application server, however i can do It with the Java Studio Enterprise, but not on the Java Studio Creator, the question is the following.
    Can I put an application server to the wole development departemen (the only have got The Java Studio Creator) so their Pc run smoother and need no RAM upgrade (actually most of the have got 256 Mb).
    I Mean Put only to the PC the IDE an point the application server to another Server
    Thanks a lot

    Hi,
    Sun Java Studio Creator comes bundled with all the various components.It does not have an option for choosing the components to install .
    An RFE has been filed on your behalf for choosing the required components only at the time of installation.
    Thanks,
    Creator Team.

  • How to get the client's IP address from within Java Studio Creator JSP/Java

    Hi there.
    I just started using the Java Studio Creator 2 and now I need to get hold of the client IP address - this should be part of the request, but I cannot fint the right way to get hold of that information. I want to be able to access this information from within the Java-code in a JSP/JSPF-page.
    Is there a new way of doing:
    request.getRemoteAddr();
    This is the way I remember it from the JSP/Servlet-days...
    Sincerely,
    - Oystein Saebo -

    javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest) getExternalContext().getRequest();
    req.getRemoteAddr();

  • JSF + CeWolf + Java Studio Creator 2 (How to integrate)

    New to JSF, JSP and Studio Creator
    Problem is how to do graphics in JSF using Studio Creator.
    The best solution I can find is to incorporate CeWolf or it's base, JFreeChart
    into JSF. I've seen some posts on this, but none under the context of
    Studio Creator and none describing the process to a level that a newbie
    like me understands.
    Anyone know of a reference that describes the process in detail?
    Thanks in advance

    i used cewolf worked ok but i found it a bit slow to render charts. Also not really a jsf specific chart application.
    i found another JSF charting tag based on JFree Chart
    www.jenia.org
    (under their charting section)
    much better for a jsf application than cewolf

Maybe you are looking for

  • Restriction to Left Outer Joins in PS Query

    Hello I am trying to do Left Outer JOin in PS QUERY. I need to do dept tbl, job code tbl and locatable as left outer joins with JOB Table. Looks like in PS QUERY there is a error message saying as below. Can someone has any workaround to achieve this

  • On firefox I can't log on to my college website (it was working fine before and no longer does) It works on other browsers, it is not a loading problem.

    This is what happens when I log in on firefox only! "In an attempt to increase security, you are no longer able to use your personal email to sign into your myWalden portal. Please try again using your WaldenU.edu email." I am not logging in with my

  • Spaces and Missing Windows

    I've been using 10.5 since its release, and prefer to work with a number of Spaces open. Without fail, a number of times per day an application (seemingly random) will disappear from its Space, and (though still clearly running) be unable to be recov

  • Contracts and Outline agreements

    Dear experts What are the tables to look for  if an outline agreement / contracts is closed or open? Early reply on this much appriciated. Thanks in advance Cheers Goodguy

  • Feathered edges when using free transform

    Hello When I apply a free transform to a raster layer or a smart object, the edges of the layer get slightly feathered (1px on each side). To demonstrate, here is a smart object that contains a rectangle shape. Here it is before applying free transfo