Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@minotaur.apache.org Received: (qmail 77082 invoked from network); 28 Jan 2009 09:32:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2009 09:32:29 -0000 Received: (qmail 59996 invoked by uid 500); 28 Jan 2009 09:32:28 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 59987 invoked by uid 500); 28 Jan 2009 09:32:28 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 59976 invoked by uid 99); 28 Jan 2009 09:32:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2009 01:32:28 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2009 09:32:17 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LS6m4-0004Hq-BM for jspwiki-user@incubator.apache.org; Wed, 28 Jan 2009 01:31:56 -0800 Message-ID: <21702487.post@talk.nabble.com> Date: Wed, 28 Jan 2009 01:31:56 -0800 (PST) From: TruptiP To: jspwiki-user@incubator.apache.org Subject: New handler to handle form input In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: trupti.p27@gmail.com References: <21580234.post@talk.nabble.com> <21603044.post@talk.nabble.com> <21604015.post@talk.nabble.com> <21604205.post@talk.nabble.com> <21623043.post@talk.nabble.com> <21625398.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I tested my handler to handle the input from form and invoke a external URL but it works only on my machine. It doesn't work out when others access the jspwiki and tried to invoke url I used 2 methods to invoke URL 1. Desktop d =3D Desktop.getDesktop(); try{ URI u =3D new URI(url); d.browse(u); } 2. cmd =3D "rundll32 url.dll, FileProtocolHandler "+url; Runtime e =3D Runtime.getRuntime(); e.exec(cmd); But in both cases it takes runtime environment. And handler is running on m= y machine which acts as server machine for jspwiki. So it is not able to open browser on other/client machine but when some one tries to access it, browser window get open on my desktop. So now please tell me is there any way to achieve it.(using servlet or jsp) Janne--- please advice if you have any idea or suggestions. Thanks and Regards, Trupti Patil Fischer, Nicola (ORISA Software GmbH) wrote: >=20 > Hi >=20 > You can try the full link on the wikipage just to check if your class was > loaded.=20 >=20 > F.e. >=20 > [{com.ingenta.jspwiki.plugin.js.JSPlugin}] >=20 > Regards, > Nic >=20 > -----Urspr=C3=BCngliche Nachricht----- > Von: TruptiP [mailto:trupti.p27@gmail.com]=20 > Gesendet: Freitag, 23. Januar 2009 15:32 > An: jspwiki-user@incubator.apache.org > Betreff: Re: AW: AW: New handler to handle form input >=20 >=20 > Hi All, >=20 > Now every problem is solved and i m ready with JAR file but when I > followed the step and used it. >=20 > I got following error >=20 > Could not find plugin ExternalServerLink >=20 > I placed jar file in web-inf/lib directory of jspwiki and set search path > in jspwiki.properties file >=20 > as com.trupti.jspwiki.handler.est.ExternalServerLink >=20 > Now please help me if i am missing any step >=20 >=20 > Regards, > trupti >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > TruptiP wrote: >>=20 >> Hi All, >>=20 >> As I already told you i am new to java. >>=20 >> While compiling the java program which i have written as handler i got= =20 >> following type of error. >>=20 >> ExternalServerLink.java:10: package com.ecyrd.jspwiki does not exist=20 >> import com.ecyrd.jspwiki.WikiException; >> ^ >>=20 >>=20 >> I have set path variable correctly. Even I placed jspwiki.jar file=20 >> from jspwiki/web-inf/lib to bin and lib folder of jdk. >>=20 >> Still I get same error. >> My package is >> com.trupti.jspwiki.handler.ExternalServerLink >>=20 >> My programme name is ExternalServerLink.java and class is=20 >> ExternalServerLink >>=20 >> Please tell me if i am missing any step. >>=20 >> Thanks and regards, >> Trupti Patil >>=20 >>=20 >>=20 >> TruptiP wrote: >>>=20 >>> Hi >>>=20 >>> I think I got it. >>> I can use=20 >>> Desktop.browse(URI) >>> OR >>> Runtime.getRuntime().exec("rundll32 url.dll,=20 >>> FileProtocolHandler", "http://www.sun.java.com"); >>>=20 >>> I will try it out tommorrow and let you know the result. >>>=20 >>> Thanks for help. >>>=20 >>> Regards, >>> Trupti >>>=20 >>>=20 >>>=20 >>> TruptiP wrote: >>>>=20 >>>> Hi >>>>=20 >>>> Yes I reached upto that point only. >>>>=20 >>>> I know URL object will create url for me.=20 >>>> But how to open that URL in same page or new page. >>>>=20 >>>> After seraching a lot every where only one method is given i.e. also= =20 >>>> with the help of applet only. >>>>=20 >>>> No where written how to just open a new browser window to show=20 >>>> content of this url.(using java and not applet) >>>>=20 >>>> Anyways thanks for ur help. >>>> If you know about it please let me know. I am working on it from my=20 >>>> side but ur help will give speed to it. >>>>=20 >>>> Thanks and Regards, >>>> Trupti >>>>=20 >>>>=20 >>>>=20 >>>> Fischer, Nicola (ORISA Software GmbH) wrote: >>>>>=20 >>>>> Hi, >>>>>=20 >>>>> Have you had a look into the NewPageHandler.java?=20 >>>>>=20 >>>>> It shows you how to read the params you have definied in the form. >>>>>=20 >>>>> From here, you can start to make a urlCall >>>>> (http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html) >>>>>=20 >>>>> Hope that helps. >>>>>=20 >>>>> Regards, >>>>> Nicola >>>>>=20 >>>>> -----Urspr=C3=BCngliche Nachricht----- >>>>> Von: TruptiP [mailto:trupti.p27@gmail.com] >>>>> Gesendet: Donnerstag, 22. Januar 2009 13:18 >>>>> An: jspwiki-user@incubator.apache.org >>>>> Betreff: Re: AW: New handler to handle form input >>>>>=20 >>>>>=20 >>>>> Hi >>>>>=20 >>>>> I want to transfer the input value in "n" to url as parameter. But=20 >>>>> this feature is not implemented in jspwiki. >>>>> That url is external link and not the jspwiki internal link. >>>>>=20 >>>>> So some how i need to cache the url and input parameter and need to= =20 >>>>> pass to handler and then handler will open a new / same window with= =20 >>>>> this url. >>>>>=20 >>>>> [{FormOpen form=3D'sprform' hide=3D'onsuccess' method=3D'post' >>>>> submit=3D'http://www.someurl.com?}] >>>>> number [{FormInput type=3D'text' name=3D'n'}] [{FormInput type=3D'sub= mit' >>>>> value=3D'Submit, please' name=3D'submit'}] [{FormClose}] >>>>>=20 >>>>>=20 >>>>> Thanks and Regards, >>>>> Trupti Patil >>>>>=20 >>>>>=20 >>>>> Fischer, Nicola (ORISA Software GmbH) wrote: >>>>>>=20 >>>>>> Hi, >>>>>>=20 >>>>>> In this case the NewPageHandler will be your choice. >>>>>>=20 >>>>>> http://www.jspwiki.org/wiki/NewPageHandler >>>>>>=20 >>>>>> Regards, >>>>>> Nicola >>>>>>=20 >>>>>> -----Urspr=C3=BCngliche Nachricht----- >>>>>> Von: TruptiP [mailto:trupti.p27@gmail.com] >>>>>> Gesendet: Mittwoch, 21. Januar 2009 11:09 >>>>>> An: jspwiki-user@incubator.apache.org >>>>>> Betreff: New handler to handle form input >>>>>>=20 >>>>>>=20 >>>>>> Hi All, >>>>>>=20 >>>>>> I want to write a handler which will forward form's input to the=20 >>>>>> external url as parameter value. >>>>>>=20 >>>>>> As I am newbie to java. Any help regarding this will be appreciated. >>>>>>=20 >>>>>> Thanks and Regards, >>>>>> Trupti >>>>>> -- >>>>>> View this message in context: >>>>>> http://www.nabble.com/New-handler-to-handle-form-input-tp21580234p >>>>>> 2158 0234.html Sent from the JspWiki - User mailing list archive=20 >>>>>> at Nabble.com. >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> ____________ >>>>>> Virus checked by G DATA AntiVirus >>>>>> Version: AVF 19.229 dated 21.01.2009 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/New-handler-to-handle-form-input-tp21580234p2 >>>>> 1603044.html Sent from the JspWiki - User mailing list archive at=20 >>>>> Nabble.com. >>>>>=20 >>>>>=20 >>>>>=20 >>>>> ____________ >>>>> Virus checked by G DATA AntiVirus >>>>> Version: AVF 19.229 dated 21.01.2009 >>>>>=20 >>>>>=20 >>>>=20 >>>>=20 >>>=20 >>>=20 >>=20 >>=20 >=20 > -- > View this message in context: > http://www.nabble.com/New-handler-to-handle-form-input-tp21580234p2162539= 8.html > Sent from the JspWiki - User mailing list archive at Nabble.com. >=20 >=20 >=20 > ____________ > Virus checked by G DATA AntiVirus > Version: AVF 19.230 dated 22.01.2009 >=20 >=20 --=20 View this message in context: http://www.nabble.com/New-handler-to-handle-f= orm-input-tp21580234p21702487.html Sent from the JspWiki - User mailing list archive at Nabble.com.