I have been trying to implement a RESTful web service by following the tutorial here.
I have been searching online for the issue I am encountering but without any help. When implementing the CRUD web service, the article includes an HTML file. I have tried putting it both in WebContent and in WebContent/WEB-INF, but I cannot get it to work. I have also tried applying the solutions listed here, but the HTML file still didn't work.
The other functions do work, it's just this that I am having a problem with. I tried using:
localhost:8080/de.vogella.jersey.todo/rest/create_todo.html
localhost:8080/de.vogella.jersey.todo/create_todo.html
localhost:8080/de.vogella.jersey.todo/WEB-INF/create_todo.html
The error I am getting is from Tomcat not finding the resource.
Nothing works and I would really appreciate any help I can get. :)
Related
I'm trying to learn how to use lit as a dev tool for making web components and I'm having issues with making it run on my system.
In the documentation it states that you just need to run the command "npm i lit" on the folder of your project and after being successfully installed it should be running.
I did the "simple greeting" test also available on the documentation but it's returning me a blank page. I even copy-pasted both ts and html. Still blank page.
on my html, if I drill something into it, it shows on the page, so I know it's something regarding the custom web component (named simple-greeting).
I already did a course on native web components and I understand how it works, but I never worked with lit.
Isn't it just to import the necessary things from the respective library (like html, css, LitElement) and use it in TS?
Am I missing something? I am really confused and can't find anything online.
Thanks in advance.
It seems I forgot to run the web server. Still a long way to go, I guess.
I have found other answers to this question on this site, but they seem to be either outdated or not especially descriptive. I am rather unexperienced in website access using swift so code would be greatly appreciated.
If I already have the username and password, how do I log into a website, for example this one, using swift code.
This other SA question seems to solve the problem well: How to log into web site using uiwebview with swift?
The way I am trying to solve this issue is by creating a new View Controller and adding a Web View on to it with access to the website. There's a post here Get HTML from WKWebview in Swift that could help as you are using Swift, but without any detailing of your code this issue can't be solved completely. My solution is a bit unorthodox and frankly "bad coding", but it should in theory function well and I have seen other responses which do it similarly. Also, I would revise your question and try to make it more formal/informative so everyone could have a better chance at helping you out.
Good Luck!
Edit: Reviewing a different response
The easiest way to do this as mentioned by one of your comments would be to see if the Website you are using has an API. I used a course on Udemy which explained their functionalities if you need one. I would recommend looking at the Cocoa Pod Alamofire and seeing if it could help you (perhaps in conjunction with SwiftyJSON).
Side note:
The reason why I am not using Alamofire for my project (one similar to yours) is because I could not find an accessible API.
I recently got a simple task to create one-page application with feeds showing from API. It should be possible to add, edit, delete feed. Add/remove like etc.
I spent last few hours trying to figure out how to start. I created several websites using HTML, CSS and some jQuery or Bootstrap.This is new to me.
API is here: http://fe-zadanie.herokuapp.com
Available: GET, PUT, DELETE
I do not want somebody to write code for me. I just need some little nudge on how to start. I found various sources to study but I cannot find something usable to study and to start from.
Any help would be nice, thank you.
How to implement restful access from Dojo client to java server running in tomcat?
I need to make restful request to server and get data (json or xml format) and update the grid. How to do it?
I read the following posts, but i couldn't understand anything.
http://www.sitepen.com/blog/2008/06/13/restful-json-dojo-data/
http://www.sitepen.com/blog/2008/11/21/effective-use-of-jsonreststore-referencing-lazy-loading-and-more/
Can anyone give me complete source code and the explanation ?
Since I am new to Dojo I feel hard to do this. I don't want web services to be included.
For the REST part, you can use the Wizard of Netbeans (the tutorial is on Glassfish, but I don't see any reason why this should not work on Tomcat as well). See here the tutorial:
http://netbeans.org/kb/docs/websvc/rest.html .
For the dojo part, I have posted a complete example (which integrates perfectly with the REST implementation provided by Netbeans) here:
Dojo grid nested json
EDITED
In the Netbeans' tutorial there is a link for Tomcat users.
I have done some research on this subject, and found out, that Gzipping and adding a new image manager through a plugin would not be as difficult. The only question is the Image manager.
I have seen some quite good ones, like the Image Manager for JCE, which is a Joomla wysiwyg editor, but none for TinyMce for itself.
Could someone show me a good image plugin?
P.S. SwampyFoot is out of question, as it's download links are broken, and PhP Letters Ajax image manager is quite hard to install.
Thanks!
EDIT: I just found Mad File Manager, which seems to work excelently except for a little glitch: An image can be uploaded, but cant be selected... Thats sad...
EDIT2: I've found KCFinder, which seems to be very promising, but I just can't get it to work properly. Somehow, the configuration is quite difficult.
Ok, So I have been able to answer my question myself. So here it goes:
Set up TinyMce with Sozfo solution. The important ting to remember here is, instead of extending your Forms from Zend_Form, you have to extend them from Sozfo_Form. As to the defining your own extendable controller, it didnt work for me, So I put the path defining helpers in my Bootstrap. And if the whole ordeal works, there is a textarea that should have TinyMCE controls, but there aren't any, try checking the comments at Sozfo, or checking if the page is cached or not. It took me a good hour, to find out, that the only reason why no JavaScript was pushed to the header was because of a very persistent cache.
Set up KCFinder. The main problems I faced here were due to wrong paths to corresponding files. When the paths were correct, the only thing to remember is to enable it. There is a boolean to change in configuration file.
The last issue was adding the KCFinder to my Tinymce, and what I ended up doing was, I added the function needed to call KCFinder in TinyMCE.php View helper. ( Due to some glitch I seem to be unable to post the code here). Once you have set up your paths correctly, everything should work splendidly.
All in all, it took me about 3 days to figure this whole thing out. Talk about steep learning curve...
Have you looked at MCImageManager - its not free but its an option if you're happy to pay for it
Not really a suggest as you've got it but swampy foot download does work
As you're already using zend framework, why not use dojo, set up the dojo form and call the editor element and integrate this http://docs.dojocampus.org/dijit/_editor/plugins/LinkDialog into it?