我需要构建一个GWT应用程序,该应用程序将由具有特定URL参数的外部应用程序调用.
例如:
http://www.somehost.com/com.app.client.Order.html?orderId=99999.
如何捕获GWT应用程序中的orderId参数?
我想为我的公司员工和合作伙伴创建一个私人定制的社交网络,以便他们可以协作,交换消息,分享经验(活动,书籍参考等)并分组到社区.有没有人知道开始开发这个的好Java框架?
我会寻找包含基本组件的内容,例如配置文件,朋友列表,社区,事件,消息等.可以扩展每个组件以实现特定于域的功能.如果它也支持OpenSocial会很好.
当我尝试在我的GWT/App Engine应用程序的本地JDO数据存储上执行查询时,我随机获取了org.datanucleus.exceptions.ClassNotPersistableException.这只发生在我在托管模式下运行应用程序时.当我将其部署到Google App Engine时,一切都很完美.
堆栈跟踪:
org.datanucleus.exceptions.ClassNotPersistableException: The class "com.wayd.server.beans.WinePost" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found.
at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:305)
at org.datanucleus.ObjectManagerImpl.getExtent(ObjectManagerImpl.java:3700)
at org.datanucleus.jdo.JDOPersistenceManager.getExtent(JDOPersistenceManager.java:1515)
at com.wayd.server.WinePostServiceImpl.getPosts(WinePostServiceImpl.java:212)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
... 25 more
Caused by: org.datanucleus.exceptions.ClassNotPersistableException: The class "com.wayd.server.beans.WinePost" is not persistable. …Run Code Online (Sandbox Code Playgroud) 我们有一个Java应用程序,在数据库(Oracle)上有许多配置表.我们希望有基于Web的GUI来设置这些表,我们目前通过SQL查询更新这些表.为数据库的子集开发CRUD的最简单方法是什么?这样做有没有基于Java的框架?
我有一个简单的XML,有两个级别(Header和Line)标签,例如:
<?xml version="1.0"?>
<Header>
<line>Line 1</line>
<line>Line 2</line>
<line>Line 3</line>
<line>Line 4</line>
<line>Line 5</line>
<line>Line 6</line>
<line>Line 7</line>
<line>Line 8</line>
<line>Line 9</line>
</Header>
Run Code Online (Sandbox Code Playgroud)
我需要在X组(例如X = 3)行上对行进行分组,以便我的输出如下:
<?xml version="1.0"?>
<Header>
<set>
<line>Line 1</line>
<line>Line 2</line>
<line>Line 3</line>
</set>
<set>
<line>Line 4</line>
<line>Line 5</line>
<line>Line 6</line>
</set>
<set>
<line>Line 7</line>
<line>Line 8</line>
<line>Line 9</line>
</set>
</Header>
Run Code Online (Sandbox Code Playgroud)
如何编写可以进行此类转换的XSLT?
谢谢!
Ø