StringValue game = RequestCycle.get().getRequest().getRequestParameters().getParameterValue("game");
there is also a several paramters you can retrieve from URL like :
- getClientUrl()
- getOriginalUrl()
- getUrl()
StringValue game = RequestCycle.get().getRequest().getRequestParameters().getParameterValue("game");
@Override
protected void onClick() {
PageParameters pageParameters = new PageParameters();
pageParameters.add("game", "Tombe Raider");
setResponsePage(game.class, pageParameters);
}
String gameValue = pageParameters.get("game").toString();
netstat -ln | grep ':8080 ' | grep 'LISTEN'
fuser -k 8080/tcp fuser -k 8443/tcp fuser -k 8005/tcp fuser -k 8009/tcp
.gitignore to ignore it
git rm --cached filenamenow they do not show up as "changed" but still show as untracked files in git status , so add some exclude rules into .git/info/exclude file in your repository
git rm --cached *.pydevproject git rm --cached *.project git rm --cached *.metadata git rm --cached */bin/** git rm --cached */tmp/** git rm --cached *.tmp git rm --cached *.bak git rm --cached *.swp git rm --cached *~.nib git rm --cached *local.properties git rm --cached *.classpath git rm --cached *.settings/* git rm --cached *.loadpath git rm --cached *org.eclipse.wst.common.component git rm --cached *org.eclipse.wst.common.project.facet.core.xml git rm --cached *.properties git rm --cached *.orig git rm --cached *.classpath git rm --cached *.xml git rm --cached *.jar git rm --cached *.class
.git/info/exclude file in your repository
# git ls-files --others --exclude-from=.git/info/exclude # Lines that start with '#' are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~ #Eclipse# ################### *.pydevproject *.project *.metadata */bin/* */bin/ */tmp/** *.tmp *.bak *.swp *~.nib *local.properties *.classpath *.settings/* *.settings/ *.loadpath *org.eclipse.wst.common.component *org.eclipse.wst.common.project.facet.core.xml *.properties *.orig *.classpath *.xml # Package Files # ################## *.jar *.war *.ear # Compiled source # ################### *.com *.class *.dll *.exe *.o *.so # Packages # ############ # it's better to unpack these files and commit the raw source # git has its own built in compression methods *.7z *.dmg *.gz *.iso *.jar *.rar *.tar *.zip # Logs and databases # ###################### *.log *.sqlite # OS generated files # ###################### .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes Icon? ehthumbs.db Thumbs.db
sudo apt-get install linux-headers-$(uname -r)
String parameterValue = RequestCycle.get().getRequest().getParameter(parameterName);
// GET request StringValue parameterValue = RequestCycle.get().getRequest().getQueryParameters().getParameterValue(parameterName); // POST request StringValue parameterValue = RequestCycle.get().getRequest().getPostParameters().getParameterValue(parameterName);
StringValue parameterValue = RequestCycle.get().getRequest().getRequestParameters().getParameterValue(parameterName);