![]() |
showing reports created in an applet
I want to build a report in a String in an applet then display that
string in a browser window without writing a file to disk. Any suggestions? |
Re: showing reports created in an applet
In article <c0a643e3-cf02-45c5-8386-da4b6f6abc70@w7g2000hsa.googlegroups.com>,
bucky.pope <bucky.pope@gmail.com> wrote: >I want to build a report in a String in an applet then display that >string in a browser window without writing a file to disk. > >Any suggestions? |
Re: showing reports created in an applet
bucky.pope wrote:
> I want to build a report in a String in an applet then display that > string in a browser window without writing a file to disk. > > Any suggestions? The applet is running in the same browser window? If yes, why wouldn't you display the report within the applet / where exactly within the window do you want to display the report? -- Dave Miller Java Web Hosting at: http://www.cheap-jsp-hosting.com/ |
Re: showing reports created in an applet
On Fri, 27 Jun 2008 09:32:55 -0700 (PDT), "bucky.pope"
<bucky.pope@gmail.com> wrote, quoted or indirectly quoted someone who said : >I want to build a report in a String in an applet then display that >string in a browser window without writing a file to disk. You might just throw the whole thing in a JTextArea with a scroller. see http://mindprod.com/jgloss/jtextarea.html A bit more complex, use a JTable if you want columns or editing. see http://mindprod.com/jgloss/jtable.html If you want to write it to disk you must sign the app or write as a JWS app. see http://mindprod.com/jgloss/javawebstart.html -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com |
Re: showing reports created in an applet
On Jun 28, 5:27 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote: .... > If you want to write it to disk you must sign the app or write as a > JWS app. > see http://mindprod.com/jgloss/javawebstart.html That's a good page, but I don't see any reference to some recent developments that involve hooking applets into webstart services (and making them draggable). This allows an unsigned applet, embedded in a web page, to access the local disks using the JNLP API (and also to be dragged off the web page - thereby installing them locally). This was only introduced into the 1.6.0_10 (beta, when I last saw it) JRE, but it does seem interesting (interesting enough for me to download the _10-beta update to play with it). JNLP support: <https://jdk6.dev.java.net/plugin2/jnlp/> Draggable applet: <https://jdk6.dev.java.net/plugin2/#EXPERIMENTAL_FUNCTIONALITY> -- Andrew Thompson http://pscode.org/ |
Re: showing reports created in an applet
bucky.pope wrote:
> I want to build a report in a String in an applet then display that > string in a browser window without writing a file to disk. > > Any suggestions? You probably mean scriptlet, not applet. The two are very different too. Scriptlets are for web programming and for web apps, and use Java EE (I think that's what they're calling it these days). Applets are much older tech that never really caught on, and are not used much any more. http://java.sun.com/javaee/ <http://www.javapassion.com/j2ee/> <http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/> |
Re: showing reports created in an applet
On Jun 27, 12:53*pm, Dave Miller <nonregiste...@coldrain.net> wrote:
> bucky.pope wrote: > > I want to build a report in a String in an applet then display that > > string in a browser window without writing a file to disk. > > > Any suggestions? > > The applet is running in the same browser window? If yes, why wouldn't > you display the report within the applet / where exactly within the > window do you want to display the report? > > -- > Dave Miller > Java Web Hosting at:http://www.cheap-jsp-hosting.com/ This is an app that might run from a local web page or from a remotely loaded web page. I figured by displaying the report in the browser, the user would have all his or her regular browser capabilities: save, print, email or they might want to keep several reports open in tabs. That would save me a lot of programming. |
Re: showing reports created in an applet
On Jun 28, 1:33*pm, Mark Space <marksp...@sbc.global.net> wrote:
> bucky.pope wrote: > > I want to build a report in a String in an applet then display that > > string in a browser window without writing a file to disk. > > > Any suggestions? > > You probably mean scriptlet, not applet. *The two are very different too. > > Scriptlets are for web programming and for web apps, and use Java EE (I > think that's what they're calling it these days). *Applets are much > older tech that never really caught on, and are not used much any more. > > http://java.sun.com/javaee/ > > <http://www.javapassion.com/j2ee/> > > <http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/> I may deploy this app either from a hosted webpage for a local copy of the same page loaded from a distribution cd. I thought EE was server only. I'm looking for the simplist solution possible. |
Re: showing reports created in an applet
On Jun 28, 1:38*am, Andrew Thompson <andrewtho...@gmail.com> wrote:
> On Jun 28, 5:27 am, Roedy Green <see_webs...@mindprod.com.invalid> > wrote: > ... > > > If you want to write it to disk you must sign the app or write as a > > JWS app. > > seehttp://mindprod.com/jgloss/javawebstart.html > > That's a good page, but I don't see any reference to some > recent developments that involve hooking applets into webstart > services (and making them draggable). *This allows an unsigned > applet, embedded in a web page, to access the local disks > using the JNLP API (and also to be dragged off the web page - > thereby installing them locally). > > This was only introduced into the 1.6.0_10 (beta, when I > last saw it) JRE, but it does seem interesting (interesting > enough for me to download the _10-beta update to play with > it). > > JNLP support: > <https://jdk6.dev.java.net/plugin2/jnlp/> > Draggable applet: > <https://jdk6.dev.java.net/plugin2/#EXPERIMENTAL_FUNCTIONALITY> > > -- > Andrew Thompsonhttp://pscode.org/ JNLP has a showDocument like AppletContext, but it also requires a URL. Is there any way to create a URL that points to a String in memory instead of a file or a web page? |
Re: showing reports created in an applet
On Jun 29, 7:00*am, "bucky.pope" <bucky.p...@gmail.com> wrote:
... > > JNLP support: ... > JNLP has a showDocument like AppletContext, but it also requires a > URL. Is there any way to create a URL that points to a String in > memory instead of a file or a web page? Short answer no, long anwser, nope. But if the applet wraps the report up as the *parameters* for an URL, a JS* on the receiving web page could write out the report in a form suitable for the browser to render it, and the user to print it. There will be numerous problems trying to 'save' such a report though. I think your best (least effort) option is to sign the applet, as Roedy suggested, then write a temporary file containing the report. If your users want these reports, they should be willing to accept a trusted applet (especially if you explain why the extended trust is required). I saw a great applet that asked at start-up if you wanted to trust it, initially I said no, so it went ahead to prepare the visually interesting parts of the applet, but had things like the 'Print' and 'Save' buttons disabled - 'These are available in the trusted version'. * Noting that you are not running an active server in some cases. -- Andrew Thompson http://pscode.org/ |
| All times are GMT. The time now is 06:36 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.