The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Exposing a Simple Url in Seaside

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Exposing a Simple Url in Seaside Posted: May 27, 2009 11:36 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Exposing a Simple Url in Seaside
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Earlier today I decided that it would be useful to have some simple query access to the Media Search application I posted recently; the following urls will now show useful results:

http://www.cincomsmalltalk.com/MediaSearch/MediaSearch.html?q=cloud

That will do a keyword search (across titles and content) for the audio and video content on our site. This one:

http://www.cincomsmalltalk.com/MediaSearch/MediaSearch.html?tag=cloud

will do a tag search (like clicking on a tag within the app)

As it happens, adding those kinds of public urls for a Web Velocity (Seaside) app is an easy thing. In my component, I added this method:


initialRequest: aRequest
	super initialRequest: aRequest.
	aRequest at: 'q' ifPresent: [:searchString |
		self setupSearchQueryFor: searchString].
	aRequest at: 'tag' ifPresent: [:tagString |
		self setupTagSearchFor: tagString]

And that makes those urls public - which means that you can use them easily in any non-Seaside app - for instance, you can hook up a stock search field using a servlet to hit those urls.

Technorati Tags: ,

Read: Exposing a Simple Url in Seaside

Topic: Don't Panic Previous Topic   Next Topic Topic: Back to Relentless

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use