P
pet0etie
i'm currently making some tests with jsp's
but one thing i don't really know how to solve is this :
suppose i pass a parameter (string) to a certain page and i want to convert
that string into something else
solution : i just make a little function at the top of the jsp-page that
makes the conversion
now ... if i have to make that same conversion on several pages i can write
the same function on every page ...
i can make a java class that looks like this, but that doesn't seems to be
the ideal solution
public class FunctionABC {
public FunctionABC() {
//...
}
public String convertABC(String str) {
if ( str != null ) {
return "";
}
return str.toUpperCase();
}
}
i guess it's more a basic java-thing-question but i don't know how to
implement :|
someone who can help ?
thanks in advance,
pet0etie
but one thing i don't really know how to solve is this :
suppose i pass a parameter (string) to a certain page and i want to convert
that string into something else
solution : i just make a little function at the top of the jsp-page that
makes the conversion
now ... if i have to make that same conversion on several pages i can write
the same function on every page ...
i can make a java class that looks like this, but that doesn't seems to be
the ideal solution
public class FunctionABC {
public FunctionABC() {
//...
}
public String convertABC(String str) {
if ( str != null ) {
return "";
}
return str.toUpperCase();
}
}
i guess it's more a basic java-thing-question but i don't know how to
implement :|
someone who can help ?
thanks in advance,
pet0etie