Sorry this is my first post,I add int function to it but it not
<br/>showing in e-mail.I don't know what is the reason.But finally i figure
<br/>out the answer.I did not add projection and so on.Thanks for your
<br/>interest and i need your valuable help in future as well.This is int
<br/>function.
<br/>var map;
<br/>&nbsp;function init() {
<br/>map = new OpenLayers.Map('map_element', {});
<br/>var wms = new OpenLayers.Layer.WMS( 'OpenLayers WMS',
<br/>'<a href="http://localhost:8080/geoserver/sac/wms'" target="_top" rel="nofollow" link="external">http://localhost:8080/geoserver/sac/wms'</a>,
<br/>{layers: 'sac:Luse'}, {} ); m
<br/>ap.addLayer(wms);
<br/>if(!map.getCenter())
<br/>{ map.zoomToMaxExtent(); } }
<br/><br/>On Mon, Apr 23, 2012 at 3:24 AM, Phil Scadden [via OSGeo.org]
<br/>&lt;<a href="/user/SendEmail.jtp?type=node&node=4909102&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<div class='shrinkable-quote'><br/>&gt;
<br/>&gt; Without seeing the init function its hard to comment. However, I would
<br/>&gt; go to geoserver, preview layers, look at it in openlayer format, then
<br/>&gt; right click and do show page source. This will show you a skeleton html
<br/>&gt; plus openlayer coding for viewing that layer. You can use that plus the
<br/>&gt; OL examples page to get an understanding of the code and build from there.
<br/>&gt;
<br/>&gt; Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
<br/>&gt;
<br/>&gt; _______________________________________________
<br/>&gt; Users mailing list
<br/>&gt; [hidden email]
<br/>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br/>&gt;
<br/>&gt;
<br/>&gt; ________________________________
<br/>&gt; If you reply to this email, your message will be added to the discussion below:
<br/>&gt; <a href="http://osgeo-org.1560.n6.nabble.com/WMS-in-Geoserver-not-working-tp4904542p4908405.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.n6.nabble.com/WMS-in-Geoserver-not-working-tp4904542p4908405.html</a><br/>&gt; To unsubscribe from WMS in Geoserver not working, click here.
<br/>&gt; NAML
<br/></div>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/WMS-in-Geoserver-not-working-tp4904542p4909102.html">Re: WMS in Geoserver not working</a><br/>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>