I am not able to understand how can I redirect on the click of some text or 
button a user to a different page.

I went to entire documentation but I was not able to understand it. Like 
revel page say. 

-------put this HTML in index page------

<form action="/App/hello1" method="GET">
<input type="text" name="myName" /><br/>
<input type="submit" value="Say hello!" />
</form>


---- create this HTML as hello.html page ----

{{set . "title" "Home"}}
{{template "header.html" .}}

<h1>Hello {{.myName}}</h1>
<a href="/">Back to form</a>

{{template "footer.html" .}}


-------put this in app.go -------

func (c App) hello1(myName string) revel.Result {
   return c.Render(myName)
}

-----------------------

-----------------------




I tried to use the same code to send the user to another html page. say 
abc.html in app folder. 

How can I do that. Please help me. i don't think it is hard for you but for me 
it took my entire weekend.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to