Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I have a jsp file in <WT_HOME>/netmarkets/jsp. Each time I access this JSP on my browser on a new session, it asks for the authentication pop up. Can I disable this pop up and handle the authentication within the code?
The answer is NO. The URL is protected by Apache which needs authentication.
If you place it under <Windchill>/codebase, it does not need authentication.
Do you mean directly under Windchill/codebase? As of now my file is under <WT_HOME>/codebase/netmarket/jsp.
Not with the same URL.
You could, however, introduce an anonymously accessible URL of your own that establishes a current user via its own logic and then forwards the request to the JSP of interest.
How exactly this is done depends on your approach.
You could, for instance, create a subclass of wt.httpgw.filter.AbstractRemoteUserFilter (a supported class in the most recent versions of WC) that derives a user identity from the request in your own custom fashion, specify that as a filter for your own JSP, and then simply forward from that JSP to the JSP of interest.
On the other extreme, you could have a JSP containing its own logic that uses SessionHelper, etc, to set a current user and then forward to original JSP.