java - Access to one portlet from another -
i'm trying write portlet, in want create/edit .properties file inside other portlet (i want manipulate properties file responsible translates other portlet). want in following way:
properties prop = new properties(); prop.setproperty("...", "..."); string pathtoohterportletpropertiesfile = ... prop.store(pathtoohterportletpropertiesfile);
after run there following errors:
severe: servlet.service() servlet seap servlet threw exception java.io.filenotfoundexception: (...my path...)\tomcat- 7.0.27\webapps (access denied) @ java.io.fileoutputstream.open(native method) @ java.io.fileoutputstream.<init>(unknown source) @ java.io.fileoutputstream.<init>(unknown source) @ main.translator.processaction(translator.java:49)
does know solve problem?
regards
i suggest using portlet events solve instead. have first portlet send event portlet owns properties file. on event, pass along information other portlet need make update. have other portlet update own properties.
Comments
Post a Comment