RE: ***SPAM*** Simple Action in jsp (full code in mail)
Well, what a pitty! I finally found out what was wrong. My java class was in the wrong directory. For some reasons they are found and the buildNormalContent method is executed when the java file is in src/java/de/volke/jetspeed/modules/actions but self defined actions are only available in src/java/de/volke/jetspeed/modules/actions/portlets!! Hope any one else can profit of my experience. Chris -Original Message- From: Floßmann Christoph Sent: Tuesday, June 22, 2004 10:55 AM To: Jetspeed Users List (E-Mail) Subject: ***SPAM*** Simple Action in jsp (full code in mail) Hello jetspeed users, after my troubles with my ShoutBox Portlet I tried to reduce my code to a minimum. Maybe someone tries it and tells me what's wrong. = Entry in portlets.xreg = Action Simple Test = The java source (be sure to put it in src/java/de/volke/jetspeed/modules/actions = package de.volke.jetspeed.modules.actions; import org.apache.jetspeed.modules.actions.portlets.JspPortletAction; import org.apache.jetspeed.portal.Portlet; import org.apache.turbine.util.RunData; public class ActionTest extends JspPortletAction { protected void buildNormalContext(Portlet portlet, RunData rundata) throws Exception { System.out.println("Built ActionTest Portlet!"); } public void doSomething(){ System.out.println("Action"); } } = The jsp page in WEB-INF/templates/jsp/portlets/html = <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %> <% String jspeid = (String) request.getAttribute("js_peid"); %> = Now the message in the buildNormalContext method is displayed in the tomcat shell. But the doSomething method isn't working. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to create custom portlet modes?
On Jun 22, 2004, at 8:15 AM, [EMAIL PROTECTED] wrote: We would like to create a new portlet mode to display a help page on a per-portlet basis (similar to other modes, like info, configure, etc.) Is there an easy way to do this with Jetspeed 1.5? - Create a new permission for your new custom mode - I think you will need to extend the VelocityPortletControl to handle your custom mode, see the buildActionList method - Then see jetspeed.vm, as you will need to have a new image for your new action name - create a new action class for the new mode, see o.a.j.modules.controls for examples Also, will there be direct support for this sort of thing in Jetspeed 2? Yes, its in the portlet spec, but not required that the portal support extended modes Jetspeed-2 currently has no support for extended modes although if you are interested in implemented it I'd be glad to help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetspeed 2 - Postgresql connection Issue
On Jun 22, 2004, at 2:40 PM, Nicholls, Ian wrote: Hi, I am looking at developing a series of JSR 168 compliant portlets and wanted to use the Jetspeed 2 code as a base to work from, I have a number of databases setup using Postgresql and do not want to run yet another database so I started to change the maven.xml to include a Postgresql step, everything went fine (well mostly fine) until it came to the portal_entity table. This table cannot be created in postgresql because the column OID conflicts with a postgresql reserved word. Submit it as a bug to JIRA We will change the column name My question is, is there any way to do a mapping to change the actual column name within the database but not change the Jetspeed 2 code? Or is this going to require a code change to get working? Ian Nicholls - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to develop a new controller?
Why no one help me ? Sorry for my poor Egnlish. Yufan Shi We are Online! -Original Message- From: Yufan Shi [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 12:03 PM To: [EMAIL PROTECTED] Subject: How to develop a new controller? Hi, I want to develop a new controller, can layout portlets on the screen like this: 1 2 3 4 5 6 7 8 Can some one give me some advice? Or is there any tutorial on the Internet? Thanks! Yufan Shi - Yufan Shi We are Online! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error log info
I do not believe that this is an error. This is a velocity log message stating that is not modifying the context due to a statement whose right hand side is null. This occurs regularly. Unless the velocity does not render correctly, I believe that you can ignore this message. Jeremy Ford [EMAIL PROTECTED] -Original Message- From: Greg Buchanan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 4:41 PM To: [EMAIL PROTECTED] Subject: Error log info i am trying to diagnose some odd behavior of jetspeed-1 and found this in the velocity log: 2004-06-22 17:17:58,621 - RHS of #set statement is null. Context will not be modified. /controls/html/jetspeed-tab.vm [line 36, column 1] Can anyone explain this to me or point me to documentation which describes this error. I looked in the file and it is references colors, skins, etc. Not sure if it's an error or not. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jetspeed 2 - Postgresql connection Issue
Hi, I am looking at developing a series of JSR 168 compliant portlets and wanted to use the Jetspeed 2 code as a base to work from, I have a number of databases setup using Postgresql and do not want to run yet another database so I started to change the maven.xml to include a Postgresql step, everything went fine (well mostly fine) until it came to the portal_entity table. This table cannot be created in postgresql because the column OID conflicts with a postgresql reserved word. My question is, is there any way to do a mapping to change the actual column name within the database but not change the Jetspeed 2 code? Or is this going to require a code change to get working? Ian Nicholls ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. **
Error log info
i am trying to diagnose some odd behavior of jetspeed-1 and found this in the velocity log: 2004-06-22 17:17:58,621 - RHS of #set statement is null. Context will not be modified. /controls/html/jetspeed-tab.vm [line 36, column 1] Can anyone explain this to me or point me to documentation which describes this error. I looked in the file and it is references colors, skins, etc. Not sure if it's an error or not. Thanks.
how to save a file
Hi I would like to save some information contained in my VM file into html file , Do you have any idea to how export a VM file to HTML file ? Thanks Assia
Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1
Paul Farnan wrote: With respect to the windows configuration I had to also add the property: "org.apache.jetspeed.portal.dir=${org.apache.jetspeed.deploy.war.dir}/jetspeed" to my build.properties file. When I used the command "maven quickStart" it was putting the .war files into an unspecified location (D:\jetspeed\WEB-INF\deploy). I had to copy these files to the correct location to get the jetspeed site up and running. However, once I modified the build.properties file to include the above definition it worked fine. Did you have this problem before or after I cleaned up the maven properties configuration and changed the maven requirement to 1.0-rc3 (yesterday, see: http://nagoya.apache.org/eyebrowse/ReadMsg?listId=22&msgNo=15414). I certainly don't need this property defined. It is used by the J2 maven-plugin which defines as default value for it: org.apache.jetspeed.portal.dir=${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portal.name} The org.apache.jetspeed.portal.name property is also defined by the plugin: org.apache.jetspeed.portal.name=jetspeed This leads to the same definition you used. If you have used the latest cvs head maybe you should clear/delete the plugin from your ${MAVEN_HOME}/plugins and ${MAVEN_HOME_LOCAL}/plugins and try again. Paul -Original Message- From: Bob Fleischman [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 17:37 To: 'Jetspeed Users List' Subject: RE: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 Thanks. I'm not sure exactly what the tipping point was (adding these properties or amending the tomcat-users.xml) but now it works. Some suggestions. It is now clear from the getting started page if Tomcat should be running at any point. I found it must be stopped before the quickStart. My friend was a bit confused by the instructions. Also, I would suggest you include your build.properties file (since it is Windows based) as an alternative sample on the CVS site. Again, thanks for the help. Now I'm going to work with my friend trying to make this work in Tomcat5. Bob -Original Message- From: Ate Douma [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 12:07 PM To: Jetspeed Users List Subject: Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 Bob Fleischman wrote: Should the directory definitions have a trailing slash? The get starting page shows them, however your example and the build.properties.sample page do not. No, they don't need them. Below properties are directly from my build.properties (I'm on WindowsXP) -Original Message- From: Ate Douma [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 11:29 AM To: Jetspeed Users List Subject: Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 And, make sure you define the following (yet undocumented) required properties in ${USER_HOME}/build.properties: org.apache.jetspeed.catalina.version = ${catalina.version.major} org.apache.jetspeed.server.home = ${catalina.home} org.apache.jetspeed.server.shared = ${org.apache.jetspeed.server.home}/shared/lib org.apache.jetspeed.deploy.war.dir = ${org.apache.jetspeed.server.home}/webapps Ate Douma wrote: Bob Fleischman wrote: I looked at http://nagoya.apache.org/jira/browse/JS2-74#action_36045 but I was not sure what I was supposed to do. That comment addresses the requirement to define a user scott with password scott and role manager in tomcat-users.xml: I described this also in: http://nagoya.apache.org/eyebrowse/ReadMsg?listId=22&msgNo=15312 I'm in the process (awaiting a positive vote from the other committers) to simplify the whole properties configuration (depends on maven-1.0-rc3) and also addresses the currently hard coded user configuration in tomcat-users.xml. If my proposal is accepted expect all this trouble to be over very soon. Where should I add these properties and what should I set them to for the generic out of the box J2. Bob -Original Message- From: Ate Douma [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 10:59 AM To: Jetspeed Users List Subject: Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 Bob Fleischman wrote: Here is the body of the build.properties file in my c:\eclipse\workspace\jakarta-jetspeed-2 catalina.home=c:\\Program Files\\Apache Group\\Tomcat 4.1 catalina.version.major=4 catalina.shared.lib=c:\\Program Files\\Apache Group\\Tomcat 4.1\\shared\\lib deploy.war.dir=c:\\Program Files\\Apache Group\\Tomcat 4.1\\webapps maven.repo.remote=http://www.bluesunrise.com/maven,http://www.ibiblio.org/ma ven Also, I needed to modify the project.properties in the J2/portal directory to change deploy.war.dir=c:\\Program Files\\Apache Group\\Tomcat 4.1\\webapps You should define those properties in ${USER_HOME}/build.properties as described on: http://portals.apache.org/jetspeed-2/getting-started.html On WindowsXP if thats what you are using it would be in: C:\Documents and Settings\\build.properties Those properties override all others you define. You
Re: How to invoke Maximize button.
Did you solve this???... How?? Thank you! "Sunil Sheshadri" <[EMAIL PROTECTED]> 14-06-2004 02:42 Por favor, responda a "Jetspeed Users List" <[EMAIL PROTECTED]> Para "'Jetspeed Users List'" <[EMAIL PROTECTED]> cc Asunto How to invoke Maximize button. Hi, I have velocity portlet built. In my vm, I have a link (more). On click of link, the portlet has to be shown in maximized mode. How to achieve it? Any code snippets? In action class what needs to be done?? Regards, Sunil. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jetspeed with two DB connection URL?
Hi All, i am using two database default and alternateDB So in Torque.getConnection(" ") i am able to view Admin screen both in default and alternateDB But i am not able to add user in alternateDB. some where the default name is hardcoded. if you rename the default to some other, you will be able to view the Admin Screen but not Add, Edit of any Screen in Admin can i rename the default name to some othere, will it work if i change? My Torque.properties File torque.database.default=default torque.database.default.adapter=oracle torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory torque.dsfactory.default.pool.defaultMaxConnections=10 torque.dsfactory.default.pool.maxExpiryTime=3600 torque.dsfactory.default.pool.connectionWaitTimeout=10 torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver torque.dsfactory.default.connection.url = jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST=(ADDRESS =(PROTOCOL=TCP)(HOST = 172.16.0.111)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ir))) torque.dsfactory.default.connection.user = bh torque.dsfactory.default.connection.password = bh torque.database.alternateDB=alternateDB torque.database.alternateDB.adapter=oracle torque.dsfactory.alternateDB.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory torque.dsfactory.alternateDB.pool.defaultMaxConnections=10 torque.dsfactory.alternateDB.pool.maxExpiryTime=3600 torque.dsfactory.alternateDB.pool.connectionWaitTimeout=10 torque.dsfactory.alternateDB.connection.driver = oracle.jdbc.driver.OracleDriver torque.dsfactory.alternateDB.connection.url = jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST=(ADDRESS =(PROTOCOL=TCP)(HOST = 172.16.0.112)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ir2))) torque.dsfactory.alternateDB.connection.user = bh2 torque.dsfactory.alternateDB.connection.password = bh2 please help me Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to create custom portlet modes?
We would like to create a new portlet mode to display a help page on a per-portlet basis (similar to other modes, like info, configure, etc.) Is there an easy way to do this with Jetspeed 1.5? Also, will there be direct support for this sort of thing in Jetspeed 2? Thanks in advance, Eric Olson
Simple Action in jsp (full code in mail)
Hello jetspeed users, after my troubles with my ShoutBox Portlet I tried to reduce my code to a minimum. Maybe someone tries it and tells me what's wrong. = Entry in portlets.xreg = Action Simple Test = The java source (be sure to put it in src/java/de/volke/jetspeed/modules/actions = package de.volke.jetspeed.modules.actions; import org.apache.jetspeed.modules.actions.portlets.JspPortletAction; import org.apache.jetspeed.portal.Portlet; import org.apache.turbine.util.RunData; public class ActionTest extends JspPortletAction { protected void buildNormalContext(Portlet portlet, RunData rundata) throws Exception { System.out.println("Built ActionTest Portlet!"); } public void doSomething(){ System.out.println("Action"); } } = The jsp page in WEB-INF/templates/jsp/portlets/html = <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %> <% String jspeid = (String) request.getAttribute("js_peid"); %> = Now the message in the buildNormalContext method is displayed in the tomcat shell. But the doSomething method isn't working. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logon credentials revert to anon
All, I am having two very bizarre problems. First and foremost, I can authenticate to jetspeed using the admin account. However, I try to access any of the admin portlets and get, "You do not have access to these portlets.". If I sign on using admin and immediately click on the "edit account: admin" link, it takes me to the sttings for the "anon" user. Secondly, when the scenario above does not occur, logging in via admin prosents a page in which the tabs and graphics within the tabs (and other jetspeed graphics on the page) do not render properly (i.e 404 like errors). I say "404 like" since I can not seem to find any 404 errors in any of the logs. I appreciate this is not much to go on, so if anyone can point me to a problem determination process or which logs to look at -- I would greatly appreciate the help. Thanks.
RE: Shoutbox Portlet Action doesn't work
Now I tried to reduce my code to a minimum. Maybe someone tries it and tells me what's wrong. = Entry in portlets.xreg = Action Simple Test = The java source (be sure to put it in src/java/de/volke/jetspeed/modules/actions = package de.volke.jetspeed.modules.actions; import org.apache.jetspeed.modules.actions.portlets.JspPortletAction; import org.apache.jetspeed.portal.Portlet; import org.apache.turbine.util.RunData; public class ActionTest extends JspPortletAction { protected void buildNormalContext(Portlet portlet, RunData rundata) throws Exception { System.out.println("Built ActionTest Portlet!"); } public void doSomething(){ System.out.println("Action"); } } = The jsp page in WEB-INF/templates/jsp/portlets/html = <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %> <% String jspeid = (String) request.getAttribute("js_peid"); %> = Now the message in the buildNormalContext method is displayed in the tomcat shell. But the doSomething method isn't working. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jetspeed 2 - Sample files for Windows, Tomcat 4.1
With respect to the windows configuration I had to also add the property: "org.apache.jetspeed.portal.dir=${org.apache.jetspeed.deploy.war.dir}/jetspeed" to my build.properties file. When I used the command "maven quickStart" it was putting the .war files into an unspecified location (D:\jetspeed\WEB-INF\deploy). I had to copy these files to the correct location to get the jetspeed site up and running. However, once I modified the build.properties file to include the above definition it worked fine. Paul -Original Message- From: Bob Fleischman [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 17:37 To: 'Jetspeed Users List' Subject: RE: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 Thanks. I'm not sure exactly what the tipping point was (adding these properties or amending the tomcat-users.xml) but now it works. Some suggestions. It is now clear from the getting started page if Tomcat should be running at any point. I found it must be stopped before the quickStart. My friend was a bit confused by the instructions. Also, I would suggest you include your build.properties file (since it is Windows based) as an alternative sample on the CVS site. Again, thanks for the help. Now I'm going to work with my friend trying to make this work in Tomcat5. Bob -Original Message- From: Ate Douma [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 12:07 PM To: Jetspeed Users List Subject: Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 Bob Fleischman wrote: > Should the directory definitions have a trailing slash? The get starting > page shows them, however your example and the build.properties.sample page > do not. No, they don't need them. Below properties are directly from my build.properties (I'm on WindowsXP) > > -Original Message- > From: Ate Douma [mailto:[EMAIL PROTECTED] > Sent: Friday, June 18, 2004 11:29 AM > To: Jetspeed Users List > Subject: Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 > > And, make sure you define the following (yet undocumented) required > properties > in ${USER_HOME}/build.properties: > > org.apache.jetspeed.catalina.version = ${catalina.version.major} > org.apache.jetspeed.server.home = ${catalina.home} > org.apache.jetspeed.server.shared = > ${org.apache.jetspeed.server.home}/shared/lib > org.apache.jetspeed.deploy.war.dir = > ${org.apache.jetspeed.server.home}/webapps > > Ate Douma wrote: > > >> >>Bob Fleischman wrote: >> >> >>>I looked at http://nagoya.apache.org/jira/browse/JS2-74#action_36045 >>>but I >>>was not sure what I was supposed to do. >> >>That comment addresses the requirement to define a user scott with >>password scott >>and role manager in tomcat-users.xml: >> >> >> >> >> >> >> >>I described this also in: >> http://nagoya.apache.org/eyebrowse/ReadMsg?listId=22&msgNo=15312 >> >>I'm in the process (awaiting a positive vote from the other committers) to >>simplify the whole properties configuration (depends on maven-1.0-rc3) and >>also addresses the currently hard coded user configuration in >>tomcat-users.xml. >>If my proposal is accepted expect all this trouble to be over very soon. >> >> >>>Where should I add these properties and what should I set them to for the >>>generic out of the box J2. >>> >>>Bob >>>-Original Message- >>>From: Ate Douma [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 >>>10:59 AM >>>To: Jetspeed Users List >>>Subject: Re: Jetspeed 2 - Sample files for Windows, Tomcat 4.1 >>> >>> >>>Bob Fleischman wrote: >>> >>> >>> Here is the body of the build.properties file in my c:\eclipse\workspace\jakarta-jetspeed-2 catalina.home=c:\\Program Files\\Apache Group\\Tomcat 4.1 catalina.version.major=4 catalina.shared.lib=c:\\Program Files\\Apache Group\\Tomcat >>> >>> >>>4.1\\shared\\lib >>> >>> deploy.war.dir=c:\\Program Files\\Apache Group\\Tomcat 4.1\\webapps >>> >>> > maven.repo.remote=http://www.bluesunrise.com/maven,http://www.ibiblio.org/ma > > >>> ven Also, I needed to modify the project.properties in the J2/portal directory to change deploy.war.dir=c:\\Program Files\\Apache Group\\Tomcat 4.1\\webapps >>> >>>You should define those properties in ${USER_HOME}/build.properties as >>>described >>>on: http://portals.apache.org/jetspeed-2/getting-started.html >>>On WindowsXP if thats what you are using it would be in: >>>C:\Documents and Settings\\build.properties >>>Those properties override all others you define. You won't need to >>>change the J2/portal/project.properties then anymore. >>> >>> >>> >>> Everything works up through quickStart, however when I go to localhost:8080/Jetspeed all I get is a blank screen. >>> >>> >>> >>>Did you read >>> http://nagoya.apache.org/jira/browse/JS2-74#action_36045 ? >>> >>>Check your Tomcat console. There must be errors otherwise you wouldn't >>>have >>>a blank screen. >>>Please try to be more explicit, I can't be much of help on "blank screen
Re: Not able to find JSP Portlet ...Problem with mysql database
Stijn de Witt <[EMAIL PROTECTED]> wrote: Dear Maruthi, The // write code here comment was to illustrate that any future code for that function should be placed there, so that the "starting..." and "done. " log messages would make sense. I didn't mean to say you should write any specific code there now. Sorry for the confusion. Anyway, logging is a very useful tool for Jetspeed. It gives you a much better idea of what's happening. Also, I suggest you take a look at some of Jetspeed's source code. Sometimes you don't understand what's happening, but then when you look at the code it turns out to be something simple. For example, the way a doThing event handler is called from a button with [input] type="submit" name="eventSubmit_doThing" value="Do it" />. It really helps to look at the code. When you done some more testing, send the logs, we'll have a look at it. -Stijn - Original Message - From: "Maruthi" To: "Jetspeed Users List" Sent: Monday, June 21, 2004 7:21 PM Subject: Re: Not able to find JSP Portlet ...Problem with mysql database > Dear Stijn, > > Thanks for your your suggestions.I changed the code accordingly and one tip i dont understinf is :: in the buildNormalContext () method you asked me to write down code(you commented like this.//write code here)..What should be there actually..i mean i kept all my logic (Database Operations) in the doUpdate() method.Rest of the things are clear.I will try and send the feedback to you ...what the log files are telling. > Many thanks for your guidance, > > Maruthi > > > > > Stijn de Witt wrote: > > - Original Message - > From: "Maruthi" > To: "Jetspeed Users List" > Sent: Monday, June 21, 2004 5:24 PM > Subject: Re: Not able to find JSP Portlet ...Problem with mysql database > > > > Hello StijnThe home page i was telling is after logging as "Admin" > only.Here i am pasting my JSP and Action class. > > > > Thanks for your patience. > > Maruthi. > > > > = > > JSP:: RegistrationJSPTemplate.jsp > > = > > > language="java" contentType="text/html" > > import = "java.io.*" > > import = "java.lang.*" > > import = "java.sql.*" > > %> > > > > prefix='jetspeed' %> > > > > > > > > > > > > > > > > Tip: Don't render the head of the document, Jetspeed already does that, > you'll end up with two... > > > > > > > > > > > > > > > > > REGISTRATION > FORM > > > > > > > > > > > > > > > > > > User-ID: > > [input] > > > > > > > > Password: > > [input] > > > > > > > > Re-Enter Password: > > [input] > > > > > > > > > > First Name: > > [input] align='right'> > > > > > > > > Last Name: > > [input] /> > > > > > > > > > > E-Mail: > > [input] > > > > > > > > > > > > Date Of Birth (DD/MM/YY): > > [input] > > > > > > Sex: > > Male: [input] checked> Female: [input] > > > > > > > > Education: > > > > > > >> A&R(ET & IT)>CE.>EE&IT>ME> > > > > > > > > Telephone Home: > > [input] > > > > > > > > > > Telephone Mobile: > > [input] > > > > > > > > > > Street&H.NO: > > [input] size="20"> > > > > > > > > > > City: > > [input] > > > > > > > > > > ZIP : > > [input] > > > > > > > > > > > > > > Country: > > [input] size="20"> > > > > > > > > > > > > > > > > * --> > > > > > > > > action=""> > > [input] " name=js_peid> > > > > > > [input] > > > > > > > > > > > > > > > try > > { > > > > // rundata contains seseeion data and data from Action Class:: > > > > RunData rundata=(RunData)request.getAttribute("rundata"); > > String jspeid = (String) request.getAttribute("js_peid"); > > final String userid = rundata.getUser().getUserName(); > > > > > String address = (String) request.getAttribute("address"); ?? > > ?? > > ?? > > > > --> > > > > String userid=(String)request.getAttribute("userid"); > > String password=(String)request.getAttribute("password"); > > String fname=(String)request.getAttribute("fname"); > > String lname=(String)request.getAttribute("lname"); > > String email=(String)request.getAttribute("email"); > > String dob=(String)request.getAttribute("dob"); > > String sex=(String)request.getAttribute("sex"); > > String education=(String)request.getAttribute("education"); > > String telhome=(String)request.getAttribute("th"); > > String telmob=(String)request.getAttribute("tm"); > > String street=(String)request.getAttribute("streetnhno"); > > String city=(String)request.getAttribute("city"); > > String zip=(String)request.getAttribute("zip"); > > String country=(String)request.getAttribute("country"); > > > > } > > catch(Exception ex) > > { > > AppObjects.log("Error:error in RegistrationJSPTemplate.jsp > page",ex); > > return; > > } > > > > %> > > > > > > > > This all looks ok on first glance... > > > > > > Action Class ::RegistrationJSPAction.java > > > > > > // Java Resources > > import java.util.*; > > import java.sql.*; > > > > // Jetspeed Resources > > > > import org.apa
Email this page
Hello, I'm attempting to add some functionality to my portlet that would allow a person to provide an email address via form. I've had it working on and off for months, but it's off again - and I'm not sure my approach is sound (since it keeps breaking). What I'm doing is using a Velocity Portlet Action called doSendemail which opens page via java.net.URLConnection (capturing the active JSESSIONID to spoof the current session), saves the contents of the page in a variable, and emails the page to the specified email address. Everything works consistently except for the page that loads via connection string. I've tried several variations; this is the latest one that is not working: URL url = new URL("http://localhost/housing-portal/portal/media-type/html/role/user/xx x/page/default.psml/" + rundata.getParameters().getString("jspeid") + "?action=controls.Print&requestID=" + rundata.getParameters().getString("requestID")); I've tweaked this URL a few times, to make it work - but then I make minor changes to my PSML or other settings and it breaks. I feel like I'm going about this the wrong way. Any ideas of a better direction? Jason