[Catalyst] Pushing data to Catalyst powered web page

Supra, Morne msupra at fnb.co.za
Fri Sep 12 13:15:23 BST 2008


Good afternoon all

I am busy with a project where I need to read an RFID tag, get the data
associated with the tag and then push the data to a web page for a
security person to monitor.

I can successfully read the tag by using LogicAlloy's ALE server. It
then calls my Catalyst application at http://localhost/ale/notifier :

sub notifier : Private {
	my ( $self, $c ) = @_;
	
	#$c->stash->{template} = 'notifier.tt2';
	$c->stash->{tagdata} = $c->request->params->{tagdata};
	open (TagData, '>C:\Eclipse Projects\Asset
Tracker\AssetTracker\lib\AssetTracker\tagdata.txt');
	print TagData $c->request->params->{tagdata};
	close TagData;
	
}

As you can see I do not get the associated tag data yet, I am just
trying to display the tag data received from the ALE server.

I can see that the data is coming through correctly by monitoring the
console debug and checking the tagdata.txt file.

The problem that I have is that I have no idea how to push the data to a
web page instead of pulling.

I have tried using catalyst redirect, forward and subrequest with no
luck.

I am not a hard core developer, so any assistance will be greatly
appreciated.

Regards
Morne Supra 

To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: 
https://www.fnb.co.za/disclaimer.html 

If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclaimer at fnb.co.za and we will send you a copy of the Disclaimer.



More information about the Catalyst mailing list