Changing a jsp in application

I have a java web application that is running on Sun's web server for a few years. It consists of jsp pages. In one of the jsp pages, there is a string for database. The database location and name is changing.
I can change the jsp page in notepad with the new database name, but how do I make it available to the application .... Do I need to compile the jsp page ?
Thanks

Yes, that's one use of the include directive, lets you add content inline. You missed an "@" there though. It's <%@ include...
EDIT: One word of warning; it is not mandatory for the container to recompile the including JSPs if the included resource is changed! It seems you have a smart container which detected that your included JSP had been modified and so it's reflecting the changes in the other files too. But this is not required behaviour and so you shouldn't count on it. AFAIK, Tomcat will also do the same.
Also, this is a good reason why, even though it seems like a good idea to put the DB URL into one JSP and include it everywhere so that you have only one entry to change when the DB changes, it's still risky. A better way would be to put it as a <context-param> or something similar.
Edited by: nogoodatcoding on Sep 28, 2007 10:15 PM

Similar Messages

  • Changing some JSP pregenerated items

    Hi Folks,
    Ive generated a JSP BC application, and as you know, im in the process of terminating it with the help of all of you.
    The problems i have now are the following:
    - How do I change/remove the name of the view object that appears in the navigation bar ?
    - How do I change the text in the "Cancel" Button in the Insert/Edit JSP forms ?
    - How can I obtain a "map" or some guidelines to the CSS used (cabo_styles), because im suffering to change colors and appearance in my forms, testing black and white in all the color values...
    - How do i change the tips texts in the navigation bar for ALL elements in it ?
    Thanks
    Alex

    Laura, i can see you misunderstood my questions, let4s explain them for you :
    - i4m using the default Oracle style of Application, that with a JSTab container that let the user see the data in the view objects in two ways : single record or RowSetBrowser.
    1) in this style, the navigator bar used to operate the view (insert, edit, find, delete and browse) is created in the "_top" corresponding jsp4s and in this navigator bar "mystically" the name of the current View Object is shown, i say mystically because i couldn4t found where it was defined. What do I have to change in my contents.jsp for it to show the names i want (if i change the links, i suppose it wont work anymore...), or perhaps i can omit this ?
    2)in this style the cancel button is "mystically" created, because i couldnt found out where it was defined too. So, i cant change... where it is created ?
    3)i AM editing the style, the real problem is that there is no clear association between what4s defined there and what each definition really changes in the appearance (for example, what is "COLOR2", what do the "COLOR2" definition really defines ????)
    I really need to know how the jsp understands this, cos im in the try-and-try method of changing each one of the values to discover what it really means... this is boring, takes too much time...
    Thanks !

  • Setting/changing a date in application.cfm

    I need to be able to set a date in the application.cfm file
    for example
    <CFSET APPLICATION.stopdate='10/15/2014'>
    Then in my site on other pages I have code that says
    <cfif reportdate GT #APPLICATION.stopdate#>Do This</cfif>
    The problem is sometimes I need to change the APPLICATION.stopdate to another date during the middle of the day.
    For example I need to change the APPLICATION.stopdate from 10/15/2014 to 10/25/2014
    However I notice when I change the  APPLICATION.stopdate in the application.cfm to another date during the middle of the day that the APPLICATION.stopdate stays the old date.
    How do I make sure that the APPLICATION.stopdate changes sitewide when I change it in the application.cfm?
    Do I use another variable scope?

    Yes, that's one use of the include directive, lets you add content inline. You missed an "@" there though. It's <%@ include...
    EDIT: One word of warning; it is not mandatory for the container to recompile the including JSPs if the included resource is changed! It seems you have a smart container which detected that your included JSP had been modified and so it's reflecting the changes in the other files too. But this is not required behaviour and so you shouldn't count on it. AFAIK, Tomcat will also do the same.
    Also, this is a good reason why, even though it seems like a good idea to put the DB URL into one JSP and include it everywhere so that you have only one entry to change when the DB changes, it's still risky. A better way would be to put it as a <context-param> or something similar.
    Edited by: nogoodatcoding on Sep 28, 2007 10:15 PM

  • Best way to manage images on jsp web application

    Hi,
    Am developing a jsp web application, in that project, the user will upload the image files, now I created an image directory in the context root and when the image is uploaded by the user it is saved in the /images directory and the image path is saved in the database. I can display this image using the <img src="images/a.jsp" > tag.
    but when I rebuild the project all the images in the /images directory get deleated but the image path is remained in the database, is there any method that I make /image dir outside my project context root so that when I rebuild the project the /images dir can get changed and my project will save images outside the context root that is in the /images dir which is now outside the project context root. and is it possible to display those images using <img src""> tag. because this time my /images dir is at D:/images . what could be the best method or way to handle images with the web application.
    any suggestion will be helpfull

    Well my friend as per your given case there are to two ways of approaching your problem.
    Case 1:
    How to save the relevant data ??
    .Create a backup folder Workstation on which you are hosting your application where you can store all the uploaded files which is outside the scope of webserver(However we can write a dedicated servlet which can access that file) and make sure we pickup from any the folder path from a specfic MessageResource bundle or an context/servlet init parameter in web.xml.
    .Write a Upload servlet/Backing Bean which saves all the files in the discussed folder using utility packages like Commons FileUpload,Oreilly MultipartRequest & etc and then register saved fileName in the database user specfic table specific to user.
    How to display the Image ??
    .Write a dedicated servlet which can pickup user related fileName specfic information from the database and the read the file from backup folder by constructing the path from the entry made as a init param in web.xml or any other custom MessageResource bundle and then stream the Image data using the ServletOutputStream.
    NOTE: do not forget to pickup & setImage file ContentType & Set the content length.
    .Just try to render the JSP view file where we are displaying the displaying the images by calling the dedicated ImageServlet.
    <img src="ImageServlet?userid=2345" align="center"/>Try to refer below posts to get a better understading.
    Dedicated Image Servlet:
    http://forum.java.sun.com/thread.jspa?threadID=5208858&messageID=9840042#9840042
    Uploading Files Using Servlet:
    http://muimi.com/j/jakarta/commons/fileupload/
    Case 2
    The second method would more or less the same but here we would save the uploaded file
    content is saved in the Database as a Blob and we would retrive it back using a dedicated image servlet again.
    However,in terms of performance the second case implementation is very costly.
    Try to refer below posts to get a better understading on the second case.
    http://forum.java.sun.com/thread.jspa?threadID=5193481&tstart=50
    http://forum.java.sun.com/thread.jspa?threadID=5211649&messageID=9853670#9853670
    Hope this might help :)
    REGARDS,
    RaHuL

  • Tomcat doesn't pick up the changes to jsp files

    My original problem was JAR locking. I changed context.xml files both in conf\ and my application.
    jakarta-tomcat-5.5.9\conf\context.xml
    <Context  reloadable="true" antiResourceLocking="true" antiJARLocking="true">
           <WatchedResource>WEB-INF/web.xml</WatchedResource>     
    </Context>myApplication\META-INF\context.xml
    <Context  reloadable="true" antiResourceLocking="true" antiJARLocking="true">        
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>Now I can undeploy without having jarLocking problem.
    But now tomcat doesn't pick up the changes to jsp files automatically!!!
    I have to undeploy/deploy even I just change jsp files!
    What's wrong?

    You can't do anything except speak in a different accent. Apple would have to add specific support for different accents in a future iOS update.

  • How to change font-size of application menu

    I want to change font-size of application menu. How?

    Hi,
    To change the font size of the Application menu, you need to change main.css file.
    at 'body, td, input, select, textarea' class.
    For more detail about main.css, please refer Bookshelf
    Siebel Developer's Reference at [8 Cascading Style Sheets].
    Regards,
    Joseph Arul Dass

  • Issue in Oracle 11g Database Change Notification  for Java application

    Hi,
    I am trying to use Oracle's Database Change Notification in Java application.
    I followed the sample application (+DBChangeNotification.java+ , Example 29-2), provided in the following link:
    +[http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/dbmgmnt.htm#CHDEJECF]+
    I am able to see that the Registration of the SQL query is successful.
    But, when I do changes to the table registered, notifications are not received in the Listener class (+DCNDemoListener.java+).
    Ideally, the method DCNDemoListener.onDatabaseChangeNotification() should be invoked on any insert/update to the registered table. But this method is not getting invoked.
    The execution has stopped in the following line of DBChangeNotification.java Class.
    this.wait();
    +==> The application was WAITing indefinitely in this line, as the NOTIFY() from DCNDemoListener.java was not executed.+
    I am using VPN to connect to Oracel server. Remote Oracle Server is protected my firewall. Is this the reason for not sending the notifications from Oracle server?
    The version of software used are given below:
    Oracle Client - Oracle 11.1.0
    JDK - 1.6
    Oracle JDBC Driver - ojdbc6.jar
    Can someone help me to resolve this issue?
    Thanks in Advance.
    Regards
    Sam
    Edited by: Ponsu on Apr 7, 2011 10:41 PM

    Hi,
    I am having similar issue. Where you able to resolve it.
    I am also using the same example you were using.
    I am using the following version.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Compatibility: 11.2.0.0.0
    I do not see any notification coming back from the DB.
    Appreciate your help.
    Thanks & regards,
    Ebe

  • How to track changes in a hyperion application for SOX control?

    Hello all,
    We have been working on identifying the best way on how to track changes in a hyperion application in regards to the SOX control.
    The following areas have been identified as the main areas of an application where the changes are to be tracked:
    Monthly data load from ODI
    Calculation of data
    Metadats change
    Formula edit
    Changes to reports
    Changes to security
    Can anybody please suggest the best ways to do this? Has anyone experienced this issue before?
    Somebody suggested that there is hyperion auditing available.
    Is there any other software that is available that can do this or just documenting the changes would be the best option?
    Please suggest. Toyr response would be appreciated.
    Thanks.

    Shared Services allows the auditing of provisioning and life-cycle management activities to track changes to security objects and the artifacts that are exported or imported using Lifecycle Management Utility.
    For Shared Services auditing, refer Page 129 of http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_security.pdf
    Planning Administrators can select aspects of the application for change tracking. For example, you can track changes to metadata, such as when users change a member property or add a currency. You can also track changes in data forms, business rules, workflow, users, access permissions, and so on.
    For Planning auditing, refer Page 56 of http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin.pdf
    HTH-
    Jasmine.

  • Frame issue in jsp/struts application

    I have a problem with jsp struts application .
    i have a jsp page which is inside a frame .
    The action class which receives the request from this page redirects the request to another jsp page.
    I want this new jsp page to be displayed without any frame , but it is getting displayed from inside the frame .
    can anybody help me out ...
    regards,               
    slam

    Possibly:
    1. Browser could be caching the page.
    2. If you use a proxy, the proxy may be caching the page.
    3. The page is not getting recompiled.

  • Change security of adf application on weblogic

    hi all,
    i am new in weblogic. i set oid in weblogic succesfully. But i couldn't change security of adf application. Is there any documantationof how change security of adf application?

    hi frank,
    i mean that i set oid in myrealm which is my default security realm. I change order of Authentication Providers. all of the users of oid are in myrealm . However my application does not use this ldap configuration. i couldn't change security of application, and i need help. Before i deploy my 10.1.3 adf application to oc4j and during deployment i can set the security of application but i couldnt see anything like oc4j in weblogic
    i configure my oid like below link
    http://www.oracle.com/technology/products/jdev/tips/fnimphius/oidconfig/index.html

  • Changes in HCM learning application

    Hi All,
    According to my requirement I have to change code in standard BSP application i.e. HCM Learning
    I have to put authorization in it for employees according to roles.
    Please tell me how to do the changes in standard BSP application? and
    where in the code i can put the authorization.?
    Thanks in advance
    s@chin

    Dear Baljinder,
    We are having the same requiremnt to change the information page in HCM learning
    Can you please explain in detail what you have done to get the desired result.
    I mean how did you maintain LSPAGE_ALIAS_C and LS_PAGE_ALIAS tables.
    Thanks a lot in advance,
    Reagards,
    Sai

  • I have problem " verify your emal "   i can't change account , i removed application and instell again , same problem fix email and " verify email"

    i have problem " verify your emal "   i can't change account , i removed application and instell again , same problem fix email and " verify email"

    The Email ID provided here has CC registered to it in active status. The Email also stands verified. Are you using any other Email ID ?
    Let me know if you are facing issue regarding verification by activating the Cc with the email ID provided here.
    Regards
    Rajshree

  • Handling Visual Changes in a Cairngorm Application

    I was wondering if there are any suggestions/best practices for how to handle visual changes in a Cairngorm Application.
    I am currently working on a Cairngorm Application with many moving parts - Trees, Lists, ViewStacks with ViewStacks as children. I want the application to be able to change visually based on some user actions - no real business logic involved. For instance, I have a menu that has options for displaying PopUps, or making hidden Panels visible. Right now, I am using Events all over the place to bubble up to the appropriate parent component.
    Does it make sense to have properties in the Model that control the visual aspects of the Application?
    Any thoughts are greatly appreciated.
    Thank you.

    Absolutly, I think.
    We bind, for instance, the enabled property of many controls to {model.loginOK} for instance, or control visible/includeInLayout with {model.userRole=='admin'}.

  • Implementation of type-ahead functionality in Endeca JSP Ref application

    Hi all,
    I am trying to implement the type-ahead functionality in Endeca jsp reference application which Oracle is shipping with it's products. The type-ahead functionality is not present by default. Can anyone help me to implement the same thing or provide sample code/strategy to achieve the desired results ?
    Basically typeahead functionality is present in Endeca Information's quick start's search box (EID) but not it JSP reference application .
    Waiting for the replies...
    Regards,
    Hoque

    Type-ahead functionality can mean different things and be implemented in different ways. It is usually based on what behavior your user-space would benefit from.
    In the commerce space, one popular use-case is to return Category matches based on what a user has started typing. Within Endeca, this boils down to doing a dimension search and having the Category dimension enabled for dimension search. If a user starts typing "cam", the type-ahead would then recommend:
    Category: Cameras
    You can match on multiple dimensions though, so long as they are enabled for dimension search. For example, if a user starts typing "ca", the type-ahead could return:
    Category: Cameras
    Brand: Canon
    Furthermore, this behavior can be extended by enabling Compound Dimension Search. Compound Dimension Search is enabled via a flag on the dgidx process and on your ENEQuery. It provides the following behavior. If a user searches for "canon cam", it would suggest:
    Category: Cameras + Brand: Canon
    Clicking on the type-ahead would return the intersection of Category = Cameras and Brand = Canon, eliminating a click if the user is after Canon brand Cameras.
    With regards to implementation, it basically boils down to an AJAX call to a service/URL that responds with dimension search results. Then populate an empty &lt;div&gt; with links.
    Other scenarios involve returning Product/Record matches instead of Dimension matches.
    Edited by: gose on Sep 11, 2012 8:31 AM

  • After i changed the setting in application tab in options : open pdf doc by adobe by default, the "Ask" window still pop up every time. How to fix this ?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/913026]]</blockquote>
    after i changed the setting in application tab in options : open pdf doc by adobe by default, the "Ask" window still pop up every time. How to fix this ?

    How do I fix this problem ...javascript (cid) applications.

Maybe you are looking for