Parsing the URL
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
Please don't crosspost.
[http://forums.sun.com/thread.jspa?threadID=5354949]
Similar Messages
-
hi all!
this is reated to the agent in ICWC interacting with the customer .Agent/System marks the transaction status to complete, This triggers a action profile to send survey request to the customer
Customer receives the survey request.
Customer choses to take survey and clicks on the URL
1) PBO is triggered.
Parse the URL components give above name value pairs/parameters.
now my ques is how to parse the URL components?
waitin for answers
sachinYou need to get the data from the event handler.
Here is a working example that gets some xml data via a url:
Note that any one who then wants the data must listen for the
appParms event
dispatched in the complete handler.
In this example the caller (my main flex application) invokes
the load parms.
The even handler when invoked proceeds with initialization
using the parms loaded.
Remember that Flex is asynchronous so your try/catch will not
work
and you really don't know when the response will come back to
the event handler. You will find that in genearl linear style
programming will not work in flex since actionscript just trundles
along and does not wait.
doLoadRequest(appUrl:String):void
var request:URLRequest = new URLRequest(appUrl);
var variables:URLLoader = new URLLoader();
variables.dataFormat = URLLoaderDataFormat.TEXT;
// completeHandler get invoked.
variables.addEventListener(Event.COMPLETE, completeHandler);
variables.addEventListener(IOErrorEvent.IO_ERROR,errorHandler);
variables.load(request);
private function completeHandler(event:Event):void
if(event.currentTarget.data == null)
ExceptionManager.getInstance().getHandlerResponse("default","The
Application Parms Handler is empty");
return;
parms = new XML(event.currentTarget.data);
logAPH.info("Inside completeHandler(event:Event) :"+parms);
dispatchEvent(new SimpleEvent("appParms","1"));
} -
Parse the URL components !
hi all !
Is there any function module which can parse the survey URL components so that i can use it in PBO for some functionalities.
regards
sachinHave you tried: HTTP_PARSE_URL?
-
Parsing the URL of all images from Google Images html file
Hello all,
I am trying to pull all the image URL's from a html file. I have used URLConnection class to copy the follwing link
http://images.google.com/images?q=tiger&gbv=2&svnum=10&hl=en&start=21&sa=N&ndsp=21
into a html file in my local drive. Now this file has the URL's of the images that have been displayed by google images (searched for: tiger). Now I need to fetch up those image URL's.
any ideas???Thank you for the reply.
I am beginner. Can you please eloborate the explanation or do u have some code examples.
thank you very much -
Parse the URL column to get data after 5th "/"
Hi All,
I have a url column that i need to parse to get the data after 5th Slash. can anyone help me here.
Table : URLData
url
http://www.abc.com/OurJourneys/Ourlife/the-Great-Explorers/dp
http://www.abc.com/OurJourneys/Ourlife/Times-new-time/OurJourneys.aspx year=2015®ion=Antaica&type=Sl
http://www.abc.com
I result should be below data
the-Great-Explorers
Times-new-time
Any help would be much appreciatedThe code you gave me works fine but it always gets me second last position.
http://www.abc.com/OurJourneys/Ourlife/the-Great-Explorers/dp
http://www.abc.com/OurJourneys/Ourlife/Times-new-time/OurJourneys.aspx
year=2015®ion=Antaica&type
http://www.abc.com
what if i want to get 3rd last position.
http://www.abc.com/OurJourneys/Ourlife/the-Great-Explorers/dp
http://www.abc.com/OurJourneys/Ourlife/Times-new-time/OurJourneys.aspx
year=2015®ion=Antaica&type
http://www.abc.com
Can you help me to get code for that. -
How to manage Locale info in the URL path, but not the query string
We are building an application using Struts 1.1 and Tiles, on Oracle Application Server 10.1.3.3...
I know this is a strange question... but we have a requirement to represent the locale info in the URL string using one of the following options:
option 1: /eng/page.do?id=2 for english.../fra/page.do?id=2
option 2: /page-eng.do?id=2 for english.... and /page-fra.do?id=2 for french
We need to represent the 3 letter ISO lang code either in the directory structure, or suffix the page name (in our case, the struts action name)... we cannot replicate this using a parameter in the query string. I know this is odd, but that is what we are told to implement.
Is there any robust way of implementing either option in Struts 1.1, JSP, JSTL etc...?
Currently, we are looking at using a servlet filter to intercept the HTTP requests, parse the URL string, and extract the ISO lang value, and set locale and forward on the request.
This poses a few problems... adding additional action mappings (page-eng... page-fra... page) to our struts-xml.config file to handle lang permuations... but the biggest issue is all the embedded html:link action values throughout our code...
Because all our public facing URLs must comply with the rule, we need to change the html:link action to point to a different action, based on locale.
Very inefficent, and I'm sure not industry standard best practice... we are using Tiles, and resource bundles for all our labels etc... but fall short in meeting this rule with regards to URLs and locale.
Any advice or tips etc.. is greatly appreciated.The filter option sounds like a good solution. So it can receive the urls and parse them appropriately.
You just need to take it one step further.
Additional actionmappings in your struts-config should not be necessary.
Filter:
- analyses the url and sets the appropriate locale
- adjusts the url such that the next level of the chain does not have to know anything about the locale being encoded in the url string.
Thus your struts classes and mappings can remain unchanged
/eng/page.do or /fra/page.do once through the filter should just look like /page.do to struts.
That should get rid of half of your headache.
Next the issue of generating urls.
There are two approaches I can see here
1 - use the filter approach again, this time with some post processing. Gather the generated HTML in a buffer, and do a find/replace on any urls generated, to put the locale encoding into them.
2 - Customise struts to produce urls in this format. This would involve the html:link tag, and the html:form tag at the least (maybe others?). Get the source code for struts, and grab the html:link tag code. Extend that class to generate urls as you want them to be generated. I think you would need to extend the class org.apache.struts.taglib.html.LinkTag and override the protected method calculateURL. You would then have to edit/modify the struts-html tld to point the link tag at your classes rather than the standard ones.
Option 1 is architecturally good because it gives you a well defined layer/border between having the locale encoded in the url, and not having it there. However it involves doing a find/replace on every html going out. This would catch all urls, whether generated by html:link tag or not.
Option 2 requires customising struts for your own requirements, which may be a bit daunting, but has the advantage of generating the urls correctly without the extra overhead involved with option 1. Of course you would have to ensure that ALL urls are generated with the html:link tag.
On reflection, I think option 1 is preferable, as both easier and quicker to implement, and doing a better separation in the architecture.
Cheers,
evnafets -
Hi,
How to parse the URL and find out the specified string? I am using the following URL:
http://localhost/livelink/livelink.exe?func=ll&objId=28277&objAction=browse&sort=name
I need to get objid=28277. I tried using StringTokenizer class. But I am only getting objid.
Here is my code:
StringTokenizer st = new StringTokenizer("objId");
while (st.hasMoreTokens()) {
System.out.println(st.nextToken());
Please let me know.
ThanksHave you tried the URL class.
It does this sort of thing. -
Parse a webpage and return all the URLs mms://***.wmv
Hello,
I would like to create a small script to parse http://jt.france2.fr/20h/ in order to extract the latest News program available:
i.e.:
mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/cappuccino/production/publication/France_2/Autre/2009/S23/40692_HD_20h_20090602.wmv
etc.
I am not sure how to easily to do that (perl - python - bash/awk - or ???)
Thanks in advance for your help!
LudoIt's actually straightforward, but I had to struggle a bit, because the url you gave is wrong. The actual player page can be found at http://jt.france2.fr/player/20h/index-fr.php - this is embedded in an iframe on the front page.
Now, to get the url from this player page with bash and wget, do
$ wget "http://jt.france2.fr/player/20h/index-fr.php" -O - 2>/dev/null | grep -o -E 'mms://.*\.wmv'
mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/cappuccino/production/publication/France_2/Autre/2009/S23/40692_HD_20h_20090602.wmv -
Wanboot Startup-Error: The URL could not be parsed
Hi
My wanboot is based on a x86 Server and a SPARC Client.
I'm actually trying to make my wanboot work, but there's one problem I can't solve. Everything works fine including the execution of the begin script, after this step i get the following error:
Wed Oct 28 10:56:49 wanboot info: WAN boot messages->192.186.1.24:80
ERROR: Field 2 - The URL could not be parsed+
Solaris installation program exited.
Has anyone of you an idea what causes this problem? In the Apache access log i get the following entry:
+192.186.1.25 - - [28/Oct/2009:10:57:22 +0100] "GET /cgi-bin/bootlog-cgi?%3Ctime%3E+swanb01+ident:+%5BID+384975+user.panic%5D+Field+2+-+The+URL+could+not+be+parsed HTTP/1.1" 200 32+
any help would be apreciated
Edited by: Stephanie.Kyburz on Oct 28, 2009 3:33 AMOk but in this case seems to me longer than before (when updates were loaded directly from iTunes) it seems to me that every time is re-installing all as it computes available space om disk...
-
How to specify delimiter when parsing the parameter list in URL
Here is a sample URL used to call the servlet:
http://myhost.com/servlet?param1=test1¶m2=test2¶m3=test3In the doGet method of my servlet, I understand I can use the getParameter method to retrieve the various parameter values:
String p_param1 = request.getParameter("param1");
String p_param2 = request.getParameter("param2");
String p_param3 = request.getParameter("param3");However, what if the URL was of the form:
http://myhost.com/servlet?param1=test1+param2=test2+param3=test3where the URL parameter delimiter was a plus sign rather than an ampersand (&).
By default, the servlet is only recognizing the ampersand (&) as a parameter delimiter.
When I use a plus sign as the delimiter, getParameter retrieves everything after the question mark (?) as the first parameter
i.e. param1 = test1 param2=test2 param3=test3
param2 = null
param3 = null
How can I get getParameter to recognize a plus sign (+) as a valid delimiter?Servlets follow the HTTP specification. So, there is not much you can do on that level. What you could do (though I do not recommend it) is to set-up a filter that will automatically swap the plus with an ampersand before the actual servlet processes it. My strong advice, however, is to give up on using a nonstandard delimiter.
[http://java.sun.com/products/servlet/Filters.html]
- Saish -
<?xml version="1.0"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd"
Verson="2.0">
<channel>
<title>KPNC Regional Toxcast</title>
<link>http://kpssctoxicology.org/edu.htm</link>
<description>KP Toxcast test podcast</description>
<webMaster>[email protected]</webMaster>
<managingEditor>[email protected]</managingEditor>
<pubDate>Tue, 27 Sep 2011 14:21:32 PST</pubDate>
<category>Science & Medicine</category>
<image>
<url>http://kpssctoxicology.org/images/kp tox logo.jpg</url>
<width>100</width>
<height>100</height>
<title>KPNC Regional Toxcast</title>
</image>
<copyright>Copyright 2011 Kaiser Permanente. All Rights Reserved.</copyright>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<!-- iTunes specific namespace channel elements -->
<itunes:subtitle>The Kaiser Permanente Northern California (KPNC) Regional Toxicology Service Podcast</itunes:subtitle>
<itunes:summary>This is the podcast (toxcast) of the KPNC Regional Toxicology Service. Providing Kaiser and non-Kaiser physicians with anything toxworthy</itunes:summary>
<itunes:owner>
<itunes:email>[email protected]</itunes:email>
<itunes:name>G. Patrick Daubert, MD</itunes:name>
</itunes:owner>
<itunes:author>G. Patrick Daubert, MD</itunes:author>
<itunes:category text="Science & Medicine"></itunes:category>
<itunes:link rel="image" type="video/jpeg" href="http://kpssctoxicology.org/images/kp tox logo.jpg">KPNC Toxcast</itunes:link>
<itunes:explicit>no</itunes:explicit>
<item>
<title>KPNC Regional Toxcast Sample File</title>
<link>http://kpssctoxicology.org/edu.htm</link>
<comments>http://kpssctoxicology.org#comments</comments>
<description>This is the podcast (toxcast) of the KPNC Regional Toxicology Service. Providing Kaiser and non-Kaiser physicians with anything toxworthy</description>
<guid isPermalink="false">1808@http://kpssctoxicology.org/Podcast/</guid>
<pubDate>Tue, 27 Sep 2011 14:21:32 PST</pubDate>
<category>Science & Medicine</category>
<author>[email protected]</author>
<enclosure url="http://kpssctoxicology.org/podcast/kptoxcast_test_092711.mp3" length="367000" type="audio/mpeg" />
<!-- RDF 1.0 specific namespace item attribute -->
<content:encoded><![CDATA[<p><strong>Show Notes</strong></p>
<p><a href="KPNC" _mce_href="http://kpssctoxicology.org/">KPNC">http://kpssctoxicology.org/">KPNC Regional Toxicology Service</a> is comprised of Steve Offerman, MD; Michael Young, MD; Patrick Whitely; and G. Patrick Daubert, MD. Awesome team!
<p>Download <a href="KPNC" _mce_href="http://kpssctoxicology.org/podcast/kptoxcast_test_092711.mp3">KPNC"> http://kpssctoxicology.org/podcast/kptoxcast_test_092711.mp3">KPNC Sample Toxcast</a></p>]]</content:encoded>
<!-- iTunes specific namespace channel elements -->
<itunes:author>G. Patrick Daubert, MD</itunes:author>
<itunes:subtitle>The Kaiser Permanente Northern California (KPNC) Regional Toxicology Service Podcast</itunes:subtitle>
<itunes:summary>This is the podcast (toxcast) of the KPNC Regional Toxicology Service. Providing Kaiser and non-Kaiser physicians with anything
toxworthy </itunes:summary>
<itunes:category text="Medicine"></itunes:category>
<itunes:duration>00:00:18</itunes:duration>
<itunes:explicit>no</itunes:explicit>
<itunes:keywords>daubert,toxicology,toxcast</itunes:keywords>
</item>
</channel>
</rss>Please when you have a query post the URL of your feed, not its contents. Is this your feed? -
http://kpssctoxicology.org/Podcast/kptoxcast_test_rss_092711.xml
You have a number of cases of a string of spaces in titles: you also have one in a URL which will render that link invalid.
But what is rendering the whole feed unreadable is your category link:
<category>Science & Medicine</category>
The presence of an ampersand ('&') by itself indicates the start of a code sequence, and in the absence of one, and its closing character, invalidates everything which follows, and thus the entire feed. You must replace the ampersand with the code
&
Additionally, your opening lines should read thus:
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
(with the 'purl.org' line if you like).
If you are going to submit a feed to iTunes you might want to reconsider have 'test' in the filename: apart from the Store having a tendency to reject obvious test podcasts which may not reflect the finished version, you will be stuck with this URL and though you can change the feed URL it's an additional hassle. -
How to get the query values from the url in a servlet and pass them to jsp
ok..this is the situation...
all applications are routed through a login page...
so if we have a url like www.abc.com/appA/login?param1=A¶m2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and then should pass all those values(as hidden values) to the login jsp..then user enters username and pswd, then there should be another servlet which takes all the hidden values of jsp and also username and pswd, authenticates the user and sends the control back to that particular application along with the hidden values...
so i need help on how to parse the query string from the original url in the servlet, pass it out to jsp, and then pass it back to the servlet and back to the original application...damnn...any help would be greatly appreciated...thanksok..this is the situation...Sounds like you have a bad design on your hands.
You're going to send passwords in a GET request as clear text? Nice security there.
Why not start with basic security and work your way up?
% -
Hi There,
I am getting below error when bursting a report in Oracle eBusiness Suite(XML Publisher).
This report works fine in DEV and TEST, but started giving below error when migrated to PROD:
XML/BI Publisher Version : 5.6.3
Request ID: 2338377
All Parameters: ReportRequestID=2338376:DebugFlag=Y
Report Req ID: 2338376
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:TL1RDB800
Preparing parameters
null output =/oraproduct/apps/EBIZD/ebizdcomn/admin/out/EBIZD_tl1rdb800/o2338377.out
inputfilename =/oraproduct/apps/EBIZD/ebizdcomn/admin/out/EBIZD_tl1rdb800/o2338376.out
Data XML File:/oraproduct/apps/EBIZD/ebizdcomn/admin/out/EBIZD_tl1rdb800/o2338376.out
Set Bursting parameters..
Temp. Directory:/oratemp/EBIZD/ConsolidatedBilling
[030413_040224973][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
Start bursting process..
[030413_040224980][][STATEMENT] /oratemp/EBIZD/ConsolidatedBilling
[030413_040225003][][STATEMENT] BurstingProcessor ::: Property Key ---> burstng-source
[030413_040225003][][STATEMENT] Inside burstingConfigParser
[030413_040225005][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: startDocument is entered <========================
[030413_040225108][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: startDocument is entered <========================
[030413_040225109][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: endDocument is entered <========================
[030413_040225142][][EXCEPTION] The URL ( xdo://AR.XXINV_REPRINT.en.US/?getSource=true ) is invalid.
[030413_040225143][oracle.apps.xdo.batch.BurstingProcessorEngine][EXCEPTION] java.lang.NullPointerException
at com.sun.java.util.collections.Hashtable.put(Hashtable.java:381)
at oracle.apps.xdo.batch.BurstingProcessorEngine.validateTemplateLocation(BurstingProcessorEngine.java:3394)
at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(BurstingProcessorEngine.java:2084)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(BurstingProcessorEngine.java:2054)
at oracle.apps.xdo.batch.BurstingProcessorEngine.endDocument(BurstingProcessorEngine.java:1214)
at oracle.xml.parser.v2.XMLContentHandler.endDocument(XMLContentHandler.java:105)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:276)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(BurstingProcessorEngine.java:2153)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingEndElement(BurstingProcessorEngine.java:1802)
at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1127)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(BurstingProcessorEngine.java:959)
at oracle.apps.xdo.batch.BurstingProcessorEngine.process(BurstingProcessorEngine.java:903)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:269)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
[030413_040225143][][ERROR] The template xdo://AR.XXINV_REPRINT.en.US/?getSource=true can't be fetched.
[030413_040225143][][STATEMENT] template Filenull
[030413_040225143][][EXCEPTION] Error while generating the Document...
[030413_040225144][][EXCEPTION] java.lang.NullPointerException
at com.sun.java.util.collections.Hashtable.containsKey(Hashtable.java:300)
at oracle.apps.xdo.batch.bursting.ProcessDocument.getXSLFile(ProcessDocument.java:393)
at oracle.apps.xdo.batch.bursting.ProcessDocument.processTemplate(ProcessDocument.java:255)
at oracle.apps.xdo.batch.bursting.ProcessCoreDocument.processLayout(ProcessCoreDocument.java:112)
at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(BurstingProcessorEngine.java:3206)
at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(BurstingProcessorEngine.java:2112)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(BurstingProcessorEngine.java:2054)
at oracle.apps.xdo.batch.BurstingProcessorEngine.endDocument(BurstingProcessorEngine.java:1214)
at oracle.xml.parser.v2.XMLContentHandler.endDocument(XMLContentHandler.java:105)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:276)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(BurstingProcessorEngine.java:2153)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingEndElement(BurstingProcessorEngine.java:1802)
at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1127)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(BurstingProcessorEngine.java:959)
at oracle.apps.xdo.batch.BurstingProcessorEngine.process(BurstingProcessorEngine.java:903)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:269)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
[030413_040225226][][STATEMENT] initConfig(): config file used :null
[030413_040225227][][STATEMENT] initCustomFactories(): loading custom delivery channels :{}
[030413_040225227][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] initConfig(): loading default properties :{}
[030413_040225227][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: endDocument is entered <========================
Bursting process complete..
Generating Bursting Status Report..
--Exception
/oratemp/EBIZD/ConsolidatedBilling/030413_040224997/___.pdf (No such file or directory)
java.io.FileNotFoundException: /oratemp/EBIZD/ConsolidatedBilling/030413_040224997/___.pdf (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:503)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:275)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
[030413_040225249][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /oratemp/EBIZD/ConsolidatedBilling/030413_040224997/xdo0.tmp is deleted
[030413_040225254][oracle.apps.xdo.batch.bursting.FileHandler][STATEMENT] /oratemp/EBIZD/ConsolidatedBilling/030413_040224997/xdo1.tmp is not deleted
Below is the Bursting Control File:
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
<xapi:request select="/XXINV/LIST_G_SETUP/G_SETUP/LIST_G_SITES/G_SITES">
<xapi:delivery>
<xapi:filesystem output="${RDF_CUSTOMER_NAME}_${RDF_CUTOFF_DATE}_${BILLING_NO}_${CUSTOMER_NUMBER}.pdf"/>
</xapi:delivery>
<xapi:document output-type="pdf">
<xapi:template type="rtf" location="xdo://AR.XXINV_REPRINT.en.US/?getSource=true">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
Thanks
YogiHi,
Found the cause of the error:
When the Data Definition was migrated from DEV to PROD using the ldt files, somehow it dropped the default territory which is 'United States'.
Hence the path of the template xdo://AR.XXINV_REPRINT.en.US is throwing an error.
The below query can be used to determine the value that should go in the bursting control file in the path:
SELECT APPLICATION_SHORT_NAME||'.'||
TEMPLATE_CODE||'.'||
DEFAULT_LANGUAGE ||'.'||
DEFAULT_TERRITORY
FROM XDO_TEMPLATES_VL
WHERE TEMPLATE_CODE like '%XXINV%REPRINT%'
REUSULT:
AR.XXINV_REPRINT.en.00
Hence AR.XXINV_REPRINT.en.US should be replaced with AR.XXINV_REPRINT.en.00 in the bursting control file which will fix the issue.
Thanks
Yogi -
What's the best way to define some values based on the URL?
Let's say for example I want all my URLs for servlets to take the form:
http://mysite.com/module/action?arguments
What's the most scalable way to handle mapping the values in place of "module" and "action"? For example, I might have a "forum" module and have an action to "deleteThread", called like so:
http://mysite.com/forum/deleteThread?id=321
I know I can just parse it myself, but is there a better way to handle this via some settings in web.xml or similar? All my requests go through a Front Controller which needs to know which module and action have been requested so that it can run the appropriate action controller.
Cheers,
ChrisAt the risk of repeat-posting, I'll clarify. Say I create a file named routing.xml which defines some routes like this:
<routing-config>
<route>
<name>Standard rule</name>
<description>
This route maps the first two parts in the path with the module and action
</description>
<url-pattern>/:module/:action.do</url-pattern>
</route>
<route>
<name>Default Index</name>
<description>
Allows the module to be specified without the action for "Index" actions.
</description>
<url-pattern>/:module.do</url-pattern>
<request-parameters>
<parameter key="action" value="Index" />
</request-parameters>
</route>
<route>
<name>Homepage</name>
<description>
Loads the Home page
</description>
<url-pattern>/</url-pattern>
<request-parameters>
<parameter key="module" value="Home" />
<parameter key="action" value="Index" />
</request-parameters>
</route>
</routing-config>The bits like ":module" which be represented by the actual name of the module in the URL. Does anyone know if something like this already exists? :)
I wrote this exact same thing in PHP5 just a few weeks ago but I really don't have the motivation to write it all over again in Java :P On a side-note, things like this usually come with helpers for turning unclean URIs into clean URIs. -
Displaying the URL parameters in pdf file.
Hello, I need help about using JavaScript with pdf file. I have an URL like this: http://www.a.org/mta/sigtr_mta.pdf?&rqst_id=8762312&inst=The+Jackson+Laboratory&pi=Dr.PI& 022008-UCD. Is there a way that I can extract the URL parameters (such as rqst_id or inst ) from JavaScript in this pdf and replace some form text field with the parameters and set these fields to read only.
I appreciate any of your help or hint!this.URI(), I believe, will get you the complete URI that the document was opened from. Then you can parse it any way you'd like.
Leonard
Maybe you are looking for
-
Hello, I am required to use the following PL/SQL function as part of my procedure: Create or replace function fqman."test" (name in varchar2, url in varchar 2, page in varchar2, uname in varchar2, password in varchar 2, key_ in varchar2, pass in varc
-
KEPM Configuration - Questions
HI, I have to configure KEPM for my Client. They want to plan at product group level and distribute to the product or customer level.As a first step I have to prepare a list of questions to configure KEPM and activate sales and profitability planning
-
UK Signal/carriers...?
Hi All, I am having major problems with my iphone signal in the UK. All was fine until I went into an area with a bad signal about 2 months ago now the phone constantly is low on signal or has no signal at all. It seems its always trying to find the
-
[solved] KDE 4.4: Wallpapers not working.
I just updated testing and it installed KDE 4.3.98, however now I cannot use wallpapers on my desktop, if I choose wallpaper in the desktop appearance window, there's no options to pick what image to display or anything, just the drop down telling th
-
Order by the names in hashMaps which are contained within a collection
Hi All, Is there a way to order by the names in hashMaps which are contained within a collection? Collection-->hmp1(nrPerson1, nameB); hmp2(nrPerson2, nameC); hmp3(nrPerson3, nameA); Now what i need to display is (nrPerson3,nameA), (nrPerson1,nameB),