[Building Sakai] I want to develop a new SAKAI 2.7.0 tool with JSF or JSP technology

Aaron Zeckoski azeckoski at unicon.net
Wed Oct 19 04:37:45 PDT 2011


I think your java files need to go under src/main/java or they will
not be compiled. You can only put JSP files in the location you are
using.
You will need to become familiar with the basics of java webapp
development before you attempt to write a Sakai tool/plugin or I think
you will find it very difficult.

Some of these links should help but you need to be very familiar with
the fundamentals of java web apps before you attempt to do Sakai
development. Note that new versions of Sakai use maven 2 so when you
are looking at stuff make sure you look at maven 2 and not maven 1
instructions.

http://maven.apache.org/plugins/maven-war-plugin/overlays.html

https://confluence.sakaiproject.org/display/BOOT/Sakai+Programmer+Manual

-AZ


On Wed, Oct 19, 2011 at 1:24 AM, Khan <vupk at yahoo.com> wrote:
> Thank you Aaron!
>
> I created a class "Employee" inside package "Sprang.Staff"
>
>  but I unable to instantiate object of Employee class.
>
>
>  path where I placed Employee class is
> az_helloworld_jsp/src/main/webapp/WEB-INF/Sprang/Staff/Employee.java
>
> I imported packege using directive
> <%@ page import="Sprang.Staff"%>
>
> Following is error
>
>
> org.sakaiproject.portal.api.PortalHandlerException:
>  org.sakaiproject.tool.api.ToolException: Unable to compile class for JSP:
>
>
> An error occurred at line: 37 in the jsp file: /jTest.jsp
> Employee cannot be resolved to a type
>
> 33:
> 	/////////////////////////////////////////////////////////////////////////////////////////
> 34: 	
> 35: 	Sprang.Staff.Employee obj = new Sprang.Staff.Employee();
> 36:
> 37:     Employee obj1 = Employee();
> 38:
> 	/////////////////////////////////////////////////////////////////////////////////////////
>
> org.sakaiproject.portal.api.PortalHandlerException:
> org.sakaiproject.tool.api.ToolException: Unable to compile class for JSP:
>
>
> An error occurred at line: 35 in the jsp file: /jTest.jsp
> Sprang.Staff.Employee cannot be resolved to a type
>
> 33:
> 	/////////////////////////////////////////////////////////////////////////////////////////
> 34: 	
> 35: 	Sprang.Staff.Employee obj = new Sprang.Staff.Employee();
> 36:
> 37:     Employee obj1 = Employee();
> 38:
> 	/////////////////////////////////////////////////////////////////////////////////////////
>
>
> From: Aaron Zeckoski <azeckoski at unicon.net>
> To: Khan <vupk at yahoo.com>
> Cc: "sakai-dev at collab.sakaiproject.org" <sakai-dev at collab.sakaiproject.org>;
> "cafe at collab.sakaiproject.org" <cafe at collab.sakaiproject.org>
> Sent: Tuesday, October 18, 2011 4:17 PM
> Subject: Re: [Building Sakai] I want to develop a new SAKAI 2.7.0 tool with
> JSF or JSP technology
>
> I very very simple example using JSP is here (hello world):
> https://source.sakaiproject.org/contrib/programmerscafe/trunk/samples/helloWorldUser/
>
> Here is a slightly more complex example with multiple pages and database
> access.
> https://source.sakaiproject.org/contrib/programmerscafe/trunk/samples/JspCrudJdbcExercise/
>
> There are bunches of examples of other JSP tools in the code and in
> general, most if not all JSF tools use jsp files. You can find more
> complex examples that use things like spring mvc + jsp in the contrib
> area. Here is one:
> https://source.sakaiproject.org/svn/msub/unicon.net/kaltura/trunk/
>
> Good luck!
> -AZ
>
>
> On Tue, Oct 18, 2011 at 4:30 AM, Khan <vupk at yahoo.com> wrote:
>> Dear All
>>
>> I am beginner to sakai tool development.
>>
>> I want to develop a new SAKAI 2.7.0  tool.
>>
>> For tool development I want to use JSF or JSP technologies and not RSF or
>> WICKET.
>>
>> Please any one show me IDE and simple way to start with it.
>>
>> I will be thankfull.
>>
>> Regards
>>
>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org
>> with a subject of "unsubscribe"
>>
>
>
>
> --
> Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile
>
>
>



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list