URL parsing

Hello Friends,
I have couple of JSP pages. The URL for each of the Jsp page shown in browser looks somelike as follows.
http://order.xyz.com/?p_mycode=2Mon_Fr&mnid=in_ss_ppo_hino_soos
What I want ti achieve is as follows:--
In my Jsp page, I should be able to grab above URL and then be able to parse the URL for parameternames and parametervalues and put it in Hashmap (cause i want to send these bunch of parameters to next pages VIA session)
So for example above URL after parsing will give me a Hashmap containing URL parameters as follows :--
p_mycode ------- 2Mon_Fr
mnid ---------- in_ss_ppo_hino_soos
Can any one help me here. have done similar thing before ?
a>How to grab the URL in the Jsp page ?
b>How to parse URL to get name  ---   value parameters in the Haspmap (number of URL parameters are dynamically changing. Meaning one Jsp page may have 2 parameters other page may have 7 parameters)
c>How to pass the haspmap in session ?
Code snippet will help !
thanks,
pp

When you say "in my JSP page" does that mean you want the JSP code in that page to do something when it's executed? Or did you have in mind the output of the JSP which is in the browser? Or did you want something else to look in the source code of the JSP?
And when you said "grab" a URL, exactly where is that URL coming from? (Follow-up questions to that depend on the answers to the previous questions.)
Edit: my best guess is that the URL in question is the one that requests the JSP. In that case you haven't read any tutorials or other educational material about JSP and you don't understand that you're just asking for the request parameters, which your server has already put into a Map for you. But surely that can't be right.

