Struts2.xml: user defined result-type shown as error and code completion for user defined result-type

Hello,
i have a questions regarding struts.xml (Struts2) with user defined result-types.

I have developed a result-type. It needs a filename as parameter.

<result type="type">filename</result>

filename is marked red.

How can i define the directory the files should be looked up (to get rid of the red color) and to enable code completion?

As a start it's enough to define the directory manually. But finally the red color should depend an the result-type and the result-type configuration.

Thanks
Andi

0
2 comments

Hello Andreas,

if these files are located within a webroot, they should highlight/autocomplete fine. If you're using a custom location (e.g. somewhere else in filesystem) - there's no option to configure the location (IMHO this usecase is too specific). Still you can  suppress the highlighting for these <result>s using the inspection's option ("suppress for tag").

Regards,

Yann

0
Avatar
Permanently deleted user

The files are in a subfolder of the webroot.

I will switch to the full path to get the benefit of highlightning and autocompletion. The downside of typing the fullpath is not severe.
Thanks for your answer.

Andi

0

Please sign in to leave a comment.