This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.google.protobuf; | |
| import com.google.protobuf.Descriptors.EnumDescriptor; | |
| import com.google.protobuf.Descriptors.EnumValueDescriptor; | |
| /** | |
| * Interface of useful methods added to all enums generated by the protocol | |
| * compiler. | |
| */ | |
| 00040 public interface ProtocolMessageEnum { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I'm trying to use a Java project in GWT but I have had some problems because | |
| I can't compile the GWT project. | |
| I have done this: | |
| 1. Make a xxx.gwt.xml in the java project. | |
| 2. Add a external JAR (java project) in the java build path of the GWT | |
| project. In Projects and libraries tabs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="box"> | |
| <div class="box-bar groups"> | |
| <div class="box-corner"></div> | |
| <div class="box-bar-text"> | |
| <div class="edit"><a href="#" class="l_choosefavorites">prefs</a></div> | |
| <span class="title"><a href="/groups">Groups</a></span> | |
| </div> | |
| </div> | |
| <div class="subbar groups" style="display:none"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp | |
| mvn -Dwtpversion=2.0 compile eclipse:eclipse | |
| mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=myMultiProjectGroupId -DartifactId=myMultiProjectArtifactId -DpackageName= -Dversion=1.0 | |
| mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=myMultiProjectGroupId -DartifactId=myMultiProjectArtifactId -DpackageName= -Dversion=1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% | |
| Enumeration en = request.getParameterNames(); | |
| String str = ""; | |
| while(en.hasMoreElements()){ | |
| String paramName = (String)en.nextElement(); | |
| String paramValue = request.getParameter(paramName); | |
| str = str + "&" + paramName + "=" + URLEncoder.encode(paramValue); | |
| } | |
| if (str.length()>0) | |
| str = str.substring(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.kodejava.example.servlet; | |
| import java.io.IOException; | |
| import javax.servlet.Servlet; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.http.HttpServlet; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Source:http://www.exampledepot.com/egs/javax.servlet/GetReqUrl.html | |
| // http://hostname.com/mywebapp/servlet/MyServlet/a/b;c=123?d=789 | |
| // The most convenient method for reconstructing the original URL is to use | |
| // ServletRequest.getRequestURL(), which returns all but the query string. Adding the | |
| // query string reconstructs an equivalent of the original requesting URL: | |
| // http://hostname.com/mywebapp/servlet/MyServlet/a/b;c=123?d=789 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static final long serialVersionUID = 1L; | |
| Logger logger = Logger.getLogger(MakeAsyncCallTestServlet.class.getName()); | |
| @Override | |
| protected void service(HttpServletRequest request, HttpServletResponse response) | |
| throws ServletException, IOException { | |
| Delegate<Environment> base = ApiProxy.getDelegate(); | |
| ApiProxy.setDelegate(new MyDelegate(base)); | |
| DatastoreService svc = DatastoreServiceFactory.getDatastoreService(); | |
| KeyRange range = svc.allocateIds("testdata", 100); | |
| long b4 = System.currentTimeMillis(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package testlib; | |
| import java.io.IOException; | |
| import java.util.concurrent.Future; | |
| import java.util.logging.Logger; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.http.HttpServlet; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package testlib; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.concurrent.Future; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.http.HttpServlet; |