playing multiple sound files.
Hi group: I have a JSP which has multiple rows on as a result of the iterate tag. I form a href from the elements in the iterate tag to point to a .mp3 file. When I click on this formed link, it works fine. The clip is played. Now I want to be able to play multiple clips one after another. So, I put a checkbox next to each row in the iterate tag. I want to be able to check as many checkboxes as needed and submit this via a button. This is all in struts. I have not been able to figure this out. Any help will be greatly apprecated. Thanks, Nanijon. - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
the use of PREV:NEXT option using the logic:iterate tag.
Hi all: Is there a way to have page breaks, with an iterate tag when displaying a large number rows. Also, to be able to put PREV:NEXT at the end of each page for easy navigation in struts? Any help/guidance will be appreciated. Thanks, Nanijon. - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
alternating row colors in the iterate tag.
Hi all: Is there a way to alternate row background colors within an logic:iterate tag? I was able to do it using java scriplet. The problem is the value of the varaible rowColor shows up on the JSP. Here is a snippet of the code in the JSP page: html .. % String rowColor = #ff; String prevColor = #ff; String nextColor = #cc; % ... ... logic:iterate id=instance name=main property=mainInfo.titleCollection type=com.acs.backend.dao.MusicDAO tr bgcolor=%=rowColor% td../td /tr % if (rowColor == prevColor) { % %=rowColor = nextColor% % } else { % %=rowColor=prevColor% % } % /logic:iterate - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
Re: [OT]RE: accessing large/multiple files on hard drive
Will: I am just trying to reference them in my JSP page. I have constructed a URL which points to the .mp3 file: http://jupiter/music/mp3/song1.mp3 This is part of an iterate loop logic:iterate ... So, when the user clicks on the link the file will start streaming from a directory on the hard drive. I would appreciate your suggestions. Thanks, Nanijon. Will Etson wrote:Are you trying to access the files from Java or just reference them via html? If you just want a reference, Tomcat and most other web servers have a notion of a virtual directory. I believe with tomcat you can set this up with context entry pointing to some random directory. If you want to reference the MP3s via Java, I used a property file to indicate the directory the my mp3s are stored in along with the virtual reference from the new Tomcat Context. This is essentially the same as having two web applications. One being deployed as an ear and one as an web application with its document root as a directory reference to the mp3 collection. The only draw back I found to this is that tomcat treats mime mappings somewhat strangely. .MP3 and .mp3 are not equal. .mp3 returns the right mime mapping and .MP3 was returned as an octet string. P.S. If some one has a better solution I be glad to hear it. I toyed around with the idea of hijacking the Invoker servlet with a struts action but I didn't feel this was very portable and the purpose of this app was to demonstrate best practices i.e. portability. 09/09/02 02:06PM This has got to be a candidate for the worst, messiest solution ever... Worse comes to worse, you could have two applications... one that holds and serves up the mp3 files and the other that does all the other work... I'm sure there is a hole a mile wide in this idea... -Original Message- From: ekbush [ mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:39 PM To: struts-user Subject: Re: accessing large/multiple files on hard drive That could get quite tricky if you're running out of a WAR archive. If your application is deployed in unpacked format, then you could sym-link (on Un*x anyway) to it I would think. So you'd wind up with a sym-link in your root (or protected under WEB-INF) that pointed to the real directory. I can't think of another elegant solution. Maybe someone else can. Regards, Eddie Nani Jon wrote: Hi: Here is my sitiuation. I have deployed my application war file to a JBoss_Tomcat caontainer. I have developed this app using struts. I am trying to access multiple music files (mp3 format) form this app. I don't want to wrap all of my mp3 files which total to about 1 GB in my war file. This makes for a very lenghty deploy process, especially when it is work in progress. I just want to put them in a directory on the server where Tomcat is running and point to that directory in my application. How is this done. Your help is greatly appreciated. Thanks, Nanijon. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
the use of PREV:NEXT option using the logic:iterate tag.
Hi all: Is it possible to use in struts, a page break type of logic and have the PREV:NEXT buttons at the end of each page of data coming from an iterate tag. E.g. a large number of rows which need to be displayed in multiple pages, say 30 rows per page. Thanks in advance for your help. Nanijon - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
accessing large/multiple files on hard drive
Hi: Here is my sitiuation. I have deployed my application war file to a JBoss_Tomcat caontainer. I have developed this app using struts. I am trying to access multiple music files (mp3 format) form this app. I don't want to wrap all of my mp3 files which total to about 1 GB in my war file. This makes for a very lenghty deploy process, especially when it is work in progress. I just want to put them in a directory on the server where Tomcat is running and point to that directory in my application. How is this done. Your help is greatly appreciated. Thanks, Nanijon. - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
RE: accessing large/multiple files on hard drive
Thanks Daniel: Can you provide me with an example of the usage of the config file? I would appreciate it. Thanks, Nani Jon. Daniel Joshua wrote:Nani Jon, Try using this... http://www.webdav.org/ Alternatively, you can store the path of the MP3 directory into a config file, and just use normal IO to interact with them. Regards, Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 5:06 AM To: [EMAIL PROTECTED] Subject: RE: accessing large/multiple files on hard drive This has got to be a candidate for the worst, messiest solution ever... Worse comes to worse, you could have two applications... one that holds and serves up the mp3 files and the other that does all the other work... I'm sure there is a hole a mile wide in this idea... -Original Message- From: ekbush [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:39 PM To: struts-user Subject: Re: accessing large/multiple files on hard drive That could get quite tricky if you're running out of a WAR archive. If your application is deployed in unpacked format, then you could sym-link (on Un*x anyway) to it I would think. So you'd wind up with a sym-link in your root (or protected under WEB-INF) that pointed to the real directory. I can't think of another elegant solution. Maybe someone else can. Regards, Eddie Nani Jon wrote: Hi: Here is my sitiuation. I have deployed my application war file to a JBoss_Tomcat caontainer. I have developed this app using struts. I am trying to access multiple music files (mp3 format) form this app. I don't want to wrap all of my mp3 files which total to about 1 GB in my war file. This makes for a very lenghty deploy process, especially when it is work in progress. I just want to put them in a directory on the server where Tomcat is running and point to that directory in my application. How is this done. Your help is greatly appreciated. Thanks, Nanijon. -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
iterate tag help.
Hi all: Is there a way in struts logic:iterate ... tag to be able wrap the values coming out of a collection (ArrayList) on a JSP? Here is a sample of my JSP code which puts everything on the same td: tr logic:present name=results logic:iterate id=myFormArrayListElement name=results property=formArrayList type=String td valign=top colspan=2span class=normal bean:write name=myFormArrayListElement//span /td /logic:iterate /logic:present /tr Thanks in advance for your help. Regards, Nanijon. - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes