We should declare prefix URL as global variable
For example :
public final static byte[] prefix = { '/', 'm', 's', 'g' };
this prefix will be called by one or more html pages
Here is example for form with post action
action="msg"
or href URL :
href="msg"
Afterwards, we should add it in SCWS container. Type it in your servlet constructor.
servletContainer.add(this, new ByteString(prefix));
Showing posts with label url. Show all posts
Showing posts with label url. Show all posts
Friday, November 16, 2007
Put your sensitive variable in RAM
// declare variable
byte[] requestParameterBuffer;
// allocate it in RAM , ensure the memory length
requestParameterBuffer = JCSystem.makeTransientByteArray(
(short) (queryString.length() * 2), JCSystem.CLEAR_ON_RESET);
JCSystem reset / clean memoryOptions :
byte[] requestParameterBuffer;
// allocate it in RAM , ensure the memory length
requestParameterBuffer = JCSystem.makeTransientByteArray(
(short) (queryString.length() * 2), JCSystem.CLEAR_ON_RESET);
JCSystem reset / clean memoryOptions :
- JCSystem.CLEAR_ON_DESELECT
- JCSystem.CLEAR_ON_RESET
Subscribe to:
Posts (Atom)