I wanted to know if a new project in eclipse we could import the jar Alfresco and used for example by creating just a jsp with a field of research that would seek a metadata ..?
Thank you.
I think you got it wrong. Alfresco is not library you import to your project. Alfresco is a complete Enterprise Content Management system. For more information visit http://wiki.alfresco.com/wiki/Main_Page
But I wish it was that simple.
I think this way to do it:
Install alfresco from scratch... as standalone project.
Then develop a webscript using the Alfresco Web Script API, that allows you to create a restful service. Your web script can preform lucene queries to search metadata.
Create your jsp form.
Then you can use Ajax to get data from your restful service.
Related
I am new to this please someone tell me whether I can use Thymeleaf template for some pages and REST for some for building Gradle project?
I created my login page retrieving through MySQL database using Thymeleaf template now for adding other information in my database I want to use RESTful services,
Yes you can do both have REST controllers, and also have other controllers that serve up Thymeleaf pages.
I am learning HTML5 integration with REST web services.
Using information mentioned at URL:
Redhat tutorial for HTML5 app
I created sample application in my eclipse workspace. Generated code structure is as shown below:
I do not understand why all web resources are stored are shown as a deployed resources? Does not it mean that, they are not part of my source code? I thought there would WEB-INF directory, under which my web resources will be stored. Please correct my understanding.
I found that it is just the way eclipse displays the structure of workspace. But in actual file system, web resources are stored under:
src/main/webapp
I create a Editor gwt project, which works fine.
Now I want to connect the editor's data to a db, so I use a 3rd party database helper tool for that.
I added the db tool jar into my gwt project, no complaint. I also wrote the db related codes using this tool.
But I just can't run my gwt project in the web page.
The error info in gwt console for my web browser is can't find the source/.xml for the db helper tool, at least something like that.
How can I manage this?
Thanks
You have to use the DB-Tool on the server-side of the code and retrieve the data to the client via an RPC!
See: https://developers.google.com/web-toolkit/doc/latest/tutorial/RPC
IDEA allow to find bean definition, declared in xml, right from Java code. For example if I've got interface SomeIntrfaceImpl IDEA allow me to find out instances of SomeIntrfaceImpl in .xml contextes files, pointing me to .xml file to line of code where bean is created
Is there any Eclipse plugin, that allow me to do the same ?
Yes there is different Eclipse provided by SpringFramework makers itself. They have extended the eclipse to provide easy development for Spring web application and other products like Spring ROO also.
Its is called SpringSourceToolSuit. You can download its latest version from here after providing some basic information about you asked in a form there.
Its the best IDE to develop Spring applications. I am currently using it.
Hope this helps you. Cheers.
Can anyone recommend a good (preferably open source) tool for creating WSDL files for some soap web services?
I've tried playing around with some of the eclipse plug ins available and was less than impressed with what I found.
As mentioned above, probably the easiest thing to do is use Apache CXF or Apache Axis2 to automatically generate your WSDL for you.
If you have downloaded the Java EE version of Eclipse, you should be able to create a Dynamic Web Project with the Axis2 facets. If you create a simple Java class in the project, you should be able to right-click on it, and choose Web Services->Create Web Service. That should automatically create an Axis2 service for you.
WSDL would then be available from some URL like: http://localhost/axis/{yourservice}?WSDL
One of the more interesting tools for bypassing all the associated headaches with WSDL is the XSLT script created by Arjen Poutsma (the lead developer of Spring Web Services):
http://blog.springframework.com/arjen/archives/2006/07/27/xslt-that-transforms-from-xsd-to-wsdl/
Basically it allows you to develop simple schemas that correspond to your desired operations (i.e. <BuyItem> and <BuyItemResponse>) and then generate all the associated WSDL crap from the XSD. I highly recommend it if you are interested in 'contract-first' web-services but the idea of using a WSDL as the starting point for that contract makes you feel green.
I am tired of generating massive amounts of files on the filesystem just to transport over SOAP. Now I use Apache CXF for both WS producers and consumers and let it handle the WSDL/stubs generation dynamically.
Depends on which language you're working in, but if you're active in Java then I'd recommend looking at Apache CXF. It's a pretty solid framework for publishing java code as a SOAP web service. It also includes a tool for directly generating WSDL files: java2wsdl
Nice tool can be found as SAAS solution at www.cofiq.com. Its strong point is the datamodel repository from which WSDL and REST JSON can be generated and impact analysis on datamodel changes.