Why can't show result in JSTL?
I use Tomcat5.0 . The resulting output of the preceding code fragment is $9,000 ,but it show nothing in IE. Why?
<%@ taglib uri='http://java.sun.com/jstl/fmt' prefix='fmt'%>
<c:set var='originalMonetaryAmount' value='$10,000'/>
<fmt:parseNumber value='${originalMonetaryAmount}' var='parsedAmount' type='currency' parseLocale='en-US'/>
<c:set var='result' value='${parsedAmount - 1000}'/>
<fmt:setLocale value='en-US'/>
<fmt:formatNumber value='${result}' type='currency'/>
Hi,
If you are using tomcat, try using another container, resin for instance.
I'm having almost the same situation were tomcat does not display anything in browser(but errors are displayed through standard output console) and resin displays what expected.
I havent found out why, I read something about JVM < 1.4.2_07 and actually I havent been answered about this.
Regards,
OO
Similar Messages
-
How can I show results in another key figure?
Hi everybody,
I am using BEx Analyzer 3.5 and there I have a key figure with the following entries in a table:
40
50
60
Now I want another keyficture next to the first one which shows me the result of the first one:
40 | 150
50 | 150
60 | 150
How is that possible in the query designer (formula) in BW 3.5?
Thanks everybodyHi,
Thank you for your help! I tried it with two key values. But it worked just by one.
The other key value is the difference between two dates, for example 29 (29 days). It's not working with these key value. What can I do in this case? Should I can the value with the formular editor?
Thank you for helping me -
Why can't show iPhoto albums on ATV?
At one time, I could show all my photos from iPhoto to Apple TV. Now, I can't find them on ATV - - only "Photo Stream" which is very limiting. I need to find a way to show Albums.
Your photo library will be accessed via the Computers section
-
HT204411 Why can tv shows be downloaded via uk store but not ireland store?
Seems kind of ridiculous to me. You get the same tv channels in both countries, dvd and bluray release dates are the same, but no way to legally download tv shows in ireland. im quite happy to pay to download legally but it seems apple dont want my money! my itunes account cant be used in uk eventhough im over and back between both countries all the time.
No one could know what will be available in the future, unless Apple announces
-
How to shows result as Alias name.
Dear All,
I am having following query and output, in that inside query showing one record check another query, that result i want to show as Alias, Can we show result as alias ?
select SPL.speciality_description,Emp.FIRSTNAME,DT.full_date
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION
FROM (SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=1),patientcount)) as First
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=2),patientcount)) as Second
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=3),patientcount)) as Third
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=4),patientcount)) as Forth
,max(decode(diagnosis_description,
(SELECT DIAGNOSIS_DESCRIPTION FROM (
SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=5),patientcount)) as Fifth
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_SPECIALITY SPL ON SPL.SPECIALITYID = PD.SPECIALITYID
INNER JOIN D_EMPLOYEEMASTER EMP ON EMP.EMPID = PD.DOCTORID
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual)
group by SPL.speciality_description, Emp.FIRSTNAME, DT.full_date
order by SPL.speciality_description,Emp.FIRSTNAME,DT.full_date
Output:
REGISTRATION Dr.POOJA 19-JUL-10 12:00 AM 56 74 99 32 96
REGISTRATION Dr.POOJA 21-JUL-10 12:00 AM 93 74 45 43 69
REGISTRATION Dr.POOJA 22-JUL-10 12:00 AM 34 34 76 66 24
REGISTRATION Dr.POOJA 24-JUL-10 12:00 AM 99 75 97 78 69
REGISTRATION Dr.POOJA 26-JUL-10 12:00 AM 54 34 76 66 24
REGISTRATION Dr.POOJA 28-JUL-10 12:00 AM 76 75 97 78 33
REGISTRATION Dr.POOJA 30-JUL-10 12:00 AM 54 23 34 65 23
Travel Clinic Dr.PRAN 19-JUL-10 12:00 AM 56 74 99 32 96
Travel Clinic Dr.PRAN 21-JUL-10 12:00 AM 93 74 45 43 69
Anothe Query :
SELECT DIAGNOSIS_DESCRIPTION
FROM (SELECT row_number() OVER (ORDER BY DIAGNOSIS_DESCRIPTION DESC) r,
DG.DIAGNOSIS_DESCRIPTION
FROM A_PERFORMANCEDOCTORWISE PD
INNER JOIN D_DATE DT ON DT.DATE_ID = PD.DATEID
INNER JOIN D_DIAGNOSIS DG ON DG.DIAGNOSISID = PD.DIAGNOSISID
WHERE DT.FULL_DATE between (select TO_CHAR(sysdate-15,'DD/MON/YYYY') from dual)
and (select TO_CHAR(sysdate,'DD/MON/YYYY') from dual) and ROWNUM < 6
) WHERE r=1
Output:
Neurocytoma
I want to show this result as Alias name. Can anybody tell me how to do that ?
Thanks and Regard's
Harish PatilHi,
If I've understood the intention of your code correctly, you are trying to pivot the rows into columns and assign a "nice" header to the resulting columns.
You cannot dynamically assign a column name to a pivoted row. You need to know beforehand what row you are pivoting so you can assign a column name to it. This isn't as difficult as it sounds, there are a number of ways you could know what row will become what column.
Since I have no way to test using your code, I am posting an example for you that uses the EMP table that is part of the standard example databases shipped with Oracle.
Also, notice that, the code I am presenting is enclosed between the tags (which you cannot see) [ code ] and [ / code ] which is why it appears nicely formatted. Your code would be much easier to read and folks would be much more likely to understand what you want and therefore help you if you take the time to format your code so it is comprehensible.
See the basics of using tags to format your code at this page:
http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
Now the example that will help you get what you want:
/* this query calculates the total salaries per deptno */
SELECT job,
deptno,
sum(sal) sal
FROM emp
GROUP BY job, deptno;
/* output is */
JOB SUM(SAL)
CLERK 4150
SALESMAN 5600
PRESIDENT 5000
MANAGER 8275
ANALYST 6000
/* this query pivots the above query (which is what you're trying to do) */
SELECT *
FROM (
SELECT job,
deptno,
sum(sal) sal
FROM emp
GROUP BY job, deptno
PIVOT (sum(sal) FOR deptno IN (10, 20, 30, 40));
/* output is */
CLERK SALESMAN PRESIDENT MANAGER ANALYST
4150 5600 5000 8275 6000If you are not using 11g, there are ways of doing the above without using the PIVOT clause. There are lots of examples in this forum on how to pivot rows. Here is one that pretty much does manually what the PIVOT clause does:
select max(case when job='CLERK'
then ename else null end) as clerks,
max(case when job='ANALYST'
then ename else null end) as analysts,
max(case when job='MANAGER'
then ename else null end) as mgrs,
max(case when job='PRESIDENT'
then ename else null end) as prez,
max(case when job='SALESMAN'
then ename else null end) as sales
from (
select job,
ename,
row_number()over(partition by job order by ename) rn
from emp
) x
group by rn
/* outputs */
CLERKS ANALYSTS MGRS PREZ SALES
MILLER FORD CLARK KING TURNER
JAMES SCOTT BLAKE MARTIN
ADAMS JONES WARD
SMITH ALLENHTH,
John.
Edited by: 440bx - 11gR2 on Aug 2, 2010 9:28 AM - added missing verb "is" in sentence
Edited by: 440bx - 11gR2 on Aug 2, 2010 9:32 AM - missing "s" in select. -
I've had my apple tv for a while now, but have never actually purchased anything from the itunes store directly from the device. A friend recommended "Sleepless in Seattle" to me, and since it's not in Netflix or On Demand, I decided to buy it from itunes.
In doing a search in the Movies section of my Apple TV and typing in "Sleepl", I got no results. Bummed, I went onto Amazon to see how much the DVD would cost. On a whim, I opened itunes on my computer and did a search for the movie. To my shock, it is available for purchase on itunes for $9.99!
Once I found this out, I went back to my Apple TV and searched again. The movie still didn't appear to exist. I noticed then that every movie on the apple tv only gave me the option of renting, not buying. I was going to purchase from my computer, but then thought better of it because I wasn't sure it would be made available for me to watch on the apple tv.
Is there something wrong with my system? Why can't I buy movies from the device? I can buy tv shows, so it just seems weird to me that this is limited to the movies!Ha, ha, you are such a tool!
That profile was written in 2007 and never updated. Unlike you, I don't live on this forum. I have one 5 year old Dell gathering dust, waiting for the trash that has some kids software on it my kids never use.
Currently I own a 27 inch iMac, and a 21 inch iMac used by my wife. I just sold my MacBook Air, which replaced my MacBook Pro of two years ago. I have an AppleTV v2, and unfortunately gave my AppleTV v1 to a friend before I realized they stripped out the movie purchase feature. We also own an iPad, two iPhones, and 4 iPods, two of which are used as digital music storage for our cars.
So yes, all of my factual posts concerning Apple's shocking decision to try to hide the fact they removed significant functionality from AppleTV when they revved it, are just driven by the fact that 4 years ago I used almost no apple products. Apparently I harbor a twisted desire to hurt the company that provides me almost all of my technology of choice today, despite being an early software developer for the Mac, helping start two Macinotosh software companies in the 1980s and 1990s, and working at Apple for 2 years in the early 90s.
The truth is, Apple's products weren't so good 15 years ago so I gradually switched to Windows for professional reasons. About 4 years go I bought an iPhone, and started to wake up to the fact that Apple had done a tremendous job moving the Mac platform to the intel architecture, and was very happy to replace my crappy dells with Apple products.
But that doesn't mean I wear blinders when their product teams and marketing department makes mistakes, or does something deceptive. -
Why can't I download Photoshop CC(2014) to my Mac Pro desktop running OSX 10.9.3. My Creative Cloud app shows updates for all apps that I have as CS6 on my desktop but I have only subscribed to Photoshop CC. Lightroom shows Install but it is installed. Trying to Install Photoshop CC(2014) results in and error message "Installation failed Errors encountered during installation.(7) more information.
More information gives Exit Code: 7
Please see specific errors below for troubleshooting. For Example, ERROR:
- 0 fatal error)s), 0 error(s)
I also cannot directly download from my account on the web. This has been going on for a week or more and I have tried numerous suggestions on the forums but got nowhere. I uninstalled Creative Cloud app today but could not find the installer again so I assume that was deleted. I cannot download that now as on Adobe's site it says we are experiencing problems. Aren't we all.
I was happy with CC until last week but now cannot recommend it.
I also have a Macbook Pro retina and Photoshop CC(2014) downloaded no problem on that.Code 6 & Code 7 http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
or
Link for Download & Install & Setup & Activation problems may help
-Online Chat http://www.adobe.com/support/download-install/supportinfo/ -
HT1725 why can't I stream the friggin' thing? 3 hours to download a 45 minute show?
why can't I stream the TV show I want to watch and paid for? Why does it keep telling me it will take longer and longer to download this program? It started at 37 minutes and now it's up to 4 hours. And I see no progress. How can I stream it instead of downloading?
Dont know if i made it clear in the previous post, but it used to work with no problem, it's just recently that this has begun to be a problem. could it be the latest updates that are causing the problem? the only thing ive been doing differently is i've begun transfering my dvd collection to digital copies to stream through itunes. the digital files are ones that itunes recognizes and worked before. is it possible to have a library that is too large and slows down the streaming? i tried using airplay last night, with the same results, the loading wheel just spins forever. the AppleTV can find the itunes library, and all the files on it, but they just dont play.
-
My Samsung TV has a USB port. When I connect the cable from the iPad to the TV I can only show Pictures and Music. Why does the videos not appear and how can I show videos on the TV.
This article should help you with that:
http://www.ehow.com/how_7211806_display-iphone-tv.html
Take care -
I imported some 24P HD videos from my DSLR to Aperture but these videos do not show up in iMovie '09 for editing purposes. Although my previous 24P HD Videos from iPhoto '09 show up. Why can't I access these videos stored in Aperture library? I assumed that like the videos in iPhoto, I would be able to access the videos in Aperture through iMovie. Come on Apple! I am starting to get frustrated with your products here. And this is saying a lot when I have been using and loving apple products for the last 4 years.
Hi. My camera is a Canon 600D. And yes my videos are stored in the Aperture library and they are not referenced. Even then I tried to select all the videos in Aperture and clicked 'consolidate masters' and there was a messge that said all 'none of the files are referenced',... so they didn't need consolidating.
I also tried preferences> export> external video editor > choose > iMovie. And then right click on the video to edit with imovie. Even then the video didn't show up in iMovie. It seems like the only option for me is to import the videos directly to iMovie which means there will be two versions of the same file stored in my computer eating up space.
APPLE. What are you doing? -
Why can I sync a movie but not TV shows on my nano (7th gen)?
I am using iTunes 11.0 and can sync a movie (Miracle on 34th Street) to my new ipod nano 7th gen but when I try a TV Show (a Planet Earth HD episode) or even a brief video clip taken with my camara I am told that such an action is not permitted on this ipod. So why can I sync a movie but not TV shows on my nano (7th gen)? Thank you.
Before you can sync video files, it must be converted into a format compatible with ipod. If you can’t sync a video convert it by doing the following:
In iTunes, select the video you want to convert. Do one of the following then sync again after:
1) Choose File > Create New Version > Create iPod or iPhone Version.
2) Choose File > Create New Version > Create iPad or Apple TV Version.
I hope this works. -
Why can't other computers open and/or download my photos when I email themfrom IPhoto? Have also tried making it a separate file on my desk; to no avail.
It shows as an icon and jpeg when it goes out from my computer but they can't download it.
They might see the photo imbedded in the emil but it doesn't appear as a downloadable icon.
Thank you for your help.I think I can help. I use Mac but my secretary uses PC.
Make a file on your desktop and name it "test"
Go to iPhoto and click on a photo to send to this folder
Go to file and choose "export"
Pop up window - Kind: jpeg
quality: maximum
size: full
click on export and choose the "test" folder you created on the desktop.
You can now send any jpeg that you put in this folder from an email account by "attaching file" from within the email. If you have more than one jpeg, right click on the folder and choose "compress file" -
Why can I not check the 'shuffle images' box in a slide show settings in iPhoto 9.6?
Why can I not check the 'Shuffle images' box in settings of a slide show in iPhoto 9.6? All other settings I can check but this one.
Hey Brad,
If you are unable to select the shuffle images checkbox, follow the steps in this article -
iPhoto '11: Change slideshow settings
Specifically -
To display slides in random order, select “Shuffle slide order.” If you don’t see this option, play the slideshow, move the pointer to make the slideshow controls appear, and then click the Settings button.
Thanks for using Apple Support Communities.
Be well,
Brett L -
I made a purchase on iTunes and it is not showing on any of my devices. When I tried to watch the show in my purchased file I could not. When I go back to iTunes it tells me I made the purchase already. Why can't I access my purchases. Case # 506294747
Hi Paul,
If you are having an issue such as this with an item such as a movie purchased from the iTunes store, you may want to report it to the store. Use the steps in this article -
Report an problem with an item you bought from the iTunes Store, App Store, Mac App Store, or iBooks Store
Thanks for using Apple Support Communities.
Best,
Brett L -
I have an ipod touch 4th gen. why does it show the wrong album artwork on my ipod and it's fine on itunes. why is that and is there any way to fix it? please help!
I think it can't find the right or any artwork and ends up putting junk in there.
And can happen with artist and other tags.
probably fine with commercial media but otherwise....? I think you have to manaully go in and edit
I also don't like how it handles and stores non-Apple iTunes store content.
Maybe you are looking for
-
JFileChooser and Read Only Folders in XP
The following question concerns a Java application, not a applet or web service. If you are browsing a folder with JFileChooser the button to create a new folder is disabled if the parent folder is read-only. Under XP folders often show up as read on
-
Is it possible to set a password for a document.pages?
-
I like the layout feature but I don't want my site to look like a bunch of gray boxes all the time. I tried the style attribute on the border but it doesn't seem to work for me. I can't seem to hide the default gray border or change its color. How ca
-
Hi friends, In my billing application i use JEditorPane and set some billing document. If i want to print the contents which one is correct. 1. editPane.print(null, null, false, null, null, false);or 2.use print job and attributes. I used the 2 metho
-
Result reporting entries missing
Hi, I'm having an issue with my results file. If I run the teststand sequence on the development Pc it works fine but when I deploy the code and run it on a deployment PC the html fail summary only shows the first fail. e.g. 4.1 Test x fails 4.2 Te