有没有办法在struts2命名空间root上映射动作?(Is there any way to map action on struts2 namespace root?)
我在struts.xml中有一个名称空间
<package name="mobile" namespace="/mobile" extends="mainApp"> <action name="abc" class="x.y.Abc" method="abc"> <result name="input">/blank.html</result> <result name="success">/blank.html</result> </action> </package>
我想使用动作
abc
映射localhost/myApp/mobile/
我不介意
localhost/myApp/mobile/*
用动作abc
映射
有没有办法满足这个要求?I have a namespace in struts.xml
<package name="mobile" namespace="/mobile" extends="mainApp"> <action name="abc" class="x.y.Abc" method="abc"> <result name="input">/blank.html</result> <result name="success">/blank.html</result> </action> </package>
I want to map
localhost/myApp/mobile/
with the actionabc
I don't mind
localhost/myApp/mobile/*
getting mapped with the actionabc
is there any way to meet this requirement?
原文:https://stackoverflow.com/questions/45914361
更新时间:2023-10-14 18:10
最满意答案
标记类有一个
setIcon
方法来更改图像。https://developers.google.com/maps/documentation/javascript/reference#Marker
要在单击链接时更改它,您必须将标记存储在某处以通过链接单击事件访问它。
The marker class has a
setIcon
method to change the image.https://developers.google.com/maps/documentation/javascript/reference#Marker
To change it when you click on a link you will have to store the markers somewhere to access it from the link click event.
相关问答
更多-
由于地图v2已被弃用,您可能对v3地图感兴趣: https : //developers.google.com/maps/documentation/javascript/markers#simple_icons 对于v2地图: http://code.google.com/apis/maps/documentation/overlays.html#Icons_overview 你会有一组逻辑执行所有的“常规”引脚,另一个使用定义的新标记“特殊”引脚。 Since maps v2 is deprecated ...
-
我做了类似的事情,除了我使用悬停。 我在下面改为点击你。 我也在使用jQuery。 无论如何,您在链接上设置了click事件。 该链接有一个名为“record_id”的属性,它对应于您为标记设置的属性,也称为“record_id”。 单击链接后,您将获取ID,然后遍历所有标记,直到找到匹配的标记,然后使用googlemaps api中提供的setIcon方法更改图标。 希望有所帮助。 设置ID: marker = new google.maps.Marker({ record_id: record_ ...
-
标记类有一个setIcon方法来更改图像。 https://developers.google.com/maps/documentation/javascript/reference#Marker 要在单击链接时更改它,您必须将标记存储在某处以通过链接单击事件访问它。 示例: http : //jsfiddle.net/bryan_weaver/ZJf8e/ The marker class has a setIcon method to change the image. https://develope ...
-
邓肯说过:你想要做的是将所有的标记添加到数组中。 在你的点击事件处理程序中,遍历该数组,更新每个标记的图标。 然后最后将图标设置为被点击的标记。 google.maps.event.addListener(marker, 'click', (function (marker, i) { return function () { infowindow.setContent(locations[i][0], locations[i][6]); infowindow.open(map, mar ...
-
谷歌地图标记数组?(google maps marker array?)[2023-06-26]
我不知道我的回答是否帮助你。 首先声明数组,比添加点和添加标记我只是开始一个循环与添加标记功能。 LatLng[] point_new = new LatLng[3]; point_new[0] = new LatLng(24.8926596, 67.0835093); point_new[1] = new LatLng(48.85837,2.294481); point_new[2] = new LatLng(0, 0); for (int ... -
您缺少map: map创建标记时的map: map部分: for (i = 0; i < locations.length; i++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][1], locations[i][2]), icon:'http://s7.postimg.org/wg6bu3jpj/pointer.png', map: map ...
-
谷歌地图标记infowindow(Google maps marker infowindow)[2022-11-03]
你所拥有的是一个闭包问题, 这篇文章简要定义了问题和解决方案 What you are having is a closure problem, This post has a brief definition of the problem and the solution -
如何在谷歌地图android中获得点击标记的图标?(How to get the icon of clicked Marker in google maps android?)[2021-10-24]
截至今天,没有返回点击标记图标的功能。 我希望它会在下一次发布时出现。 As of today , there is no function which returns the icon of clicked marker. I hope it will come in the next releas. -
将一个onmouseover属性添加到div。 让我们说它叫做changeMarker。 function changeMarker(marker) { var icon = new Google.maps.MarkerImage({ url:"http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=1|ffffff|c41200"}); marker.setIcon(icon); } 你的div可能看起来像:使标记全局化 在你更改图标功能时调用setIcon var marker = null; function codeAddress() { var cañada = 'Cañada de Gomez, Argentina'; var altura = document.getElementById('altura').value; var address = document.getElementById('address').value + altura + cañada ; geoco ...
相关文章
更多- struts2 + extjs + json + tree
- There is no Action mapped for namespace / and action name register.
- Struts2 与spring集成问题
- Struts2标签select的使用
- 求教一个struts2页面问题
- 简述STRUTS2 Convention零配置
- Struts2 Push Tag 引发的问题
- 关于struts1.x 和struts2 的问题
- Struts2 架构分析
- Struts2 入门示例
最新问答
更多- 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
- 如何通过引用返回对象?(How is returning an object by reference possible?)
- 矩阵如何存储在内存中?(How are matrices stored in memory?)
- 每个请求的Java新会话?(Java New Session For Each Request?)
- css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
- 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
- xcode语法颜色编码解释?(xcode syntax color coding explained?)
- 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
- 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
- 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
- 西安哪有PLC可控制编程的培训
- 在Entity Framework中选择基类(Select base class in Entity Framework)
- 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
- 电脑二级VF有什么用
- Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
- 金华英语角.
- 手机软件如何制作
- 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
- 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
- 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
- Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
- 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
- python的访问器方法有哪些
- DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
- 在Ruby中对组合进行排序(Sorting a combination in Ruby)
- 网站开发的流程?
- 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
- 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
- 透明度错误IE11(Transparency bug IE11)
- linux的基本操作命令。。。