Problem in web template {Scanned}

Siki Zoltan siki at AGT.BME.HU
Wed Feb 7 14:55:24 EST 2007


Hi,

The template should be a html file in the map file, not a directory.
 TEMPLATE "/ms4w/apps/MyApplic/templates/name_of_your_template.html"

You can test your map file without a template using mode=map in your query 
string or using shp2img command line utility.

Always send your answer to the list too. Anybody can learn from your 
experiences.

bye
Zoltan

On Wed, 7 Feb 2007, Khalid wrote:

> Hi,
>    
>   Thanks for ur reply. I tried .exe as under
>    
>   <form method =POST action = "/cgi-bin/mapserv.exe">
>    
>   and it showed me dialog window asking either to run or save mapserv.exe
>    
>   Any thoughts....................
> 
> Saif
> 
> Siki Zoltan <siki at agt.bme.hu> wrote:
>   Hi,
> 
> Try to add .exe to the action parameter of the form.
>   
> 
> bye
> Zoltan
> 
> On Tue, 6 Feb 2007, Saif wrote:
> 
> > Hi,
> > 
> > I am a newbie in mapserver and have a problem in using web template
> > 
> > 
> > 
> > 
> > 
> > 
> >  [input] 
> > 
> >  [input] > = "/ms4w/apps/MyApplic/htdocs/WSLT.map">
> >  [input] > 5571028.735107 777118.073090 5711137.519287" name=mapext>
> >  [input] 
> >  [input] 
> >  [input] 
> > 
> > 
> > 
> > 
> > 
> > 
> > When I run the web page and tried "Click to Intialize", it showed me
> > 
> > "No page can not be displayed"
> > 
> > and in address bar I got this line
> > 
> > C:\cgi-bin\mapserv
> > 
> > When I tried mapserv.exe instead mapserv in action = "/cgi-bin/mapserv.exe", 
> > it asked me to save or run the mapserv.exe. I have checked ms4w folders. I 
> > have read and write permissons. Environemnt variables are ok. When I tried to 
> > check mapserv at command prompt, it gave me 
> > 
> > The script can only be used to decode from results and should be initiated as 
> > a CGI process via a httpd server.
> > 
> > I tried mapserv -v as well and it showed me mapserv version 4.10.0 
> > OUTPUT=GIF OUTPUT=GIF ....................................
> > 
> > in map file I have also described web template
> > 
> > #####################################################
> > 
> > # web Object
> > #
> > WEB
> > TEMPLATE "/ms4w/apps/MyApplic/templates/"
> > IMAGEPATH "/ms4w/apps/MyApplic/images/"
> > IMAGEURL "/tmp/"
> > LOG "/tmp/mapserver.log"
> > END
> > 
> > #####################################################
> > 
> > I am wondering if anybody can help me with this problem.
> > 
> > Thanks
> > 
> 
> 
> 
>  
> ---------------------------------
> Never Miss an Email
> Stay connected with Yahoo! Mail on your mobile. Get started!



More information about the mapserver-users mailing list