Hello..
I tried by adding jsp:useBean ...but i am getting this error message.Below is the 
error message i am getting...in addition to java.lang.ClassNotFoundException.
________________________________________
Error encountered processing a template: 
/portlets/html/RegistrationJSPTemplate.jspjavax.servlet.ServletException: 
org/apache/jetspeed/modules/actions/portlets/RegistrationJSPAction (wrong name: 
RegistrationJSPAction) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
___________________________________________
I tried all the options yesterday and today....no use...Below are my JSP code and 
.xreg file..can you suggest is there any mistake still in my coding ...?
 
Please reply,
Thank you very much,
Maruthi.
 
======================
RegistrationJSPTemplate.jsp
======================
<%@ page    language="java" contentType="text/html" %> 
<%@ page    import = "java.io.*" %> 
<%@ page    import = "java.lang.*" %> 
<%@ page    import = "java.sql.*" %> 
<%@ page  import = "org.apache.turbine.util.RunData" %> 
<%@ page  import = "org.apache.turbine.util.Log" %> 
<%@ taglib  uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
<jsp:useBean id="myRegistrationJSPAction" 
class="org.apache.jetspeed.modules.actions.portlets.RegistrationJSPAction" 
scope="request" />
    
  <% 
  try 
  {
 
   RunData rundata=(RunData)request.getAttribute("rundata");
   String jspeid = (String) request.getAttribute("js_peid");
  
       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"); 
   
  %>
   <body bgcolor="red">    
   <FONT face=Verdana,Geneva,Arial color=#FFFAFA size=1>
   <br><br>
   <h3 align="center"><font color="blue"><b>REGISTRATION FORM</b></font></h3>
   
   
   <br><br>
   <center>
   <table bgcolor=#CDC673 align="center">
   
        <tr>
             <td><b>User-ID:<b></td>
             <td><input type="text" name="userid" value="" size="20"></td>
        </tr>
   
        <tr>
             <td>Password:</td>
             <td><input type="password" name="password" size="20"></td>
        </tr>
   
        <tr>
             <td>Re-Enter Password:</td>
             <td><input type="password" name="rpassword" size="20"></td>
        </tr>
   
        
        <tr>
             <td>First Name:</td> 
             <td><input type="text" name="fname" value="" size="20" align='right'></td>
        </tr>
   
        <tr>
             <td>Last Name:</td>
             <td><input type="text" name="lname" value="" size="20" /></td>
        </tr>
   
   
        <tr>
             <td>E-Mail:</td>
             <td><input type="text" name="email" value="" size="20"></td>
   
        </tr>
   
   
        <tr>
             <td>Date Of Birth (DD/MM/YY):</td>
             <td><input type="text" name="dob" value="" size="20"></td>
        </tr>
        <tr>
                  <td>Sex:</td>
                <td >Male:<input type="radio" name="sex" value="Male" checked> 
Female:<input type="radio" name="sex" value="Female"></td>
        </tr>
        <tr>
   
                  <td>Education:</td>
        
                  <td>
                       <select name="education">
   
                       <option value="ar"> A&R(ET & IT)
                       <option value="ce">CE.
                       <option value="eeit">EE&IT
                       <option value="me">ME
                       </select>     
                  </td>
         </tr>
         <tr>
                  <td>Telephone Home:</td>
                  <td><input type="text" name="th" value="" size="20">
               </td>
         </tr>
   
         <tr>
                  <td>Telephone Mobile:</td>
                  <td><input type="text" name="tm" value="" size="20">
             </td>  
         </tr>
   
         <tr>
                  <td>Street&H.NO:</td>
                  <td><input type="text" name="streetnhno" value="" size="20">
               </td>
         </tr>
         
         <tr>
                  <td>City:</td>
                  <td><input type="text" name="city" value="" size="20">
              </td>
         </tr>
   
         <tr>
                  <td>ZIP :</td>
                  <td><input type="text" name="zip" value="" size="20">
               </td>
               
         </tr>     
             
   
         <tr>
                  <td>Country:</td>
                  <td><input type="text" name="country" value="" size="20"></td>
         </tr>
 
   </table>
 
   </font>
  <FORM  NAME="RegistrationJSPFORM" METHOD="POST" action="<jetspeed:dynamicUri/>">
              <INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=jspeid%>"> 
        <INPUT TYPE="SUBMIT" NAME="eventSubmit_doUpdate" value="submit">
        </FORM>
  </center>
        <body>
        
    <%} catch (Exception e) {
      Log.error(e);
     return;
}%>
    
======================
mylocalportlets.xreg
======================
<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-entry name="RegistrationJSPAction" hidden="false" type="ref" parent="JSP" 
application="false">
        <meta-info>
            <title>RegistrationJSPAction-Ravuri</title>
            <description>An Example of RegistrationJSPAction-Ravuri</description>
        </meta-info>
        <parameter name="template" value="RegistrationJSPTemplate.jsp" hidden="true" 
cachedOnName="true" cachedOnValue="true"/>
        <parameter name="action" value="portlets.RegistrationJSPAction" hidden="true" 
cachedOnName="true" cachedOnValue="true"/>
        <media-type ref="html"/>
        <url cachedOnURL="true"/>
        <category group="Jetspeed">Thesis-Portlets</category>
        <category group="Jetspeed">jsp</category>
    </portlet-entry>
</registry>

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Flo�mann_Christoph <[EMAIL PROTECTED]> wrote:
1. the mentioned path is ok
2. leave the classname out. The value is "portlets.AnyClass"

Maybe you forgot to include this line in your jsp
?

-----Original Message-----
From: Maruthi [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 6:08 PM
To: Jetspeed Users List
Subject: ***SPAM*** hello christoph ...class not found Exception ..


Hello Christoph,

Are there any other reasons for not finding Action Class.I tried all the ways by 
modifying my local-portlets.xreg file and placing .class file in different places (i 
placed in WEB-INF\classes\org\apache\jetspeed\modules\actions\portlets too as you 
suggested).But its not working.What might be the reason.

Can you once again mention clearly...

1) where should i place my .java and .class files exactly (No custom package defined)

2) what should i mention in the classname and in the value of Parameter Name="Action".

???????



May be this is a simple problem complex..but i am trying it since today 
morning....!.Pl reply.
Thank you,
Maruthi.






Flo�mann_Christoph wrote:
You already described your mistake very clearly. You put the .class file in the wrong 
path. Right now they should be in the 
WEB-INF\classes\org\apache\jetspeed\modules\actions\portlets path. You also can define 
your own paths in the
webapp/WEB-INF/conf/TurbineResources.properties
There are entries there like this:

module.packages=org.apache.jetspeed.modules
module.packages=org.apache.turbine.modules

And you can define your own.


-----Original Message-----
From: Maruthi [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 11:55 AM
To: [EMAIL PROTECTED]
Subject: ***SPAM*** class not found Exception ..JSP portlet Action class


Hello,

I have problem with JSP Portlet Action class.I am getting class not found exception.I 
didn't defined custom package for my action class.I just placed .java and .class files 
in the .....portlets.JspPortlet directory.Below is my Registry fragment.

Thank you,
Maruthi.

Error:
java.lang.ClassNotFoundException: 

Requested Action not found: portlets.RegistrationJSPAction
Turbine looked in the following modules.packages path: 
[org.apache.jetspeed.modules, org.apache.turbine.modules]
======================
...xreg file
======================




Registration JSP Example

org.apache.jetspeed.portal.portlets.JspPortlet






web services
finance.stocks
jsp



======================


---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


                
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Reply via email to