Hi All,
As I already told you i am new to java.
While compiling the java program which i have written as handler i got
following type of error.
ExternalServerLink.java:10: package com.ecyrd.jspwiki does not exist
import com.ecyrd.jspwiki.WikiException;
^
I have set path variable correctly. Even I placed jspwiki.jar file from
jspwiki/web-inf/lib to bin and lib folder of jdk.
Still I get same error.
My package is
com.trupti.jspwiki.handler.ExternalServerLink
My programme name is ExternalServerLink.java and class is ExternalServerLink
Please tell me if i am missing any step.
Thanks and regards,
Trupti Patil
TruptiP wrote:
>
> Hi
>
> I think I got it.
> I can use
> Desktop.browse(URI)
> OR
> Runtime.getRuntime().exec("rundll32 url.dll,
> FileProtocolHandler", "http://www.sun.java.com");
>
> I will try it out tommorrow and let you know the result.
>
> Thanks for help.
>
> Regards,
> Trupti
>
>
>
> TruptiP wrote:
>>
>> Hi
>>
>> Yes I reached upto that point only.
>>
>> I know URL object will create url for me.
>> But how to open that URL in same page or new page.
>>
>> After seraching a lot every where only one method is given i.e. also with
>> the help of applet only.
>>
>> No where written how to just open a new browser window to show content of
>> this url.(using java and not applet)
>>
>> Anyways thanks for ur help.
>> If you know about it please let me know. I am working on it from my side
>> but ur help will give speed to it.
>>
>> Thanks and Regards,
>> Trupti
>>
>>
>>
>> Fischer, Nicola (ORISA Software GmbH) wrote:
>>>
>>> Hi,
>>>
>>> Have you had a look into the NewPageHandler.java?
>>>
>>> It shows you how to read the params you have definied in the form.
>>>
>>> From here, you can start to make a urlCall
>>> (http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html)
>>>
>>> Hope that helps.
>>>
>>> Regards,
>>> Nicola
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: TruptiP [mailto:[email protected]]
>>> Gesendet: Donnerstag, 22. Januar 2009 13:18
>>> An: [email protected]
>>> Betreff: Re: AW: New handler to handle form input
>>>
>>>
>>> Hi
>>>
>>> I want to transfer the input value in "n" to url as parameter. But this
>>> feature is not implemented in jspwiki.
>>> That url is external link and not the jspwiki internal link.
>>>
>>> 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.
>>>
>>> [{FormOpen form='sprform' hide='onsuccess' method='post'
>>> submit='http://www.someurl.com?}]
>>> number [{FormInput type='text' name='n'}] [{FormInput type='submit'
>>> value='Submit, please' name='submit'}] [{FormClose}]
>>>
>>>
>>> Thanks and Regards,
>>> Trupti Patil
>>>
>>>
>>> Fischer, Nicola (ORISA Software GmbH) wrote:
>>>>
>>>> Hi,
>>>>
>>>> In this case the NewPageHandler will be your choice.
>>>>
>>>> http://www.jspwiki.org/wiki/NewPageHandler
>>>>
>>>> Regards,
>>>> Nicola
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: TruptiP [mailto:[email protected]]
>>>> Gesendet: Mittwoch, 21. Januar 2009 11:09
>>>> An: [email protected]
>>>> Betreff: New handler to handle form input
>>>>
>>>>
>>>> Hi All,
>>>>
>>>> I want to write a handler which will forward form's input to the
>>>> external url as parameter value.
>>>>
>>>> As I am newbie to java. Any help regarding this will be appreciated.
>>>>
>>>> Thanks and Regards,
>>>> Trupti
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/New-handler-to-handle-form-input-tp21580234p2158
>>>> 0234.html Sent from the JspWiki - User mailing list archive at
>>>> Nabble.com.
>>>>
>>>>
>>>>
>>>> ____________
>>>> Virus checked by G DATA AntiVirus
>>>> Version: AVF 19.229 dated 21.01.2009
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/New-handler-to-handle-form-input-tp21580234p21603044.html
>>> Sent from the JspWiki - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> ____________
>>> Virus checked by G DATA AntiVirus
>>> Version: AVF 19.229 dated 21.01.2009
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/New-handler-to-handle-form-input-tp21580234p21623043.html
Sent from the JspWiki - User mailing list archive at Nabble.com.