My guess is that you are using MapServer 5.x and the book was written
for < 5.x  

If you call your mapfile in mode=map, it will still work, that points to
the html template.  

With 5.0, the variable names used for substitution have changed.  You
will need to edit the hidden variables in your template.  

Take a look at this post for more info.  
http://www.mail-archive.com/[EMAIL PROTECTED]/msg15557.html

David.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Katja
Loeffler
Sent: Wednesday, June 25, 2008 1:45 PM
To: [email protected]
Subject: [mapserver-users] Newby Question - hello world


Hi there,

in the "Beginning Mapserver" book there is an example which should only 
display a box showing "Hello Map"

Well, although I have other examples (not from that book) that do run, I

don't get this one running ... *sigh*

The error I get is
loadWeb(): Unknown identifier. Parsing error near (/var/www/tmp/):(line
1)

I have no clue *awk*.
I googled around but afterwards I still had no clue ...

The mapfile looks like this:

# This is our "Hello World" mapfile
NAME "Hello World"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.0 -1.0 1.0 1.0
WEB
      TEMPLATE "/var/www/mapserver/hello/hello.html"
      IMAGEPATH "/var/www/tmp/"
      IMAGEURL "/tmp/"
END
LAYER
      STATUS default
      TYPE point
      FEATURE
           POINTS  0.00 0.00 END
           TEXT "Hello World"
      END # end feature
      CLASS
           STYLE
                COLOR 255 0 0
           END
           LABEL
                TYPE bitmap
           END
      END
END
END


The hello.html like this:

<html>
<head> <title>MapServer Hello World</title></head>
<body>
     <form method=POST action="/cgi-bin/mapserv">
         <input type="submit" value="Click Me">
         <input type="hidden" name="map"
value="/home/mapdata/hello.map">
         <input type="hidden" name="map_web_imagepath" 
value="/var/www/tmp/">
     </form>
     <IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>


Thanks in advance!
Katja
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to