maven jetspeed:hotdeploy
Hi every one, i am newbie with jetspeed , i changed my configuration file and i used my.properties Both \rep and \org are in my../myapp/WEB-INF/classes folder Under the \rep there are \modules , \om and \portal folders Under \modules there is \action folder. I could'nt compile my project. My java files action are located in the \action folder. i used maven jetspeed:hotdeploy to compile into my project. I got the following errors: XXX java class does not exist (where XXX is the java class name),.. the .jar file are in the lib directory though ! am i missing something ? should i modify the maven.xml or other ? thanks for your help numa - Post your free ad now! Yahoo! Canada Personals
Re: userbrowser portlet not working completely
Le 27 mai 04, à 23:58, Archana Turaga a écrit : Hi, I logged in as admin/jetspeed. Went to the "Admin" tab and added the Userbrowser to the list of menus there. When i click on the "Roles", "Groups" or any of the links the resulting forms never show up. When i navigate to the security tab and click the same links in the user browser there they all seem to work fine. I opened the psml file and saw that all the target panes were declared there with "menustate" value set to "closed". When we are using the customizer to add a portlet how can we make sure that these target panes are added with the menustate set to closed? The default customizer does not know how to handle this automatically. I would appreciate any response with regard to this query. I'm stuck (badly stuck) since we have a lot of portlets with links to other portlets and we want to use the customizer to add them. How can we accomplish the specified requirement in the current jetspeed framework? I'm not sure exactly what you're trying to implement but there's probably a way to do it :) Would you care to elaborate on your functional and layout requirements ? -- Raphaël Luta - [EMAIL PROTECTED] Apache Jetspeed - Enterprise Portal in Java http://portals.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic Uri does not work while manipulating multiple psmls
Le 27 mai 04, à 15:10, Archana Turaga a écrit : Hi, I have two psml files default.psml (the one that comes up by default when the user logs in) and infoview.psml (navigated to using jetspeed:forward from one of the portlets in default.psml). I have some portlets declared in infoview.psml that use setTemplate in their action classes to navigate to another jsp. As a sample there is the following href link in one of our jsps: s Have you looked at the generated link in your HTML markup ? Is it well formed ? jetspeed:dynamicUri may contain it's own query parameters in which case yours will never be used... The above link would basically invoke a doPortview method in the action class declared for this jsp. The problem that i see here is that when i click on this link it takes me right back to the home page (default.psml). When i do a system.out in the java action class it is never executed. It almost seems like it needs to be told that it belongs to infoview.psml. If this link is not used in the inforview page, then yes you need to explicitely set it in a page parameter or better use Also if there are submit buttons whose action is defined as dynamicUri those also do not seem to work. Does anybody know what is going on here? How does dynamicUri tag work in jsp? You probably try to activate a portlet from a different PSML page. By default Jetspeed only looks for portlets in the currently loaded page. -- Raphaël Luta - [EMAIL PROTECTED] Apache Jetspeed - Enterprise Portal in Java http://portals.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: non-text in JSP(mixed content type in portlet)
Le 21 mai 04, à 19:10, Sihong Fan a écrit : I want hide(security reason) a group of static PDF in jetspeed. So I read and write the PDF in jsp. This jsp page can read and write jsp out side jetspeed. But after I put it into jetspeed. It give me 'getWriter() has already been called for this response ' error. Does any one know how to solve the problem? Here is my jsp <%@ page import="java.io.*" %> <%@ page import="java.net.*" %> <% OutputStream o = response.getOutputStream(); response.setContentType("application/pdf"); File f = new File("pdf/test2.pdf"); InputStream is = f.toURL().openStream(); byte[] buf = new byte[32 * 1024]; int nRead = 0; while( (nRead=is.read(buf)) != -1 ) { o.write(buf, 0, nRead); } %> You can't mix 2 content-types in a single HTTP response. Your portlet needs to output a valid HTML markup that the browser will then execute to to request the PDF. portlet sends: document.location.href="http://myportal/jetspeed/portal/layout/raw.jsp/ template/sendPDF.jsp" and put your sendPDF.jsp in webapp/WEB-INF/templates/jsp/screens/ you'll also need a webapp/WEB-INF/templates/jsp/layouts/raw.jsp: <% String screenJsp = (String)request.getAttribute("screenJsp"); %> -- Raphaël Luta - [EMAIL PROTECTED] Apache Jetspeed - Enterprise Portal in Java http://portals.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Programmatically Requesting a Jetspeed Page
Le 25 mai 04, à 15:55, Jason Shindler a écrit : Hello, I wish to email the contents of a page from inside of my Jetspeed portlet. The page requires authentication, so I'm passing the current session's JSESSIONID as a cookie so my program can be authenticated. For some reason this is not working: The code requests the page, but returns a login screen instead of the page I want. I believe it is somehow ignoring the cookie, but can't put my finger on why. Any ideas? I'm not sure exactly how you have constructed your email module but I would strongly advise you *against* using sub-HTTP connections to generate your mail messages. Since you seem ti be able to rely on the user session, your code is probably called during a user request, in which case Jetspeed will have populated the RunData object with all the necessary context. Then define a custom velocity template for your mail and in this template use $jetspeed.getPane(pagename). It should work but you will want to save the Profile stored in rundata before rendering the velocity template and restore it after because $jetspeed.getPane() will set the page globally for the request. Make sure to take a look at src/java/org/apache/jetspeed/util/template/JetspeedTool.java webapp/WEB-INF/templates/vm/screens/html/Home.vm to have a better idea of what you can do with this JetspeedTool (viewed as $jetspeed in Velocity templates) -- Raphaël Luta - [EMAIL PROTECTED] Apache Jetspeed - Enterprise Portal in Java http://portals.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]