Hi @rleir
The import is just example of my own class and how to call the method from JSP page.
You can use any classes what you need from the Windchill.
My class contains my own methods that do something.
If you call the ODATA from JSP you always need to authenticate even though the user session is logged in.
The OData RestAPI are usually used outside the Windchill and it is designed for it. If you don't want to reauthenticate you need to use some SSO method same as from thingworx.
PS: you can not retrieve a password from the user. It is not possible because it would be a security black hole.
You can use universal user to authenticate for the Odata call. so you would have static user and psw that can be used from your own config. ...
PetrH