[Servlet and JSP] View Syntax of an encoded String

0 votes
asked Sep 19, 2013 in Wanted features by Luc Trudeau (360 points)
Hi again,
 
I was wondering if it is possible to show the syntax used to generate a diagram. What I want is, given the encoded string, I want to see index.jsp. So i can see the syntax used.
 
Example :
 
index.jsp?encoded=imfAJKofj0O0
 
This would show me the diagram and the syntax. In this case ":Ready;"
 
 
Looking at the code change is not that hard. The jsp uses getAttribute. And I'm asking for getParameter
 
getParameter() returns http request parameters. Those passed from the client to the server. For example http://site.com/servlet?parameter=1. Can only return String
 
getAttribute() is for server-side usage only - you fill the request with attributes that you can use within the same request. For example - you set an attribute in a servlet, and read it from a JSP. Can be used for any object, not just string.
 
It might be easier to implement the getParameter in the Servlet in the doGet() method.

1 Answer

+2 votes
answered Sep 19, 2013 by msinclair (520 points)
selected Sep 20, 2013 by Luc Trudeau
 
Best answer
Hello Luc,

This feature was recently implemented, you will find it available in the next few days.

The syntax is :

/plantuml/form?url=imfAJKofj0O0
commented Sep 20, 2013 by plantuml (295,000 points)
This is online now.
You can try http://plantuml.com/plantuml/form?url=imfAJKofj0O0
Thanks Maxime for the patch!
...