New to Restlet.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

New to Restlet.

Gan123
Hi,

      i want to create a simple web application , which takes values from html form and stores them in database.

RESTlet allows this kind of pages? what is the best way to do so using RESTlet?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: New to Restlet.

Justin Stanczak
On this page, see the "* Handle POST requests: create a new item." part, that should help. As for the database, just start it with the server and use thread safe call to get connection.

http://www.restlet.org/documentation/1.1/firstResource




On Sat, Nov 8, 2008 at 4:10 AM, Gan123 <[hidden email]> wrote:

Hi,

     i want to create a simple web application , which takes values from
html form and stores them in database.

RESTlet allows this kind of pages? what is the best way to do so using
RESTlet?
--
View this message in context: http://n2.nabble.com/New-to-Restlet.-tp1473125p1473125.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: New to Restlet.

Gan123
here.... the object is created in the Client program. what i am looking for is from a html / jsp form i want to post the data to here... how could i do this?

On Sat, Nov 8, 2008 at 3:38 PM, Justin Stanczak (via Nabble) <[hidden email]> wrote:
On this page, see the "* Handle POST requests: create a new item." part, that should help. As for the database, just start it with the server and use thread safe call to get connection.

http://www.restlet.org/documentation/1.1/firstResource




On Sat, Nov 8, 2008 at 4:10 AM, Gan123 <narayanasgs1@...> wrote:

Hi,

     i want to create a simple web application , which takes values from
html form and stores them in database.

RESTlet allows this kind of pages? what is the best way to do so using
RESTlet?
--
View this message in context: http://n2.nabble.com/New-to-Restlet.-tp1473125p1473125.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.





View message @ http://n2.nabble.com/New-to-Restlet.-tp1473125p1473224.html
To start a new topic under Restlet Discuss, email [hidden email]
To unsubscribe from Restlet Discuss, click here.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: New to Restlet.

Gan123
In reply to this post by Justin Stanczak
Hi,

    can any one please tell me how i can invoke a method of Restlet from a JSP? my requirement is, i want to pass some values from a HTML Form to a restlet resource? can any one give few details of this...

Thanks in advance.

On Sat, Nov 8, 2008 at 4:00 PM, Narayana S <[hidden email]> wrote:
here.... the object is created in the Client program. what i am looking for is from a html / jsp form i want to post the data to here... how could i do this?


On Sat, Nov 8, 2008 at 3:38 PM, Justin Stanczak (via Nabble) <[hidden email]> wrote:
On this page, see the "* Handle POST requests: create a new item." part, that should help. As for the database, just start it with the server and use thread safe call to get connection.

http://www.restlet.org/documentation/1.1/firstResource




On Sat, Nov 8, 2008 at 4:10 AM, Gan123 <narayanasgs1@...> wrote:

Hi,

     i want to create a simple web application , which takes values from
html form and stores them in database.

RESTlet allows this kind of pages? what is the best way to do so using
RESTlet?
--
View this message in context: http://n2.nabble.com/New-to-Restlet.-tp1473125p1473125.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.





View message @ http://n2.nabble.com/New-to-Restlet.-tp1473125p1473224.html
To start a new topic under Restlet Discuss, email [hidden email]
To unsubscribe from Restlet Discuss, click here.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: New to Restlet.

Thierry Boileau
Hello,

If you want to pass data from an HTML page, you can POST a request via a standard web form to the URI of the resource. As an illustration, and as Justin
previously said, have a look at this http://www.restlet.org/documentation/1.1/firstResource#part03, and more pecisely at the implementation of the "acceptRepresentation" method.
Il you want to invoke PUT or DELETE methods, just add the following to the query part of the resource's URI: "method=put" or
"method=delete". You can find more details here  http://www.restlet.org/documentation/1.1/faq#19.

Best regards,
Thierry Boileau
--
Restlet ~ Core developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



Hi,

    can any one please tell me how i can invoke a method of Restlet from a JSP? my requirement is, i want to pass some values from a HTML Form to a restlet resource? can any one give few details of this...

Thanks in advance.

On Sat, Nov 8, 2008 at 4:00 PM, Narayana S <narayanasgs1@...> wrote:
here.... the object is created in the Client program. what i am looking for is from a html / jsp form i want to post the data to here... how could i do this?


On Sat, Nov 8, 2008 at 3:38 PM, Justin Stanczak (via Nabble) <ml-user%2B123403-215247559@...> wrote:
On this page, see the "* Handle POST requests: create a new item." part, that should help. As for the database, just start it with the server and use thread safe call to get connection.

http://www.restlet.org/documentation/1.1/firstResource




On Sat, Nov 8, 2008 at 4:10 AM, Gan123 <narayanasgs1@...> wrote:

Hi,

     i want to create a simple web application , which takes values from
html form and stores them in database.

RESTlet allows this kind of pages? what is the best way to do so using
RESTlet?
--
View this message in context: http://n2.nabble.com/New-to-Restlet.-tp1473125p1473125.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.






View this message in context: Re: New to Restlet.
Sent from the Restlet Discuss mailing list archive at Nabble.com.
Loading...