Content in a Web Module

Hi,
I am having a very irritating problem. I want to use a filter to transform some content however I do not want the content to have to be inside the .war archive.
If I place the content in any other location the filter cannot be set to operate on it.
If I place the content in the .war archive then every time a designer changes the content I have to rebuild and re-deploy the web-module.
Any idea how I can either have content (which is not in a web-module) be accessed through a filter , or how I can have content appear in a web-module from some other location?
Please help, this is a real show-stopper for our project. Thanks.

I don't think filters are really the way to go about this, rather, create a servlet that handles requests something along these lines:
void service(HTTPServletRequest request, HTTPServletResponse response) {
  // get document root, base directory for all the xml files
  String docRoot = request.getServletConfig().getParameter("docroot");
  // get the document name
  String path = request.getPathInfo();
  // do some checking on path to make sure it doesn't contain
  // '..' or anything like that, throw an exception if it does.
  // create a java.io.File object representing the file:
  File file = new File(docRoot, path);
  if (/*browser is IE6*/) {
    // open the file (using FileInputStream) and copy it to
    // request.getOutputStream()
  else {
    // pass the file through an xslt transformation that outputs
    // to request.getOutputStream()
}If this servlet is bound to a context called "context1", and the servlet is bound to "xml", requests for eg. /context1/xml/dira/dirb/doc1.xml will result in request.getPathInfo() returning "/dira/dirb/doc1.xml", given that the servlet-mapping element in web.xml is specified correctly (use a wild card: /xml/*).
And be warned, I just typed this in without trying to compile it, so it probably contains bugs!

Similar Messages

  • Integrate a Web Module's JSP into an iView in NetWeaver CE 7.2

    Hi everybody,
    I am not sure whether this is the right spot to post this, but I will give it a try anyway.
    We want to develop an Enterprise Application containing a Web Module. Basically it is a Java EE application that has a business tier consisting of a couple of beans and business objects and a web tier consisting of JSPs and servlets. What I want to do is to integrate it into the portal content via an iView. We only use a web module in order to integrate servlets to handle AJAX requests made via javascript and because you can only make a servlet-mapping within the web.xml (as far as I know).
    Now I have created both the Enterprise Application Project as well as a Dynamic Web Project in the NWDS 7.2 according to the SAP manual. My servlet class as well as the beans are contained within the Dynamic Web Project's Java source folder. In the Web Content folder are the JSPs, css and javascript files. I deployed that application successfully via the NWDS and I can see under the application console of the NetWeaver Administrator that the application is deployed and alledgedly started, yet I cannot see it in the PCD. Therefore I cannot directly include it into a page and by that make it available to portal users. Also, I cannot access the application via the url http://<host>:<port>/<url as defined in application.xml>.
    How can this be done?
    Normally, I would do this by creating an iView from Template in the PCD's folder containing my designated page and role and adding it to the page as a deltalink. Yet when I try to do this, the portal offers me a long list of iView types, none of which seem to match my desire of matching a Web Module or Enterprise Application. Is that possible at all or what do I have to do to achieve this? I had no problem to integrate my application as a Portal Application, which is also deployed as an .ear, but that lacks the possibility to use servlets - at least from my understanding, since I cannot integrate a servlet-mapping into the portalapp.xml and there is no web.xml in a Portal Application.
    I have been trying this for two days now and didn't succeed. Is it possible at all, and if so, how? Any help is highly appreciated!
    Thanks in advance,
    Serg

    Hello,
    You can use the j2ee telnet console and using it you can deploy the files
    you can follow the example given in the note
    743630 - How to deploy libraries on J2EE Engine 6.20
    after ADD DEPLOY
    DEPLOY <filename>.SCA
    I hope this should work
    Regards,
    Chandru

  • Web module not working

    Hello everyone,
    after some time working with Lr it wanted to try the web module. But on my main computer it wont load, if I try to switch, a message box appears that an error occured. In the console I find this entry:
    2007-08-06 23:55:28.468 Adobe Lightroom[1070] CFLog (21): Error loading /Applications/Adobe Lightroom.app/Contents/Frameworks/AgFTPClient.agtoolkit/Contents/MacOS/AgFTPClient: error code 4, error number 0 (Library not loaded: @executable_path/libCurl.dylib
    Referenced from: /Applications/Adobe Lightroom.app/Contents/Frameworks/AgFTPClient.agtoolkit/Contents/MacOS/AgFTPClient
    Reason: image not found)
    On another computer it works. Do I have to reinstall the OS (already reinstalled Lr) or could anyone point me to the image it can not find on this machine?
    Thanks,
    Markus

    When you called the web service from the test dialogue, did it work? If you get any error, please paste it here.
    Also, please take a look at the example in
    this doc which also uses a writer. Note that if you have a writer writing the results to a destination, you typically don't need a web service output. See the below images, 1 with Web service output, another with a Writer. The writer needs to
    be configured.

  • Cant specify the Java Build Path in the Web Module Project

    hi,
    I have a problem while specify  the project dependencies in the Web Module Project.While opening the properties of the web module project i cant choose the Java Build Path.The only two options i have are design root path and web service consistency check builder.Does anybody know why its like that?do i hav to reinstall the SAP developer studio?
    With regards,
    Jaisamma Varghese

    Hi Jaisamma,
    I just tested this, and for me it works as expected, within all explorer/navigator views.
    Before reinstalling NWDS, check if the project itself may have some problem. Just create a new clean web module project and right-click on the project and try to access the BuildPath properties now. If it works, try to set up your project content again within this new project. Otherwise reinstalling NWDS may help.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Importing WAR file into Web Module Project

    Hi,
    I am brand new to SAP and i'm trying to help out with a proof of concept for our SAP rollout.  I am trying to import a J2EE application that currently runs on WebSphere 5.1 and was developed using WSAD.  I found a blog on the SAP site and it gave a simple run down of how to Migrate from WebSphere application server to SAP Application Server.
    Here is the link: /people/community.user/blog/2007/03/06/migrating-application-from-websphere-application-server-to-sap-was
    The steps seem simple enough yet I am having issues trying to import my WAR file into my Web Module Project in Netweaver.
    Step 4 gives the following instructions: Create a WEB Module Project and import the WAR file.
    Unfortunately, they do not give more detail besides Import the WAR file.  When I try importing my WAR file, it adds the WAR file in my Web Content folder.  I was expecting it to extract all my java classes and my jsp files but this is not the case.  To do this, I right clicked on my Web Module Project while in the J2EE Explorer view and selected import file and selected my WAR.  I'm assuming this is not correct.
    Any help would be appreciated.
    Thanks,
    Phil

    Hi Phil!
    You don't need to create previously a web module to import the war then.
    I'm assuming you're using NWDS (Netweaver Developer Studio). Try this. In NWDS: File -> Import... ->
    then, select "WAR file". After that, you need to inform the path of you WAR file and automatically it will fill in the name of your project, that you can change if you desire. After that, click in Finish and it's all.

  • WEB module export image size

    Team, I am
    exporting just two images from the Web Mo
    dule...using the basis HTML
    gallery template.
    The original image size is 4972K (4.9Mb)
    After I select export in the web module, the resulting image is around
    200K in the content\images\large directory.
    I have the "Large Images" Quality slider at 100
    Is is the case...that no matter what...the image will be manipulated or reduced in size by the web module engine?
    I would like the original image to be exported out to the content\images\large directory.
    Is this possible?
    I was just on phone with support...close to two hours...disconnected twice...but the phone support folks were not aware of what I am doing.
    I am using LR 3.3 in Windows...if that matters.
    Thank You,
    -Rich O
    [email protected]

    Rich,
    RichO2010 wrote:
    Beat, I have not made any adjustments.  Not sure where "Image Pages" are.  But, under the Web module, I have tried several "Large Images" quality settings under the "Output Settings"
    You find this setting under the Appearance section:
    I am getting the sense that no matter what...the LR Webgallery engine wants to "optimize" the images for web output.
    I just want the people that visit the site, the ability to download the original image...unaltered.
    I have not found a way to go beyond 2071 pixels for image width in Web Gallery.
    From what i am reading so far, I think I should just let the galley engine do its work. Then come back and upload the original images under the content\images\large (or whatever the output destination might be).
    That might be a way to achieve what you want. There might be side-effects regarding borders, watermarks etc.
    Beat

  • Web Module: Semi Odd Request

    I work as a web developer for a photographer and during a recent conversation, we were discussing the Web module in Lightroom (1.1). The studio's site was created in Flash and the photographer is using the Web module to upload a Flash based gallery to the server. This all work beautifully. Now here's the catchy part...
    When designing the studio's site, I wrote a neat little chunk of code that hides any jpeg content on the screen if certain keys were hit...prevents print screening for PC users (sadly no such luck on Mac's with Grab installed) which is about 90% of our market base. For us it works.
    The real questions though... Probably Adobe only questions but...
    1. Is it possible to simply load the flash document that the Web module creates and not use the HTML document at all?
    2. Will this in anyway affect whether or not the images appear after the swf is loaded by loading the flash file externally?
    I simply want to know because then I could encapsulate these "proofing/preview" sites into the rest of the script and give the photographer what he wants in terms of a pseudo-security.

    This is a very important sticking point. Have you figured a way to customize the text (fonts, style, etc.) on the web modules, or even just getting the code and converting those areas?
    Thanks,
    Kathryn Jacobi

  • Share files between web modules

    As far as I understand, a web module corresponds to a single web page, possibly within a web application that contains multiple web modules (pages). So if my web application has two pages, they would each be a web module. For example,
    http://www.myapp.com (home page = root module /)
    http://www.myapp.com/contact (contact page = contact module /contact)
    I put both of these modules in an ear file to create a web application. However, the root module contains some .js javascript files and a css file that I want to use in all of the modules of my application. Also, I would like to share some tag libraries between the modules (pages) in my applcation, each of which has its own web.xml file which defines the uri and location of the tags.
    Is this possible, or do I need to put all of the pages in my site into one web module?

    A web module is a web application. The entire bookstore example is one web module.
    A Web module represents a Web application. A Web module is created by assembling servlets, JavaServer Pages (JSP) files, and static content such as Hypertext Markup Language (HTML) pages into a single deployable unit. Web modules are stored in Web archive (WAR) files, which are standard Java archive files.

  • How do I use the Web module to upload video to my website?

    I'm using the Lightroom HTML gallery to upload my photos, fine and dandy, very happy with it. I also have some videos trimmed in Lightroom that I want incorporated into the gallery. This doesn't seem to be happening, instead I just get thumbnails. What/how do I incorporate my video clips into my web gallery? I moved over from jAlbum so I could have a simple one-tool workflow, so I'm really hoping that this is possible.

    You can combine stills and video for output to h.264 (mp4 file) for example to upload to Youtube or Vimeo.
    FTP upload will be subject to the limitations of your host. The web module within Lightroom creates all resources to link to the file index.html
    The forthcoming LR6 is anticipated to have HTML5 galleries.

  • I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    You don't need a server, you just need a web hosting package such as the ones from GoDaddy or many other hosts. You then send the web gallery directly from LR to your web space.
    As you're asking such basic questions, it might be best if you read articles like this and see if a friend or colleague can get you started.

  • I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer w

    I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer working and although upload completes, the URL takes you to a "Forbidden - do not have permission to read this file" page. Lightroom is changing the permissions of each file to 000 instead of 644 for index files and 755 for all others. How can I change the permissions settings in Lightroom?

    I am having issues with my web module on Lightroom 4 (Mac OS 10.9.5). "an unknown error occurred" while trying to upload to my FTP (no changes in my FTP). Bandaid fix was to export to local folder and upload via Filezilla. However, now that is no longer working and although upload completes, the URL takes you to a "Forbidden - do not have permission to read this file" page. Lightroom is changing the permissions of each file to 000 instead of 644 for index files and 755 for all others. How can I change the permissions settings in Lightroom?

  • How to create the Table of Content (TOC) in WEB

    Dear Sir
    Please help me
    How to create the Table of content (TOC) in Web Intelligence Report,
    Thanks
    Gnanasekarn.K
    Edited by: Gnanasekaran Kandasamy on Nov 20, 2008 11:12 AM

    Hi Gnanasekarn,
    You can create TOC in webi using Open Document, You can create link on the TOC and you can connect that link to open new report .
    With the help of open document you can open the specific portion of report.
    So you can achive your requirement using URL reporting or Open Document.
    Regards,
    Chaitanya Deshpande

  • How to display file contents on a web page

    On unix platform I have created a class that can read the contents of a file and display them to the standard output. But now i want to display these file contents on a web page through jsp. On JSP code I have imported this class and want to assign a record from a file and write it to the screen using html. I think the class needs to be modified in order to return the string record read from a file so that im able to access it from a jsp and assign it to a variable the I can display it on the screen. Can someone help me with these code?

    Actually, you mean Linksys.  BIG difference there.
    Linksys Business Series was accumulated into Cisco Small Business, since it was purpose built for small business, not residential/consumer grade.
    The new PVC2300 actually are Cisco branded on the case.
    The collateral you seek is protected by the business unit that supplies it, since it was placed on a portal that only Cisco registered partners can access.
    As I wrote, I already checked with the BU and they told me thats where it lives and not to hand it out.  I cannot override that. 
    I am not sure there are any secrets in there, but I dont make the rules, sorry.
    Do you want to be a Cisco Partner?   Sign up and gain access to everything you need to sell Cisco successfully to end customers?  If you tell me your geography (city/state/zip, I will have an ICAM call you and help recruit you.....
    Steve D
    Systems Engineer
    U.S. Partner Sales team
    RTP, N.C.

  • How can you develop photo galleries with multiple pages using the web module?

    Going through the web module I can see there are many options for developing a web page with a single collection of photos.  How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?

    This thread will give you several ideas.
    Re: How do you embed a gallery into an existing website?

  • Error in running a URL for Web Module Project with a JSP

    Hi Experts,
    I created a Web Module Project with name "WebModuleProject".
    I created a jsp file naming "test_jsp" inside it
    Then i created a Web Archive for it which resulted in a WebModuleProject.war file.
    I then created an Enterprise Module Project with name "EnterpriseWebModule"
    Then i linked the "WebModuleProject" whith this project.
    I created an EAR for this project.
    Deployed that EAR on to hte J2EE Engine.
    Now on applying the following url:
    <a href="http://server:port/WebModuleProject/test_jsp.jsp">http://server:port/WebModuleProject/test_jsp.jsp</a>
    i m getting the following error
    404 Not Found
    The requested resource /WebModuleProject/test_jsp.jsp is not available
    Details: File [WebModuleProject/test_jsp.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
    Please experts help me to dig out this problem
    Can anybody suggest me why i m getting this error? And how to resolve it???????

    Hi Saurabh,
    In SMICM transaction code we have to maintain the parameters in order to run the web report in the specified format.
    i am listing some parameters in the below, Please have a look and see whether it can help u out .....
    Services
    icm/server_port_0     = PROT=HTTP,PORT=8000
    icm/server_port_1     = PROT=SMTP,PORT=0
    HTTP settings
    icm/HTTP/max_request_size_KB   = 102400
    icm/HTTP/j2ee_0                = PREFIX=/,HOST=localhost,CONN=0-500,PORT=50000
    icm/HTTP/server_cache_0        = PREFIX=/, CACHEDIR=/usr/sap/BSD/DVEBMGS00/dat
       a/cache
    Misc
    icm/host_name_full             = cauvery.com
    icm/cancel_strategy            = cancel requests without session (stateless)
    rdisp/plugin_auto_logout       = 1800
    is/HTTP/virt_host_0            = :;
    is/SMTP/virt_host_0            = :;
    Once after maintain the parameters go and check in the SICF transaction code SAPBW---BEx + right click + test service. And check whether it is opening in the required URL path.
    Regards,
    Vara Prasad.

Maybe you are looking for

  • Macbook vs. Dell

    Interesting article pitting the MB against the dell latitude regarding which machine runs hotter. MB vs Dell Basically it seems the MB runs just about as hot as the dell does. I think one exhibit shows it 10f hotter then the latitude which isn't that

  • Can not login to console from N1

    Hi Guys: I installed N1 in an x4200. In the same local network, there is a T2000 which can be discovered by N1. When clicking "open serial console", I can only login console in read-only mode. You know, when I connect the T2000 ALOM from a terminal,

  • TBB1 T.Code Error

    Dear All, while Posting post flows in T.Code TBB1 i am getting an error Balancing field "Business Area" in line item 001 not filled. I had assigned the business area in step Allocate Additional Account Assignments to Account Assignmen Use. what else

  • MRP & MPS PROBLEM

    Dear , In my company we using MPS & MRP TWo planning mode. Also we use two type of planning .one SO base & other one is on PIR. I working with Process IND. In our company only for packing Mat. we use SO,meansfor FG we use MPS SFG we use MPS. ROH we u

  • GT80 Titan SLI: Graphics performance

    It's not without reason we make a lot of noise about the GT80 Titan SLI – we're immensely proud of all its unique features, not to mention the fact that it's our most high-performing system, and probably the fastest gaming notebook out there. We can