Including resource from the other application
Application "Common" contains headers, footers and resources that I want to include
in other apps. How should I formulate URL in include page directive to do that
App Common has structure:
Common
/header.html
/footer.html
and App Custom has an jsp page
/demo.jps
and demo.jsp looks like
<%@ include file="../Common/header.html" %>
... my content ...
<%@ include file="../Common/footer.html" %>
Is it possible to move outside of app (Servlet) context ?
Thanks,
tj
That is illegal. Include refers to a resource from the current application.
Instead, use a URL to the resource and suck in its contents and write them
to the response. You can create a simple tag with the resource url as the
parameter thta does just that. Suggestion: using caching liberally for
static resources.
Peace,
Cameron Purdy
Tangosol Inc.
<< Tangosol Server: How Weblogic applications are customized >>
<< Download now from http://www.tangosol.com/download.jsp >>
"tj" <[email protected]> wrote in message
news:[email protected]...
>
> Just to clarify... (WLS6.0 sp2, Win 2000)
> I want to include static resource from different application in my JSP
using page
> include directive. My question is how to specify relative URL to
accomplish that
> ? How to reffer to web server root ? "/" is application root, so if
resource is
> in the other app, "../otherapp/pathinotherapp/resource.htm" should work or
it
> should not, if not what is the best way to isolate common static files
(headers,
> footers ...) shared among all apps ?
> (btw I think this works in webSphere)
>
> Thanks
>
> "tj" <[email protected]> wrote:
> >
> >Application "Common" contains headers, footers and resources that I want
> >to include
> >in other apps. How should I formulate URL in include page directive to
> >do that
> >?
> >
> >App Common has structure:
> >
> > Common
> > /header.html
> > /footer.html
> >
> >and App Custom has an jsp page
> > /demo.jps
> >
> >
> >and demo.jsp looks like
> >
> ><%@ include file="../Common/header.html" %>
> >.... my content ...
> >
> ><%@ include file="../Common/footer.html" %>
> >
> >
> >Is it possible to move outside of app (Servlet) context ?
> >
> >Thanks,
> >tj
> >
> >
> >
>
Similar Messages
-
Why does Photoshop display colors differently from the other applications even in sRGB mode ?
Hello all !
Here is my problem :
Photoshop is set to use sRGB workspace (in edit/colors.../workspace/RVB).
If I understand correctly this is how all native windows applications work.
This means Photoshop and the other applications should display the same colors on a file with a sRGB profile.
Now this is the case until I calibrate my monitor.
When I do, Photoshop colors become different from the other applications (irfanview, explorer, browsers...).
The only way I found to let everything display the same colors is to set Photoshop to use Proofing/RVB Monitor.
What upsets me even more is that Photoshop colors look "better" to me (dark grays seem to dark to me in the other applications.)
I have read that this is because Photoshop takes the new profile into account and others applications do not. But I don't think this is relevant here because everything is in sRGB so the only profile is my monitor's and I think calibration is handled globally by windows : everything (including browsers, explorer, and Photoshop) changes color if I choose to apply the monitor's profile or not with windows color management tool ("use my parameters for this device").
Here is my system configuration :
- Photoshop CS4 (11.0.2)
- Windows 7 64 bits
- HP ZR2440W and DELL 2209WA (these are not wide gamut screens)
I have spent two days trying to figure the logics behind this and really am upset. Any help would be greatly appreciated. Don't hesitate to ask me if there is something that is unclear or some information I forgot to mention.
Thanks in advance,
YannickThat sounds like an invitation to continue to talk about the issue. Fair enough.
I'm not sure where you're getting "insecurity"... I am just trying to help you help others more effectively.
I invite you to re-read just the first sentence of what you wrote very carefully, putting yourself in the shoes of someone struggling with both the terminology and the concepts:
Photoshop (CMS) reads an embedded ICC profile and CONVERTS it to the custom monitor profile for a theoretical 'true color' display
Think about what "Photoshop (CMS)" might mean to a person who doesn't know the acronym might stand for "Color Management System" (which is I assume what you meant). Adobe themselves don't call it "CMS", they use the acronym "CMM" (Color Management Module). The term "CMS" is used in the computer industry for about a dozen different things.
While a color profile might have been embedded in an image file before it was opened by Photoshop, Photoshop works on documents. A profile is not "embedded" in a document, it is maintained by Photoshop with the document and describes the color values in the document. If Photoshop opens a document without an embedded profile, depending on settings and user choices it might assign a profile or it might even operate on the document without color-management. Oversimplification doesn't help people when they're trying to learn new things unless it's described as such, for example, "This is a bit of an oversimplification..." or "Generally speaking..."
Not every monitor profile is a "custom monitor profile". Quite often a standard profile (e.g., sRGB IEC61966-2.1) is associated with a monitor by the operating system as a default, or a factory profile is installed by a driver package or system update. Your use of the term "custom" is a bit ambiguous and could be read as implying the creation of a profile using a calibration and profiling device specific to the particular monitor.
Photoshop's color management code does not convert an embedded ICC profile at all (read carefully what you wrote). As I said, it transforms color values. That was the key error in your description that prompted me to comment.
If ever there is a time to pick words carefully, it's in a color-management discussion.
-Noel -
I keep getting a warning stating that the document could not be auto saved in pages. The file has been changed by another application. Then it says click save any way to keep your changes and save the changes made by the other application as a version, or click revert to keep the changes from the other application and save your changes to a version.
What in the heck does all that mean, and why are they trying to behave like a Windows product or a Microsoft office product. I just don't get it.
Why is another application changing my documents? It's like they've created a virus within their own programs. It's a pain in the neck and makes no sense.I am also having the issue of a warning saying "could not be auto-saved in Pages. The file has been changed in another application. I then hit "save anyway", the warning will go away for a time, sometimes minutes, sometimes hourr, but then the warming reapprears saying the same thing. This is not the case with all Pages documents but it is the case with many.
Working with a Retina Macbook Pro and current software
These are newly created documents -
My computer was hacked using a softbank pocket wifi, I had to install an earlier version of the disc provided for my mac reset my user password and I still need to recover my administrator password that was altered. I have lost all of my applications already existing on my mac including iPhoto, and all other applications. I am wondering how to get them back? I am in Japan and I have proof of purchase in my iTunes, but on my computer all the allplications are blocked. I have no idea what to do to get them back. It is very annoying.
Thank you for your help.
Erika K.Reinstall from the original source - the restore disks that came with the computer or from the App store if the computer did not come with disks
LN -
OID SSO Logout issue from the partner application
As per the below link I am trying the logout functionality from the partner application,
http://download.oracle.com/docs/cd/B14099_19/idmanage.1012/b14078/tpsso.htm#i1011555
The article talks about a logout url pattern, I am trying to execute the below from the partner application.
https://single_sign-on_host:single_sign-on_ssl_port/pls/orasso/orasso.wwsso_app_admin.ls_logout?p_done_url=done_url
The issue I got is OID server is not redirecting to the p_done_url, it just stays in the same OID logout page, Do I have to create any configuration entry to get the redirection working?
ThanksHi All,
Providing more information,
What I get is the OID logout screen with two return buttons on top and bottom of the page.
If I found is when I click any of those it goes to the p_done_url but What I want is
instead of stopping in the OID logout page, auto redirection to the p_done_url,
Can this be done.
Thanks -
I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from the Mail application, with an alert button that indicates unread messages
Try a search... I'm sure if you put forth a little effort you can find a solution that will work for you.
-
Hello,
I searched this site and google for this error terminology and come up dry. I support a user who has been for years using Acrobat 5 (yes, I know...) to read files in a client DB program, as well as other PDF files on their PC. In the last week or so, they have started gatting this error "Acrobat is being used by another application and cannot open PDF files until the other application is closed." any time they attempt to open a PDF file attached to an email (via Outlook).
It is my understanding that they cannot upgrade to a newer version of Acrobat because of limitations of their client software, but had not previously had any issues viewing PDF notes from the DB, and PDF attachments in their email.
I have tried uninstalling and re-installing, as well as tried using Adobe Reader 7 & 9 in conjunction with Acrobat to try to get around this issue, but have not been successful.
Any ideas?
Thanks,
JesseI don't have an answer to your technical problem. The product I assume is Acrobat that you are talking about (based on the post title), Adobe is the company name. This is a good place to ask questions on Acrobat if folks can figure out what you are talking about. They will ask for the product version number (like AA9.3.3), operating system, and other applications if appropriate. Also, just what you are doing that generates the message.
As for Adobe, you are not likely to get an answer from them here in the user forum. You will be lucky if you can get an answer if you can contact them and not be on hold for more than an hour (sorry, this is why a lot of folks end up in the forum).
So, to help others try to answer your question, what are the products and versions involved? What OS? What are you doing when the message comes up. -
First i know that when i make any changes to the class library project i need to rebuild the project then to remove the Capture.dll from the TestScreenshot project and then to add again the updated Capture.dll
The problem for example in this case i'm trying to use a public static variable i add in the DXHookD3D9.
In the DXHookD3D9 i added this public static variable:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using SlimDX.Direct3D9;
using EasyHook;
using System.Runtime.InteropServices;
using System.IO;
using System.Threading;
using System.Drawing;
using Capture.Interface;
using SharpDX.Direct3D9;
namespace Capture.Hook
internal class DXHookD3D9: BaseDXHook
public DXHookD3D9(CaptureInterface ssInterface)
: base(ssInterface)
LocalHook Direct3DDevice_EndSceneHook = null;
LocalHook Direct3DDevice_ResetHook = null;
LocalHook Direct3DDevice_PresentHook = null;
LocalHook Direct3DDeviceEx_PresentExHook = null;
object _lockRenderTarget = new object();
Surface _renderTarget;
public static decimal framesperhourtodisplay = 0;
protected override string HookName
get
return "DXHookD3D9";
List<IntPtr> id3dDeviceFunctionAddresses = new List<IntPtr>(
framesperhourtodisplay
The problem is i can't even get to the Capture.Hook namespace and not to the DXHookD3D9 from the TestScreenshot application window project.
This is a screenshot:
For example fro the FramesPerSecond class i can use it get to it from the windows forms application.
namespace Capture.Hook
/// <summary>
/// Used to determine the FPS
/// </summary>
public class FramesPerSecond
int _frames = 0;
int _lastTickCount = 0;
float _lastFrameRate = 0;
Since it's public i guess.
But if i will change the DXHookD3D9 class from internal to public:
public class DXHookD3D9: BaseDXHook
I will get error on the DXHookD3D9:
Error 1
Inconsistent accessibility: base class 'Capture.Hook.BaseDXHook' is less accessible than class 'Capture.Hook.DXHookD3D9'
And the BaseDXHook class:
namespace Capture.Hook
internal abstract class BaseDXHook: IDXHook
protected readonly ClientCaptureInterfaceEventProxy InterfaceEventProxy = new ClientCaptureInterfaceEventProxy();
public BaseDXHook(CaptureInterface ssInterface)
this.Interface = ssInterface;
this.Timer = new Stopwatch();
this.Timer.Start();
this.FPS = new FramesPerSecond();
Interface.ScreenshotRequested += InterfaceEventProxy.ScreenshotRequestedProxyHandler;
Interface.DisplayText += InterfaceEventProxy.DisplayTextProxyHandler;
InterfaceEventProxy.ScreenshotRequested += new ScreenshotRequestedEvent(InterfaceEventProxy_ScreenshotRequested);
InterfaceEventProxy.DisplayText += new DisplayTextEvent(InterfaceEventProxy_DisplayText);
~BaseDXHook()
Dispose(false);
How can i solve it so i can use the variable framesperhourtodisplay in the DXHookD3D9 class with the TestScreenshot windows forms application ?Hi,
I dont know if it will work here, since I dont know the complete structure, but the base call must be public, if the derived class is public, so the base class is at least as accessible as the derived class.
Try make the base class public. (And maybe the base-class IDXHook of the base also...)
Or use a different approach and make only the properties public that are needed to be public by adding an extra class...
A structure could look like:(you need to create a class thats public in your dll and expose a property, and set this property in the internal class...)
In the Accessing class (here Form1)
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void Form1_Load(object sender, EventArgs e)
C c = new C();
MessageBox.Show(B.F.ToString());
and in the class Lib:
internal class A
public A()
B.F = DateTime.Now.Millisecond;
public class B
public static int F { get; set; }
public class C
public C()
A a = new A();
(add a referenc to the class lib from the accessing project)
Regards,
Thorsten -
"No response from the backend application". Oracle DB
Hi everybody,
I have a problem with a connection to a Oracle DB. Here are the steps:
1. I created a system in my portal to call a Oracle DB with the SAP template com.sap.portal.systems.jdbc.jdbc_system
2. I filled the parameters and the conection test is ok.
3. I created an iView based on com.sap.portal.applications.enterprise.iviews.Database_JDBC_iView
4. This iView use the system I created before and is sending a simple query.
The result is the message:
"No response from the backend application"
I have been reading the page
http://help.sap.com/saphelp_nw04/helpdata/en/29/acd8403e37762ae10000000a155106/frameset.htm
in Help.sap and i supose that my case could be 1.2 because I have mapped an user (case 1.1) and my DB is up and connection is ok (case 1.3), but...what have i to recheck in my configuration to remedy the situation??
Thanks all.
Guillermo.Hi Ramesh,
Yes I am using the driver class but in the connection URL I wrote jdbc:sap:oracle://183.145.5.10:1527;sid=HEX
And here my question is, have I to put user and password of the administrator of the DB in this parameter? I dind't put because I mapped later in user management.
And the connection tests is successful.
Thanks for the awnser.
Guillermo. -
Why does the mouse cursor move to away from the currrent application without the mouse being moved
the mouse cursor moves away from the current application without the mouse having been moved - this started with the new version - re-installing Firefox makes the problem go away for a short period - re-installing is not a solution
== This happened ==
Every time Firefox opened
== a few days after installing 3.6.3Hello Jim.
It's probably one of three things:
#your mouse is getting old (this behavior is common in old optical mouses);
#you have software that is making your mouse cursor behave unexpectedly (I know of an option in Windows that will automatically move your mouse to windows buttons...);
#or you may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal? -
In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?
I create a new index on column2, (INDEX_N3)
and change SQL to
select 1 from table T1 where
T1.COLUMN_002 = '848K 36892'
This time INDEX_N3 will be used.
but change SQL to
select 1 from table T1 where
T1.COLUMN_002 = '848K 36892'
and T1.COLUMN_004 = '1000'
The explain plan will show full scan.
Why?
Thanks. -
How can I get my Aperture library back from the Photos application?
As stated above, How can I get my Aperture library back from the Photos application? I'm not a fan of Photos right now and haven't used iPhoto in years, so that wasn't a loss... I didn't realize when I gave Photo's access to my Aperture library, I was going to lose it...
I want to get it back, any suggestions?
Thanks again!
MacTeacherMNwhat means ..."Once you open the Aperture library back into Aperture..."? What do I need to "klick" in order to getting back my old Aperture Project structure....
-
Program to list all include programs from the Sap program list
My requirement is to display all include programs from the Sap program Table ( D010INC table and TADIR table), From
here i have to get all include programs.Can anyone give the program code for this requirementwell, it's your requirement and not ours, so why not try yourself first?
-
Is the way to retrieve the deleted pages from the database application
Hi,
I was just deleted the pages from my database application wizard. Now, i want to retrieve the deleted pages, can you help me to retrieve those pages.
Thankyou.Halloween can be a scary time -- especially if you Oops your APEX application. Of course you can't travel back in time but through the miracle of flashback, you may be able to get the APEX appl. back to where it was when. I tried these approaches and was successful with them.
*** This assumes flashback is running on the APEX schema(?). Your abiliy to go back a given number of minutes (or hours?) will depend on whether the saved values still exist in the database. ***
A) If you modify a page and want to go back to what you had, say, about 30 minutes ago.
1) Under the Utilities button (on that page), select History.
2) Determine how far back in time you want to go by examining the list of editing changes displayed.
3) Do a page export of that page (also under Utilities) and fill in “As of __ minutes ago”.
4) If you don’t want to lose what you've got on the “damaged” page, copy it to another page number for now.
5) Import the exported page file.
6) Check if you got back what you wanted.
7) If not, try an earlier (or later) time and have another go at it.
B) If you deleted the wrong page in the application!
1) Assuming the last thing you did was this deletion, export the entire application filling in “As of __ minutes ago”.
2) Just to be careful, import the file to a different unused application number. Don't overwrite someone else's application.
3) Copy the deleted page from the new application back to where you need it.
4) Clean up by deleting the unneeded application.
C) If, "Doh," you deleted the wrong application!!!!
1) Are you able to retire? If no, then proceed!
2) Create a minimal application (with a single page) with the same number as the one deleted.
3) Export the application filling in “As of __ minutes ago” with an appropriate number of minutes.
4) The export file should contain the code you need to restore.
5) You can inspect it with an editor.
Look about line 25 for" Pages: <number>".
For specific pages look for "page_000nn".
5) Import the file to the same appl. number. You should get everything back!
YMMV: Your mileage may vary!
I'll take my leave with the words of that immortal song:
"Yes. Oops, Oops, Oopsie! Good Bye. But Oops, Oops, Oopsie. Don't Cry."
(With apologies to Ted Fio Rito, 1900-1971.)
Howard -
why can't i sign in in the apple store using my apple id? but from the itunes application in my computer which i downloaded, i can use my apple id to sign in...and while opening my apple store in my phone it appears blank..i don't know what happened?
It's a straightforward port-forwarding issue.
You need to forward ports to the internal ip address of your apple tv as follows:
TCP 123
TCP 3689
UDP 5353
TCP 80
TCP 4343
TCP 53
This may also solve other problems you may have with homesharing...
Maybe you are looking for
-
hii all, CAN SOMEBODY PROVIDE ME TEST DATA FOR PURCHAGE ORDER FOR IDES. PLEASE PROVIDE ME STEPS. AS THROUGH ME21N I GIVES VENDOR NO 100 PUR ORG 0001 PRC GROUP 000 COMPANY CODE 0001 MATERIAL 100S PLANT 0001 FOR THT I HAVE CREATED VENDOR 100 THROUGH MK
-
Dear OTN Members, I am working for a government organization, where they have multiple applications which are commonly using ORACLE as the database, and each and every application has different front end tool. The problem we face is : In Operations A
-
I have 2 different spry tabbed panels on 1 site. How can I customize each tabbed panel?
-
How to avoid long user interface response time in long measurements ?
Hi I tried to find more information regarding techniques how to avoid long user interface response times in case of extremely long measurement times with an external instrument communicating over GPIB, so I post this hoping to get some hint or a link
-
I would like to know if its at all possible for an external application to somehow get information on all instances of the flash player such as what video (flv files) they are playing, the playback state and the position in the video.