Similar Messages

  • URL PARSE HTML IN ORACLE;;; PLEASE HELP ME;;;

    Hi Everybody,
    I am beginner in Oracle ;;; somebody can help me please There 're two days and I can't resolve the problem :
    I must recover from a giving URL values to insert them in an Oracle table.
    The form of the URL is www.url1.com or www.url2.com and the data in my HTML page is like :
    Salary: 123.45
    Name: DAVID
    I want to ask if exist in Oracle a means of recovering data starting from the URL to insert it in a table. The structure of my table is TAB(URL, SALARY, NAME)
    For example in our case, I must insert: (url1, 123,45, DAVID)
    Thanks a lot,
    Best Regards
    Message was edited by:
    Wissem

    Thank you Yoann,
    But I need to parse the contents of my HTML page and insert them in my Oracle table.
    tye contents of my HTML page is always like that :
    Salary: DATA
    Name: DATA
    and I have to get the url as a parameter and to parse the HTML page and then
    insert it in a table. The structure of my table is TAB(URL, SALARY, NAME)
    For example in our case, I must insert: (url1, 123,45, DAVID)
    Thanks a lot,
    Best Regards
    Message was edited by:
    Wissem

  • Null Pointer and URL parsing

    I am trying to write a Bookmark reader to go through bookmarks on a windows machine and let you know if your booksmarks are old and not valid.
    Anyway, I am getting a nullpointer and having all sorts of problems. My error comes at line 56. (See below, I will point it out)
    import java.io.*;
    import java.net.HttpURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.Vector;
    * Created by IntelliJ IDEA.
    * User: mlubrano
    * Date: Jan 29, 2003
    * Time: 3:01:20 PM
    * To change this template use Options | File Templates.
    public class LinkMain {
    static String desktopDir = System.getProperty("user.home");
    static String osName = System.getProperty("os.name");
    static String FSEP = System.getProperty("file.separator");
    static String workingDir = new File(System.getProperty("user.dir")).getParent().replace('\\', '/');
    private Vector bookmarkList = new Vector();
    private Vector bookmarkURLs = new Vector();
    public static void main(String[] args) {
    String rootDir = desktopDir + FSEP + "Favorites" + FSEP;
    LinkMain lm = new LinkMain(rootDir);
    //lm.recurseDir(rootDir);
    LinkMain(String root) {
    //LinkHTTPConnect();
    //ReadInBookmarks();
    recurseDir(root);
    ReadInBookmarks();
    //read in boookmarks
    public void ReadInBookmarks() {
    BufferedReader br = null;
    for (int i = 0; i < bookmarkList.size(); i++) {
    try {
    br = new BufferedReader(new FileReader((File)bookmarkList.get(i)));
    while(br.ready()) {
    String line = new String("");
    System.err.println(br.readLine());
    line = br.readLine();
    //Problem is somewhere in here!!!!!!!!!!!!!!!!!!!!!!!!!!!
    if (line.startsWith("URL=")) {
    LinkHTTPConnect(line.substring(4).trim());
    //System.out.println(line.substring(4).trim());
    } catch (FileNotFoundException e) {
    e.printStackTrace(); //To change body of catch statement use Options | File Templates.
    catch (IOException ioe) {
    ioe.printStackTrace();
    public void recurseDir(String startDir) {
    File[] children = new File(startDir).listFiles();
    for (int i = 0; i < children.length; i++) {
    if (children.isDirectory())
    recurseDir(children[i].getAbsolutePath());
    bookmarkList.add(new File(children[i].getAbsolutePath()));
    //System.err.println(children[i].getAbsolutePath());
    //Connect and get results
    public void LinkHTTPConnect(String s) {
    try {
    URL url = new URL(s);
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("HEAD");
    conn.connect();
    // GET seems to do a better job of locating it
    if (conn.getResponseCode() != 200) {
    conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("GET");
    conn.connect();
    if (conn.getResponseCode() == 200) {
    System.out.println("ok");
    //System.out.println(desktopDir);
    } else
    System.out.println("not found");
    } catch (MalformedURLException e) {
    System.out.println(e);
    } catch (IOException e) {
    System.out.println(e);
    //Print Results in some format

    Oops....
    Well it is not looping right... It seems to be looping the right # of times, but not moving on to the next file...
    The idea is that is looks through your favorites folder and check to make sure that url is valid.. if you run this..
    import java.io.*;
    import java.net.HttpURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.Vector;
    * Created by IntelliJ IDEA.
    * User: mlubrano
    * Date: Jan 29, 2003
    * Time: 3:01:20 PM
    * To change this template use Options | File Templates.
    public class LinkMain {
      //C:\Documents and Settings\mlubrano
      static String desktopDir = System.getProperty("user.home");
      static String osName = System.getProperty("os.name");
      static String FSEP = System.getProperty("file.separator");
      static String workingDir = new File(System.getProperty("user.dir")).getParent().replace('\\', '/');
      private Vector bookmarkList = new Vector();
      private Vector bookmarkURLs = new Vector();
      public static void main(String[] args) {
        String rootDir = desktopDir + FSEP + "Favorites" + FSEP;
        LinkMain lm = new LinkMain(rootDir);
        //lm.recurseDir(rootDir);
      LinkMain(String root) {
        //LinkHTTPConnect();
        //ReadInBookmarks();
        recurseDir(root);
        ReadInBookmarks();
      //read in boookmarks
      public void ReadInBookmarks() {
        BufferedReader br = null;
        for (int i = 0; i < bookmarkList.size(); i++) {
          try {
            br = new BufferedReader(new FileReader((File) bookmarkList.get(i)));
            while (br.ready()) {
              String line = new String("");
              System.err.println(br.readLine());
              line = br.readLine();
              while (line != null) {
                if (line.startsWith("URL=") && line != null) {
                  LinkHTTPConnect(line.substring(4).trim());
                  System.out.println(line.substring(4).trim());
          } catch (FileNotFoundException e) {
            e.printStackTrace();  //To change body of catch statement use Options | File Templates.
          } catch (IOException ioe) {
            ioe.printStackTrace();
      public void recurseDir(String startDir) {
        File[] children = new File(startDir).listFiles();
        for (int i = 0; i < children.length; i++) {
          if (children.isDirectory())
    recurseDir(children[i].getAbsolutePath());
    bookmarkList.add(new File(children[i].getAbsolutePath()));
    //System.err.println(children[i].getAbsolutePath());
    //Connect and get results
    public void LinkHTTPConnect(String s) {
    try {
    URL url = new URL(s);
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("HEAD");
    conn.connect();
    // GET seems to do a better job of locating it
    if (conn.getResponseCode() != 200) {
    conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("GET");
    conn.connect();
    if (conn.getResponseCode() == 200) {
    System.out.println("ok");
    //System.out.println(desktopDir);
    } else
    System.out.println("not found");
    } catch (MalformedURLException e) {
    System.out.println(e);
    } catch (IOException e) {
    System.out.println(e);
    //Print Results in some format
    It loops through the first file it finds x number of times (x being the total number of files you have)
    Thx,
    Usul

  • Xml url parser

    Hi everyone, I am able to get data from a xml file, but when I update the file the information does not update on the movie, I have to restart the movie to get it updated, any idieas how to get the information updated while the movie is running?

    Tack a random parameter onto the XML request. For example, if you are using getNetText to download the XML, try something like:
    tNetID = getNetText("http://www.server.com/getXML.php?cacheBustingParameter=" & the milliseconds)
    Your server will comfortably ignore the parameter passed, but it's enough to fool Director into not using a cached version and downloading the file again.

  • NullPointerException at org.apache.crimson.parser.Parser2.parseInternal

    I've tried to use JavaTM API for XML Processing (JAXP), particulary default SAX parser,
    which is embeded into JAXP.
    I downloaded jaxp-1_1.zip file from http://java.sun.com/xml/download.html, extacted it
    and included crimson.jar, jaxp.jar and xalan.jar to java CLASSPATH.
    After that I'd tried to parse XML document
    with following code
         // prepare SAX parser
    SAXParserFactory factory = SAXParserFactory.newInstance();
    DefaultHandler handler = new XMLHandler();
    try {
    // Create a JAXP SAXParser
    SAXParser saxParser = factory.newSAXParser();
    // url
    File file = new File( fileName );
    String url = file.toURL().toString();
    System.out.println( "URL: " + url );
    // parse
    saxParser.parse( url, handler );
    } catch (Exception ex) {
    ex.printStackTrace();
    throw ex;
    and obtained the message below
    java.lang.NullPointerException
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:523)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:232)
         at com.darout.bot.parser.PObjectsBuilder.parse(PObjectsBuilder.java:54)
         at TestSAXParser.main(TestSAXParser.java:22)
    Could you help me?

    I've found an error. It was in my handler implementation.
    But is it possible to trace a handler exception correctly?

  • Url variable assistance

    i am using the tutorial file "scriptassist_complete.fla" to
    perform a custom task. This file comes with Flash.
    i want to embed the swf file in several different html files
    in a dingle directory.
    Then, based on the URL, jump to a label (home, about, product
    or contact) and stop. So when you load any page that contains the
    swf the swf jumps to the corresponding label without having to
    click a button in the swf.
    The problem is i don't know how to capture the url parse it
    to get just the file name of the html file and use that to jump to
    gotoAndStop at a label.
    That's it.

    Seems to me you would be much better off just adding a
    flashvar to your html and your swf. Anytime your swf loads it will
    repopulate the flashvar and then you would have a string with just
    the name of the frame.
    Granted it would add a few lines of custom code to your html
    instead of your swf, but that seems simpler then trying to parse
    the URL if you can even capture the URL

  • Unique URLs in a databse

    I am using PHP / MySQL. I want to make a database of
    websites, where the website URLs are unique. Let's say '
    http://www.adobe.com' exists in
    the database...
    If someone tries to insert a record with the URL '
    http://adobe.com', then script should
    find '
    http://www.adobe.com' (with the
    www in front) in the database and detect that it is the same site,
    and prohibit the insertion of the record.
    Also, if someone tries to insert '
    http://www.adobe.com/' (with that
    added / at the end), it should just simply remove the end slash
    before inserting it or looking for any records with a similar URL.
    Lastly, the '
    http://' should be added to the beginning of a
    URL automatically if it isn't already provided.
    How do I do these three things? Also, is there anything else
    I should design the script to look for to make sure the URLs are
    unique and duplicates are not being inserted?
    Edit:
    One other thing, '
    http://www.adobe.com/some_page.html'
    should be seen as the same thing as '
    http://www.adobe.com', and would
    prohibited from insertion. I'd actually like it if specific pages
    could just be knocked off automatically, leaving just the domain.
    Although, URL entries like '
    http://some_host.com/user123'
    and '
    http://user123.some_host.com'
    should still work.

    AngryCloud wrote:
    > I am using PHP / MySQL. I want to make a database of
    websites, where the
    > website URLs are unique.
    How you design your script depends a great deal on who will
    be inputting
    the material. If this is going to be on an open site, with
    anyone free
    to input material, you will need to do a lot of checking and
    sanitizing
    of the user input before submitting it to your database. If
    it's going
    to be in a protected area where only trusted users are given
    permission
    to insert new entries, you can be less paranoid.
    PHP has a useful function called parse_url() that extracts
    the various
    elements of a URL:
    http://www.php.net/manual/en/function.parse-url.php
    You could use it like this:
    // check that input field isn't blank
    if (isset($_POST['url']) && !empty($_POST['url])) {
    // remove magic quotes
    $url = get_magic_quotes_gpc() ? stripslashes($_POST['url]) :
    $_POST['url];
    // parse the URL
    $parts = parse_url($url);
    // if it looks OK, go ahead
    if (isset($parts['scheme']) && $parts['scheme'] ==
    'http' &&
    isset($parts['host']) {
    $host = $parts['host'];
    // get the domain name with and without www.
    if (strpos($host, 'www.') === 0) {
    $www_host = $host;
    $no_www = substr($host, 4);
    else {
    $www_host = 'www.'.$host;
    $no_www = $host;
    // query the database to see if URL already registered
    $sql = "SELECT url FROM myTable
    WHERE url = '
    http://{$www_host}'
    OR url = '
    http://{$no_www}'";
    $result = mysql_query($sql);
    if (mysql_num_rows($result)) {
    $error = 'That URL is already registered';
    else {
    $error = 'URL must begin with
    http://';
    // if no errors detected, insert into database
    if (!$error) {
    $site = '
    http://'.mysql_real_escape_string($host);
    $sql = "INSERT INTO myTable SET url = '$site'";
    mysql_query($sql);
    This isn't the only way of doing it, and you should probably
    add more
    checks, but the inline comments should show you how the
    script works.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Specify list URL target

    APEX 4.2.2
    When a list contains a bunch of links to pages in different applications and is rendered using a Vertical template, is there a way to specificy that clicking on the link open the target in a new browser tab, similar to the effect achieved by specifying the link's target attribute?
    Thanks

    internal pagesYes, that does appear to be the case. But I am not sure I understand how "internal page" is defined in this context. If the href attribute does not specify the protocol/host i.e. not just a path /foo/bar, I can understand how the browser might treat the link differently and ignore the target attribute and always open in a new tab. But in the example page, all links are fully specicified of the form http://host/path. So the browser seems to be taking the href attribute and the currently loaded document's URL, parsing and comparing the host name in the 2 URLs and therefore determining that the google/amazon/yahoo links are "external" while the apex.oracle.com link is internal?! Somehow, this seems far-fetched/unlikely to me. I think there is something else going on there but I can't locate anything relevant on Google on this topic. Maybe I should head on over to one of the stackoverflow.com sites to see if anyone there has any insights.
    Any other ideas, anyone else? Thanks

  • Parse XML document ,create table according to tags &  load data to  table

    Hi All!
    I have one of the most common problem, one faces when dealing with xml stuff and oracle.I get xml documents, with each file having different tags.I want to write a pl/sql procedure such that, the xml file is parsed, a table is created with the tag names becoming the column names and all the nodes' data get inserted into the table as rows.I am using oracle 10g.
    I read a thread at the following url:
    Parse XML and load into table
    But did not get much of it.
    Can anybody please tell me how to accomplish this.
    Thanking in advance.
    Regards,
    Deepika.

    Why do people have such an aversion to the XML DB forum for XML questions...
    See FAQ for XML DB forum here: XML DB FAQ
    Explains all about getting XML into tables in the database.

  • HELP: Reading URL arguments into variable

    I have a url, for example:
    www.MyWebsite.com/Flash.html?Pic1=1.jpg&Pic2=2.jpg&Pic3=3.jpg
    (Flash.html has a Flash swf file in it.)
    In my SWF I want to dynamically show (in 3 movie clips, mc1,
    mc2 & mc3) the 3 pictures from the 3 URL arguments.
    To clarify some requirements: I can only use a URL (not a
    text file, XML, etc...), a HTML file and SWF (no scripts). Action
    Script is ok. Cant use code to create EMBED params dynamically
    etc... This also has to work in MX.
    I've researched loadvariables, etc.. but this seems to work
    with a text file. Dunno how to get it to work with the actual URL
    (parse it, etc..) or if there's a better way...
    Any ideas? Thanks.

    ..

  • ACE URL Hash

    Hi All
    I had an issue with ACE 2 year before where..sending all youtube traffic to same cache while using URL hash. I had below response from Cisco TAC..
    Any1 knows if the new image resolved this...?
    Regarding your question about the used predictor and "splitting" the requests going to youtube to be handled by two caches, please note that the URL hashing will hash the domain name up to the "?" only, so we unfortunately cannot distinguish the caches to which to send the request when using this predictor method. The "?" is the default URL parsing delimiter.
    Therefore, what we could try is changing the predictor method to another type, for example hash destination|source address or round robin to verify if the loads gets distributed among the caches more evenly.
    There, we can see that you can specify a begin- and end-pattern to look
    for a specific pattern within an URL, too, however, as already stated,
    the hashing has no effect after the "?".
    Regards
    Sameer Shah

    The ACE module and ACE 4710 appliance were enhanced so that the url hashing predictor now includes the url query seen after the '?' delimiter.
    ACE module: A2(2.1) and later (BugID CSCsq99736)
    ACE 4710: A3(2.2) and later (BugID CSCsr30433)

  • Not a valid URL: Unexpected character found - Installation of SLD

    During the installation of SAP Solution Manager 4.0 Support Release 3 I am installing a local SLD (this is a test environment). When at the "Configure System Landscape Directory" phase of the installation I get the following error, java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18].
    Any help would be appreciated.
    ConfigMainExt state200
    TYPE=A<BR>STATE=<BR>INFO_SHORT=java.net.MalformedURLException: java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18]
         at com.tssap.dtr.client.lib.protocol.impl.URLScanner.next_token(URLScanner.java:587)
         at com.tssap.dtr.client.lib.protocol.URL.parse(URL.java:518)
         at com.tssap.dtr.client.lib.protocol.URL.<init>(URL.java:63)
         at com.sap.ctc.util.SLDConfig.importSldContent(SLDConfig.java:765)
         at com.sap.ctc.util.SLDConfig.performFunction(SLDConfig.java:154)
         at com.sap.ctc.util.ConfigServlet.doGet(ConfigServlet.java:74)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    //   => Importing Data : D:/usr/sap/A12/SYS/global/sld/model/CR_Content.zip URL=http://usbfg046dev-:50000 USER=J2EE_ADMIN ...
    ERROR: Not a valid URL: Unexpected character found ['-' at position 18]
    <BR>CONFIGURATION=

    During the installation of SAP Solution Manager 4.0 Support Release 3 I am installing a local SLD (this is a test environment). When at the "Configure System Landscape Directory" phase of the installation I get the following error, java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18].
    Any help would be appreciated.
    ConfigMainExt state200
    TYPE=A<BR>STATE=<BR>INFO_SHORT=java.net.MalformedURLException: java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18]
         at com.tssap.dtr.client.lib.protocol.impl.URLScanner.next_token(URLScanner.java:587)
         at com.tssap.dtr.client.lib.protocol.URL.parse(URL.java:518)
         at com.tssap.dtr.client.lib.protocol.URL.<init>(URL.java:63)
         at com.sap.ctc.util.SLDConfig.importSldContent(SLDConfig.java:765)
         at com.sap.ctc.util.SLDConfig.performFunction(SLDConfig.java:154)
         at com.sap.ctc.util.ConfigServlet.doGet(ConfigServlet.java:74)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    //   => Importing Data : D:/usr/sap/A12/SYS/global/sld/model/CR_Content.zip URL=http://usbfg046dev-:50000 USER=J2EE_ADMIN ...
    ERROR: Not a valid URL: Unexpected character found ['-' at position 18]
    <BR>CONFIGURATION=

  • Problems with pluses for spaces in the url

    Hi,
    Before we updated our OAS with the daylight savings time patches, we used to be able to access our portal pages that had spaces in their names using the + sign, e.g.:
    http://example.com/portal/page/portal/mypagegrp/Policy+and+Objectives
    This is standard url escaping for spaces.
    Now, it only accepts %20 as space, e.g.
    http://example.com/portal/page/portal/mypagegrp/Policy%20and%20Objectives
    If I use the plus url, it complains that it can't find the content.
    The problem arose because we have a portlet that generates links to some of our content pages, and it uses the standard java URLEncoder.encode method to encode the urls. I'd prefer not to have to hack my own url encoder to work around a OAS url parser bug.
    Any ideas?
    Thanks,
    -m

    Yes this certainly a bug, as using the latest versions of Adobe's CS4 and the latest OS  really should solve problems, not create them.  We're not asking for legacy support here!
    After reading several related posts, it looks like running DW CS4 as Administrator seems to fix the problem here. This obviously won't help the people that don't have the option to do that though.
    For those interested, right click your Dreamweaver CS4 icon, select Properties, click the Compatibility tab, and check the box beside "Run this program as an Administrator".

  • Streaming CSV via Apache/ Tomcat  with Mod Proxy

    I have Apache hooked up to Tomcat using mod_proxy and attempts to stream a CSV file from a Struts action via tomcat fails.
    Using the tomcat port localhost:8080/testappp the streaming works fine but for some reason it does not work via the apache url
    Build is Red Hat Enterprise Linux AS release 4 on Apache 2.0.52-25 and Tomcat 5.5
    Below are pastes of the apache conf file and tomcat server.xml
    Thanks
    # httpd.conf
    # Based upon the NCSA server configuration files originally by Rob McCool.
    # This is the main Apache server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
    # the directives.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # The configuration directives are grouped into three basic sections:
    # 1. Directives that control the operation of the Apache server process as a
    # whole (the 'global environment').
    # 2. Directives that define the parameters of the 'main' or 'default' server,
    # which responds to requests that aren't handled by a virtual host.
    # These directives also provide default values for the settings
    # of all virtual hosts.
    # 3. Settings for virtual hosts, which allow Web requests to be sent to
    # different IP addresses or hostnames and have them handled by the
    # same Apache server process.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do not begin
    # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    # with ServerRoot set to "/etc/httpd" will be interpreted by the
    # server as "/etc/httpd/logs/foo.log".
    ### Section 1: Global Environment
    # The directives in this section affect the overall operation of Apache,
    # such as the number of concurrent requests it can handle or where it
    # can find its configuration files.
    # Don't give away too much information about all the subcomponents
    # we are running. Comment out this line if you don't mind remote sites
    # finding out what major optional modules you are running
    ServerTokens OS
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # NOTE! If you intend to place this on an NFS (or otherwise network)
    # mounted filesystem then please read the LockFile documentation
    # (available at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);
    # you will save yourself a lot of trouble.
    # Do NOT add a slash at the end of the directory path.
    ServerRoot "/etc/httpd"
    # PidFile: The file in which the server should record its process
    # identification number when it starts.
    PidFile run/httpd.pid
    # Timeout: The number of seconds before receives and sends time out.
    Timeout 120
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    KeepAlive Off
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    # We recommend you leave this number high, for maximum performance.
    MaxKeepAliveRequests 100
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    KeepAliveTimeout 15
    ## Server-Pool Size Regulation (MPM specific)
    # prefork MPM
    # StartServers: number of server processes to start
    # MinSpareServers: minimum number of server processes which are kept spare
    # MaxSpareServers: maximum number of server processes which are kept spare
    # ServerLimit: maximum value for MaxClients for the lifetime of the server
    # MaxClients: maximum number of server processes allowed to start
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule prefork.c>
    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    ServerLimit 256
    MaxClients 256
    MaxRequestsPerChild 4000
    </IfModule>
    # worker MPM
    # StartServers: initial number of server processes to start
    # MaxClients: maximum number of simultaneous client connections
    # MinSpareThreads: minimum number of worker threads which are kept spare
    # MaxSpareThreads: maximum number of worker threads which are kept spare
    # ThreadsPerChild: constant number of worker threads in each server process
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule worker.c>
    StartServers 2
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    </IfModule>
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, in addition to the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
    #Listen 12.34.56.78:80
    Listen 80
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available before they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule access_module modules/mod_access.so
    LoadModule auth_module modules/mod_auth.so
    LoadModule auth_anon_module modules/mod_auth_anon.so
    LoadModule auth_dbm_module modules/mod_auth_dbm.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule auth_ldap_module modules/mod_auth_ldap.so
    LoadModule include_module modules/mod_include.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imap_module modules/mod_imap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule dav_svn_module /usr/lib/httpd/modules/mod_dav_svn.so
    LoadModule authz_svn_module /usr/lib/httpd/modules/mod_authz_svn.so
    # Load config files from the config directory "/etc/httpd/conf.d".
    Include conf.d/*.conf
    # ExtendedStatus controls whether Apache will generate "full" status
    # information (ExtendedStatus On) or just basic information (ExtendedStatus
    # Off) when the "server-status" handler is called. The default is Off.
    #ExtendedStatus On
    ### Section 2: 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
    # . On HPUX you may not be able to use shared memory as nobody, and the
    # suggested workaround is to create a user www and use that user.
    # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
    # when the value of (unsigned)Group is above 60000;
    # don't use Group #-1 on these systems!
    User apache
    Group apache
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. [email protected]
    ServerAdmin [Email]root@localhost[Email]
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If this is not set to valid DNS name for your host, server-generated
    # redirections will not work. See also the UseCanonicalName directive.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    # You will have to access it by its address anyway, and this will make
    # redirections work in a sensible way.
    ServerName ext02:80
    # UseCanonicalName: Determines how Apache constructs self-referencing
    # URLs and the SERVER_NAME and SERVER_PORT variables.
    # When set "Off", Apache will use the Hostname and Port supplied
    # by the client. When set "On", Apache will use the value of the
    # ServerName directive.
    UseCanonicalName Off
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/var/www/html"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features.
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/var/www/html">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named explicitly --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs-2.0/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
    </Directory>
    # UserDir: The name of the directory that is appended onto a user's home
    # directory if a ~user request is received.
    # The path to the end user account 'public_html' directory must be
    # accessible to the webserver userid. This usually means that ~userid
    # must have permissions of 711, ~userid/public_html must have permissions
    # of 755, and documents contained therein must be world-readable.
    # Otherwise, the client will only receive a "403 Forbidden" message.
    # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
    <IfModule mod_userdir.c>
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    UserDir disable
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disable" line above, and uncomment
    # the following line instead:
    #UserDir public_html
    </IfModule>
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    #<Directory /home/*/public_html>
    # AllowOverride FileInfo AuthConfig Limit
    # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    # <Limit GET POST OPTIONS>
    # Order allow,deny
    # Allow from all
    # </Limit>
    # <LimitExcept GET POST OPTIONS>
    # Order deny,allow
    # Deny from all
    # </LimitExcept>
    #</Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    # The index.html.var file (a type-map) is used to deliver content-
    # negotiated documents. The MultiViews Option can be used for the
    # same purpose, but it is much slower.
    DirectoryIndex index.php index.html index.html.var
    # AccessFileName: The name of the file to look for in each directory
    # for additional configuration directives. See also the AllowOverride
    # directive.
    AccessFileName .htaccess
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    </Files>
    # TypesConfig describes where the mime.types file (or equivalent) is
    # to be found.
    TypesConfig /etc/mime.types
    # DefaultType is the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value. If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    <IfModule mod_mime_magic.c>
    # MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
    </IfModule>
    # HostnameLookups: Log the names of clients or just their IP addresses
    # e.g., www.apache.org (on) or 204.62.129.132 (off).
    # The default is off because it'd be overall better for the net if people
    # had to knowingly turn this feature on, since enabling it means that
    # each client request will result in AT LEAST one lookup request to the
    # nameserver.
    HostnameLookups Off
    # EnableMMAP: Control whether memory-mapping is used to deliver
    # files (assuming that the underlying OS supports it).
    # The default is on; turn this off if you serve from NFS-mounted
    # filesystems. On some systems, turning it off (regardless of
    # filesystem) can improve performance; for details, please see
    # http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
    #EnableMMAP off
    # EnableSendfile: Control whether the sendfile kernel support is
    # used to deliver files (assuming that the OS supports it).
    # The default is on; turn this off if you serve from NFS-mounted
    # filesystems. Please see
    # http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
    #EnableSendfile off
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you do define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog logs/error_log
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you do
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and not in this file.
    #CustomLog logs/access_log common
    # If you would like to have agent and referer logfiles, uncomment the
    # following directives.
    #CustomLog logs/referer_log referer
    #CustomLog logs/agent_log agent
    # For a single logfile with access, agent, and referer information
    # (Combined Logfile Format), use the following directive:
    CustomLog logs/access_log combined
    # Optionally add a line containing the server version and virtual host
    # name to server-generated pages (internal error documents, FTP directory
    # listings, mod_status and mod_info output etc., but not CGI generated
    # documents or custom error documents).
    # Set to "EMail" to also include a mailto: link to the ServerAdmin.
    # Set to one of: On | Off | EMail
    ServerSignature On
    # Aliases: Add here as many aliases as you need (with no limit). The format is
    # Alias fakename realname
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL. So "/icons" isn't aliased in this
    # example, only "/icons/". If the fakename is slash-terminated, then the
    # realname must also be slash terminated, and if the fakename omits the
    # trailing slash, the realname must also omit it.
    # We include the /icons/ alias for FancyIndexed directory listings. If you
    # do not use FancyIndexing, you may comment this out.
    Alias /icons/ "/var/www/icons/"
    Alias /admin "/home/boss4/web/geoland/admin/"
    Alias /bboard "/home/boss4/web/phpBB3/"
    <Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    <Directory "/home/boss4/web/geoland/admin">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    <Directory "/home/boss4/web/phpBB3">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    # WebDAV module configuration section.
    <IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
    </IfModule>
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the realname directory are treated as applications and
    # run by the server when requested rather than as documents sent to the client.
    # The same rules about trailing "/" apply to ScriptAlias directives as to
    # Alias.
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
    # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    # Redirect allows you to tell clients about documents which used to exist in
    # your server's namespace, but do not anymore. This allows you to tell the
    # clients where to look for the relocated document.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    # Directives controlling the display of server-generated directory listings.
    # IndexOptions: Controls the appearance of server-generated directory
    # listings.
    IndexOptions FancyIndexing VersionSort NameWidth=*
    # AddIcon* directives tell the server which icon to show for different
    # files or filename extensions. These are only displayed for
    # FancyIndexed directories.
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    # DefaultIcon is which icon to show for files which do not have an icon
    # explicitly set.
    DefaultIcon /icons/unknown.gif
    # AddDescription allows you to place a short description after a file in
    # server-generated indexes. These are only displayed for FancyIndexed
    # directories.
    # Format: AddDescription "description" filename
    #AddDescription "GZIP compressed document" .gz
    #AddDescription "tar archive" .tar
    #AddDescription "GZIP compressed tar archive" .tgz
    # ReadmeName is the name of the README file the server will look for by
    # default, and append to directory listings.
    # HeaderName is the name of a file which should be prepended to
    # directory indexes.
    ReadmeName README.html
    HeaderName HEADER.html
    # IndexIgnore is a set of filenames which directory indexing should ignore
    # and not include in the listing. Shell-style wildcarding is permitted.
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    # DefaultLanguage and AddLanguage allows you to specify the language of
    # a document. You can then use content negotiation to give a browser a
    # file in a language the user can understand.
    # Specify a default language. This means that all data
    # going out without a specific language tag (see below) will
    # be marked with this one. You probably do NOT want to set
    # this unless you are sure it is correct for all cases.
    # * It is generally better to not mark a page as
    # * being a certain language than marking it with the wrong
    # * language!
    # DefaultLanguage nl
    # Note 1: The suffix does not have to be the same as the language
    # keyword --- those with documents in Polish (whose net-standard
    # language code is pl) may wish to use "AddLanguage pl .po" to
    # avoid the ambiguity with the common suffix for perl scripts.
    # Note 2: The example entries below illustrate that in some cases
    # the two character 'Language' abbreviation is not identical to
    # the two character 'Country' code for its country,
    # E.g. 'Danmark/dk' versus 'Danish/da'.
    # Note 3: In the case of 'ltz' we violate the RFC by using a three char
    # specifier. There is 'work in progress' to fix this and get
    # the reference data for rfc1766 cleaned up.
    # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
    # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
    # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
    # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
    # Norwegian (no) - Polish (pl) - Portugese (pt)
    # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
    # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
    AddLanguage ca .ca
    AddLanguage cs .cz .cs
    AddLanguage da .dk
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage en .en
    AddLanguage eo .eo
    AddLanguage es .es
    AddLanguage et .et
    AddLanguage fr .fr
    AddLanguage he .he
    AddLanguage hr .hr
    AddLanguage it .it
    AddLanguage ja .ja
    AddLanguage ko .ko
    AddLanguage ltz .ltz
    AddLanguage nl .nl
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddLanguage pt .pt
    AddLanguage pt-BR .pt-br
    AddLanguage ru .ru
    AddLanguage sv .sv
    AddLanguage zh-CN .zh-cn
    AddLanguage zh-TW .zh-tw
    # LanguagePriority allows you to give precedence to some languages
    # in case of a tie during content negotiation.
    # Just list the languages in decreasing order of preference. We have
    # more or less alphabetized them here. You probably want to change this.
    LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
    # ForceLanguagePriority allows you to serve a result page rather than
    # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
    # [in case no accepted languages matched the available variants]
    ForceLanguagePriority Prefer Fallback
    # Specify a default charset for all pages sent out. This is
    # always a good idea and opens the door for future internationalisation
    # of your web site, should you ever want it. Specifying it as
    # a default does little harm; as the standard dictates that a page
    # is in iso-8859-1 (latin1) unless specified otherwise i.e. you
    # are merely stating the obvious. There are also some security
    # reasons in browsers, related to javascript and URL parsing
    # which encourage you to always set a default char set.
    AddDefaultCharset UTF-8
    # Commonly used filename extensions to character sets. You probably
    # want to avoid clashes with the language extensions, unless you
    # are good at carefully testing your setup after each change.
    # See http://www.iana.org/assignments/character-sets for the
    # official list of charset names and their respective RFCs.
    AddCharset ISO-8859-1 .iso8859-1 .latin1
    AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
    AddCharset ISO-8859-3 .iso8859-3 .latin3
    AddCharset ISO-8859-4 .iso8859-4 .latin4
    AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
    AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
    AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
    AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
    AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
    AddCharset ISO-2022-JP .iso2022-jp .jis
    AddCharset ISO-2022-KR .iso2022-kr .kis
    AddCharset ISO-2022-CN .iso2022-cn .cis
    AddCharset Big5 .Big5 .big5
    # For russian, more than one charset is used (depends on client, mostly):
    AddCharset WINDOWS-1251 .cp-1251 .win-1251
    AddCharset CP866 .cp866
    AddCharset KOI8-r .koi8-r .koi8-ru
    AddCharset KOI8-ru .koi8-uk .ua
    AddCharset ISO-10646-UCS-2 .ucs2
    AddCharset ISO-10646-UCS-4 .ucs4
    AddCharset UTF-8 .utf8
    # The set below does not map to a specific (iso) standard
    # but works on a fairly wide range of browsers. Note that
    # capitalization actually matters (it should not, but it
    # does for some browsers).
    # See http://www.iana.org/assignments/character-sets
    # for a list of sorts. But browsers support few.
    AddCharset GB2312 .gb2312 .gb
    AddCharset utf-7 .utf7
    AddCharset utf-8 .utf8
    AddCharset big5 .big5 .b5
    AddCharset EUC-TW .euc-tw
    AddCharset EUC-JP .euc-jp
    AddCharset EUC-KR .euc-kr
    AddCharset shift_jis .sjis
    # AddType allows you to add to or override the MIME configuration
    # file mime.types for specific file types.
    #AddType application/x-tar .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    # Despite the name similarity, the following Add* directives have nothing
    # to do with the FancyIndexing customization directives above.
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #AddHandler cgi-script .cgi
    # For files that include their own HTTP headers:
    #AddHandler send-as-is asis
    # For server-parsed imagemap files:
    AddHandler imap-file map
    # For type maps (negotiated resources):
    # (This is enabled by default to allow the Apache "It Worked" page
    # to be distributed in multiple languages.)
    AddHandler type-map var
    # Filters allow you to process content before it is sent to the client.
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    # Action lets you define media types that will execute a script whenever
    # a matching file is called. This eliminates the need for repeated URL
    # pathnames for oft-used CGI file processors.
    # Format: Action media/type /cgi-script/location
    # Format: Action handler-name /cgi-script/location
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    # Putting this all together, we can internationalize error responses.
    # We use Alias to redirect any /error/HTTP_<error>.html.var response to
    # our collection of by-error message multi-language collections. We use
    # includes to substitute the appropriate text.
    # You can modify the messages' appearance without changing any of the
    # default HTTP_<error>.html.var files by adding the line:
    # Alias /error/include/ "/your/include/path/"

    Please note: I AM USING:
    JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
    And that's what's supposed to fix this problem in the first place, right??

  • Emailing a link to a file on an SMB server

    How do you create a link to a file on an SMB server, to send to other people (e.g. in email)?
    In a large corporation with mixed Mac/Windows network we use Samba to allow Mac OS X 10.6 to access the file servers.
    This works fine for basic operations such as browsing the servers, or copying files, etc. However, it isn't clear how to create a link to a file on a server, such that it can be emailed to people.
    Creating a link to a folder works ok, via this syntax:
        smb://servername/SomeFolder/AnotherFolder/
    When the email recipient clicks on the link (which appears by default as blue underlined), OS X automatically mounts the server as a local volume, and Finder  opens a window so that they can see the folder contents.
    But when trying to create a link to a particular file, via this syntax:
        smb://servername/SomeFolder/AnotherFolder/FileToShare.mp4
    It doesn't work. When the recipient clicks on the link, Finder appears to mount an empty fictitious volume called SomeFolder/AnotherFolder/FileToShare.mp4, containing no files. It is as if the URL parsing support for Samba links only supports referencing directories rather than individual files.
    By contrast, on Windows sharing a file can be done via this syntax:
         \\servername\SomeFolder\AnotherFolder\FileToShare.mp4
    And clicking on the link would automatically open the file (e.g. in whatever application is associated to play the video, edit the document, etc).
    Is there any way to create a clickable link to a file (not folder) on an SMB server?
    Matthew

    Thank you for trying to help.
    However, that utility does not solve the problem as far as I can tell. Regardless of whether the link text is typed in manually, or is 'snagged' via some utility, it still doesn't work in the case I was mentioning. All options in PathSnagger require that the drive is already mounted, as far as I can tell. And once it is mounted, PathSnagger generates the following strings for various options:
         Snag Path Windows:          \Volumes\servername\SomeFolder\AnotherFolder\FileToShare.mp4
         Snag Path Unix:               /Volumes/servername/SomeFolder/AnotherFolder/FileToShare.mp4
         Snag Path HFS:          servername:SomeFolder:AnotherFolder:FileToShare.mp4
         Snag Path File:          file://localhost/Volumes/servername/SomeFolder/AnotherFolder/FileToShare.mp4
    Note that none of these retain the original server location and protocol (smb://servername) because the volume is now mounted. As such, if emailed to another recipient, in general they do not work.
    Perhaps my original question was not clear. Is there any way to create a clickable link to a file (not a folder) on an SMB server, so that the link can be emailed to other people, and email recipient clicks on the click, the file is opened? (And server volumes mounted automatically as necessary)
    On Windows it can be done via a link such as:
         \\servername\SomeFolder\AnotherFolder\FileToShare.txt
    On Mac, the corresponding support for Samba URLs seems incomplete. A link such as:
         smb://servername/SomeFolder/AnotherFolder/FileToShare.txt
    does not appear to work even on the sender's computer, and even if the server is already mounted.
    The expected behaviour is that when a user (e.g. email recipient) clicks on the link, it should mount the server (if necessary) and open the file (in the example above, FileToShare.txt). Unfortunately, this does not seem to happen.
    Matthew

Maybe you are looking for

  • Price Comparision not for RFQ

    Hi, My client requirement is to compare the price with following pricing elements before creating the PO we are not creating RFQ's here ,when we enter below values for each vendor, it should dispay the report as it shows in ME49 Basic Value Less disc

  • Ipod touch with exchange (can't get it to work)

    I've tried several things to get this to work but I keep getting "Password Incorrect! for xxxxxxx.com account". I've re-entered it a dozen times I know its right any suggestions?

  • Change ZFS root dataset name for root file system

    Hi all A quick one. I accepted the default ZFS root dataset name for the root file system during Solaris 10 installation. Can I change it to another name afterward without reinstalling the OS? For example, zfs rename rpool/ROOT/s10s_u6wos_07b rpool/R

  • Got the ICS 4.0.4 update OTA on NEO V!!

    This Upgrade seems to be mainly concentrated on performance.... Dailer delay reduced, Apps response increased, UI smoother, good reception on wifi.. And also Xperia S music is working without root access.... There may be some of other issues rectifie

  • Can't Figure Out How the Briblocks Widget

    Hey guys. I have a really simple really kind of silly question for you. Does anyone know how to get the blocks from the briblocks widget to multiply in number? Or does it just stay singular for you to look at? Thanks!