cancel
Showing results for 
Search instead for 
Did you mean: 

how to access custom attributes in .jsp page

siriyadav0902
Explorer
0 Kudos

Hi,

how to access MII Custom attributes in .jsp page.

Regards,

Srisailam Yadav

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186805
Participant
0 Kudos

Hello Srisailam,

Use below mentioned points to access custom attributes in .jsp page.

1) You may need to use .irpt file to set required custom attributes

2) either you use a form with FORM ACTION "Submit" on irpt or <href src=""> tag to set JSP file which is to be called like below ( i did with FORM)

<form  method="POST"  enctype="multipart/form-data" action="uploadFile.jsp?pkey={PKEY}&pname={PNAME}" accept-charset="iso-8859-1" onsubmit="return validate();">

</form>

or can use in IRPT

<a><href src="uploadFile.jsp?pkey={PKEY}&pname={PNAME}" > </a>  (like this, so that we can call src)


3) once you submit or click, attributes values will be passed to JSP Page


4) At JSP page , you need to write the below code to get the value


Stringproject_key=request.getParameter("pkey");

String projectName=request.getParameter("pname");



where pkey and pname is the URL Param defined .


This way it should work