# User tagging from Java Servlet page

**URL:** <https://community.dynatrace.com/t/user-tagging-from-java-servlet-page/14923>\
**Category:** Real User Monitoring\
**Tags:** user-sessions\
**Created:** [August 24, 2018, 6:56am UTC](https://community.dynatrace.com/t/user-tagging-from-java-servlet-page/14923 "2018-08-24T06:56:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginnie\_wong](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ginnie_wong/32/29963_2.png) [@ginnie\_wong](https://community.dynatrace.com/u/ginnie_wong)\
**Post date:** [August 24, 2018, 6:56am UTC](https://community.dynatrace.com/t/user-tagging-from-java-servlet-page/14923/1 "2018-08-24T06:56:31Z")

</div>

Hi all,

I would like to create user tags that captures username values from a Java servlet based login page.

From what I understand, the options we currently have are user tagging via CSS selector, JavaScript variable, metadata, and cookie attributes. However, for the web application we are monitoring, one of their services uses a pop up Java window to perform login. This specific service would continue to run on the Java window after login and there will be no communication between the html landing page with this Java window.

Can we still capture value for user tagging? Would user tagging with metadata or cookie work?

Is that possible that we can use JavaScript API in this situation? If yes, how?

Kindly advice.

Thanks,

Ginnie

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [March 12, 2020, 8:23pm UTC](https://community.dynatrace.com/t/user-tagging-from-java-servlet-page/14923/2 "2020-03-12T20:23:18Z")

</div>

you can create a request attribute as well from the purepaths and the services that are monitored then back link the tagging to hit that new request attribute you created. and example of this would be if you want to tag users with their IPs. The possibilities are endless. You you already tried the options with the SS selector, JavaScript variable, metadata, and cookie attributes, i would check out the request attributes.
