Read up on query parameters in a URL

On 09 Apr 2009, at 11:48, Rahul wrote:

>
> Hi Geert, after spending my time searching around, I am not able to
> pass the parameter
>
> <td><a href="${v SUBMISSION:QUERY:show/}#${v hotel_id/}">View Hotel</
> a></td>
>
>
> and accessing it through
>
> int id = getParameterInt("hotel_id");
>
> It always shows me 0.
>
> Thanks
>
> On Apr 9, 10:05 am, Geert Bevin <gbe...@uwyn.com> wrote:
>> Hi Rahul,
>>
>> I'm not going to spend time replying to this since it's documented in
>> the User's Guide, the small examples, the full blown example
>> projects, ... Please take some time going through the material on the
>> website and read up on the basics.
>>
>> Best regards,
>>
>> Geert
>>
>> On 09 Apr 2009, at 06:30, Rahul wrote:
>>
>>
>>
>>
>>
>>> I am trying with
>>
>>> <a href="${v SUBMISSION:QUERY:show/}${v hotel_id/}">View Hotel</a>  
>>> for
>>
>>> <a href="show?id=${v hotel_id/}">View Hotel</a>
>>
>>> with doShow function defined, but i am not able to catch the  
>>> hotel_id
>>> in the
>>> function. How can i pass this parameter from the page?
>>
>>> On Apr 9, 8:00 am, Rahul <maverick.rah...@gmail.com> wrote:
>>>> I am fetching records from db and displaying those on the template
>>>> like this:-
>>
>>>> <td><r:v name="name"/></td>
>>>> <td><r:v name="address"/></td>
>>>> <td><r:v name="description"/></td>
>>>> <td><a href="show?id=${v hotel_id/}">View Hotel</a></td>
>>>> <td><a href="edit?id=${v hotel_id/}">Edit Hotel</a></td>
>>>> <td><a href="delete?id=${v hotel_id/}">Delete Hotel</a></td>
>>
>>>> Here i am passing the hotel_id to perform the desired action like
>>>> viewing the hotel for that particular hotel_id or edit or delete.
>>
>>>> I am not getting as to where i need to these actions show, edit or
>>>> delete
>>>> for that matter. Or may be my approach is wrong.
>>
>>>> Please guide me through this.
>>
>> --
>> Geert Bevin
>> Terracotta -http://www.terracotta.org
>> Uwyn "Use what you need" -http://uwyn.com
>> RIFE Java application framework -http://rifers.org
>> Flytecase Band -http://flytecase.be
>> Music and words -http://gbevin.com
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to rife-users@googlegroups.com
To unsubscribe from this group, send email to 
rife-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to