Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 8191 invoked from network); 23 Jan 2009 14:32:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2009 14:32:14 -0000 Received: (qmail 1810 invoked by uid 500); 23 Jan 2009 14:32:14 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 1799 invoked by uid 500); 23 Jan 2009 14:32:14 -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 1788 invoked by uid 99); 23 Jan 2009 14:32:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 06:32:13 -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; Fri, 23 Jan 2009 14:32:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LQN4Q-0006cU-Ca for jspwiki-user@incubator.apache.org; Fri, 23 Jan 2009 06:31:42 -0800 Message-ID: <21625398.post@talk.nabble.com> Date: Fri, 23 Jan 2009 06:31:42 -0800 (PST) From: TruptiP To: jspwiki-user@incubator.apache.org Subject: Re: AW: AW: New handler to handle form input In-Reply-To: <21623043.post@talk.nabble.com> 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> X-Virus-Checked: Checked by ClamAV on apache.org Hi All, Now every problem is solved and i m ready with JAR file but when I followed the step and used it. I got following error Could not find plugin ExternalServerLink I placed jar file in web-inf/lib directory of jspwiki and set search path in jspwiki.properties file as com.trupti.jspwiki.handler.est.ExternalServerLink Now please help me if i am missing any step Regards, trupti 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 > following type of error. >=20 > ExternalServerLink.java:10: package com.ecyrd.jspwiki does not exist > import com.ecyrd.jspwiki.WikiException; > ^ >=20 >=20 > I have set path variable correctly. Even I placed jspwiki.jar file 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 > 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 >>=20 >> I think I got it. >> I can use=20 >> Desktop.browse(URI) >> OR >> Runtime.getRuntime().exec("rundll32 url.dll, >> 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 >>> with the help of applet only. >>>=20 >>> No where written how to just open a new browser window to show 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 sid= e >>> 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]=20 >>>> 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 >>>>=20 >>>> I want to transfer the input value in "n" to url as parameter. But thi= s >>>> 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 >>>> pass to handler and then handler will open a new / same window with >>>> 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'subm= it' >>>> 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-tp21580234p215= 8 >>>>> 0234.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 >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/New-handler-to-handle-form-input-tp21580234p2160= 3044.html >>>> Sent from the JspWiki - User mailing list archive at 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-f= orm-input-tp21580234p21625398.html Sent from the JspWiki - User mailing list archive at Nabble.com.