I'm doing some research on UI Frameworks. For a better comparement, with the other UI Frameworks, i need to know which Browser and Server Struts is compatible with and in which version. For my shame I can't find such a list.
Mabe someone of you has such a list?
Thank for helping.
First of all, if you plan to use Struts 1, then forget about it. Struts 1 is an obsolete, not maintained anymore framework. Don't use Struts 1 for a new project.
That said, Struts is a server-side framework, and generates whatever HTML you put in your JSPs. So it's compatible with any browser you want. It's up to you to generate HTML, CSS and JavaScript code that is compatible with the browsers you target.
Struts is also based on the stadard servlet API, and is thus compatible with any Java EE web container.
Related
I made a blazor server-side project for submitting the form.
In spite of there is a tutorial of Microsoft about how to embed it in asp.net core(https://learn.microsoft.com/en-us/aspnet/core/blazor/components/integrate-components?view=aspnetcore-3.1). However, I am about to embed it not only in one website but also in some other. So this way is so troublesome.
There is another way by using Iframe. Whereas Iframe does not support CSS vh units well and it has some other limited(such as samesite attribute/cross-origin).
Is there any way to solve this? Thank you.
I suggest you could consider build it as an Templated components.
You could create a component library. And then you could use this template in each project.
Details, you could refer to this article.
Kotlin official documentation tells that it supports web development. And its replacement for java. I am trying to build a web application using Kotlin. So far I read so many blogs, courses and videos in YouTube but I did not succeed coming up with a flow. I came across this link https://medium.com/bcgdv-engineering/building-a-full-stack-web-app-in-kotlin-af8e8fe1f5dc and I could not proceed with this alone. I only need a front end and connect to my server with normal http request. Is there any right way of doing a web app in kotlin. Please help me with this. Thanks in advance!
What I use for developing web apps in Ktor:
Front-End:
FreeMaker - for templating (mustache and velocity are other options)
Bootstrap - for HTML - CSS - Javascript part
There is also Kotlinx.html and KotlinJS if you need to write them Kotlin Style and they are official toolset from JetBrains.
Kotlinx.HTML Github
KotlinJS
You can add functionality to Ktor itself (they are called features):
Features:
GSON - for content negotiation (converting Kotlin to JSON and visa versa)
Locations - for type-safe routing
Exposed (Interface for easily working with PostgreSQL, MySQL and SQLite that works based on JDBC drivers)
Authentication (for user auth)
Ktor website has detail documentation for all of these features and adding them in your project is so easy.
Add the dependency
install(FEATURE) in Application.
For the IDE side:
IntelliJ Ultimate (Ultimate supports .ftl for FreeMarker)
Ktor plugin which is a must-have when you install IntelliJ
For webserver engine:
Netty (I use this one)
Tomcat
Jetty
You can easily develop API and Wen Apps using Ktor amazing DSL (Domain Specific Language)
The only problem that I have is with Kotlin Coroutines which I hate, and prefer RxKotlin for developing asynchronous apps, it seems that's possible but there are not enough tutorials and samples out there to get started with it.
+ If you stuck on something new and challenging, you are on your own, as there are not enough samples and guides on the internet.
But at the end of the day, I only recommend Ktor to those android developers who don't want to learn web development language e.g. PHP, Phyton, Javascript, like myself.
I am new to Golang. And I am looking for automating signup, login processes in a web app. Please suggest a good tool like Selenium and how can I implement it in the go language.
I want to do the following process automatically using Golang:
Start a browser. Currently, I'm using https://github.com/skratchdot/open-golang
Auto entry on the signup page and auto-submit a form.
Login check for the registered user. Everything needs to be done automatically for more users.
You can also use Playwright for Go, which is a wrapper for the Playwright project. Playwright provides a single API to automate Chromium, Firefox, and WebKit to automate browsers which was created by Microsoft. With it you interact with the sites, record videos, make screenshots, and emulate other browser specific behaviour.
If you are going to use GO for web automation testing - Selenium is a good option. Still it's nothing more than a library that allows you to interact with browsers. So you are going to need to develop your own framework or reuse someone already implemented.
My advice is to consider Agouti, since it supports Ginkgo BDD and xUnit Gomega. Everything else is pretty much the same from architectural perspective. You can design it like any other language binding. There are common patterns that appear over and over again in browser automation frameworks, like
PageObjects: A simple abstraction of the UI of your web app.
LoadableComponent: Modeling PageObjects as components.
BotStyleTests: command-based approach
Another good resource for building your Test framework is the xunitpatterns guide. It gives a great content overview of the patterns, smells and refactoring strategies you can use. Also look at this test frameworks tutorial. It'll help you choose the most proper solution for your case.
My guess is that you are going to need some CI server support for
everything needs to be done auto for more users.
Here is a good article how-to achieve this with TravisCI.
update:
you can use Selenium for Golang
I had to recently updgrade from jQuery 1.3 to 1.10. As a result lots jquery code was changed and plugins were upgraded. And consequently this resulted in lot of hours of manual testing.
This got to me think that there should be a better way of testing/validating pages after any js/css change across my site.
I would like to do the following.
crawl all pages on my site.
Check all links on page work correctly
Check for basic html tag validation
Check for any JS & css errors.
jquery version compatible code
Any recommendations for tools that will allow me to perform all of the above test.
Thanks
Free tools exist for quite many of those tasks. There are both web page based validators and browser plugins. I don't know if some tool would do all the below in one or couple steps, but these should get you at least started.
For crawling the site and checking all links you can use tool from The World Wide Web Consortium (W3C):
http://validator.w3.org/checklink
The results page also provides links for for validating html and css of each page.
If you want to validate a file otherwise, you can straight use
http://validator.w3.org/
and
http://www.css-validator.org/
For validating javascript syntax, you can use jslint
Finally, if you want to be more sure that your javascript is working correctly, write unit tests for example with QUnit
I have implemented some tutorials of dojo all this tutorials work on html web pages. Is there any way to implement dojo on php pages.
Dojo is a javascript framework that can be used with any server technology. If you have some static html pages with dojo, the only thing you need to do is to rename them to .php.