Struts 2- Tiles 3 access issue - struts2

When I access the app that I just migrated to struts 2 tiles 3, seeing the below error when the app tries to access the history action.

Related

Angular 8 and asp.net mvc routing is not working

I am new to the Angular 8 with asp.net mvc.
Facing issue with routing,
(1) Application home url: http://localhost/dashboard
it has all details with some model numbers in bootstrap table, when click on model number with group name it will route to https://localhost/dashboard details?Groupname=xyz&ModelNo=2300 this works fine.
(2) At this stage everything is good but when refresh the browser error is getting displaying
as,
This localhost page can't be found
No webpage was found for the web address https://localhost/dashboard details?Groupname=xyz&ModelNo=2300
HTTP ERROR 404
What I tried
(1) added location strategy and hash strategy- didn't worked
when added this on refresh IIS windows was getting displayed.
(2) used url rewrite same error displayed HTTP ERROR 404.
Need assistance to solve this problem
Got the solution by spending almost 3 days, need to change base href,
Got the hint from
https://github.com/angular/angular/issues/11046.

Struts action not triggering

I was working/using in the application for long time and today when i tried to fix some issues struts 2 action is not responding. I have faced the same issue in some other application, long time back and did some setup in Eclipse / Tomcat which allocation struts 2 action to get triggered. I could see the queries running in the backend after login, for the first landing page.
Tolls / Technology stack that i am using,
Struts 2.0, Display Tag, Eclipse, Tomcat
Any guess what could be that configuration? It may be filter / proxy / Something else. I couldnt recall that.

Springwebflow + CDI + JSF application on Jboss 7

I have been trying to get my application working under JBoss 7 but have finally hit a problem that I cannot find an answer to.
The application is a web based application using springwebflow,cdi,jsf (primefaces).
it gets deployed without an error and renders the first page (login.xhtml). once i'm logged in, if i try to click list of accounts (users's accounts) link (which invokes the webflow for list of Accounts) which display a list of accounts but when the server looks for the resource to use for rendering the view, it fails with FileNotFoundException when attempting to load a resource as below. javax.faces.FacesException: Error Checking Last Modified for jndi:/localhost/datapTest/AccountSelect.xhtml For some reason the default view of the flow (Accountflow) is being converted to a jndi resource location. Can anybody help?
Updated :
after changing the param javax.faces.FACELETS_REFRESH_PERIOD value to 1
exception :
Caused by: javax.faces.FacesException: java.io.FileNotFoundException: Facelet /accountSelect.xhtml not found at: jndi:/default-host/datapTest/accountSelect.xhtml
I was having a similar problem, and i found out that the problem was a conflict with the omnifaces lib. The problem occurs because omnifaces registers a view handler called RestorableViewHandler and this view handler does not know how to solve the id's from the flows files.
To solve that, we need to add the view handler of spring-webflow locally on our faces-config.xml file:
<application>
<view-handler>org.springframework.faces.webflow.FlowViewHandler</view-handler>
</application>
PS: Or you can just remove the omnifaces dependence from your application.

.Net MVC 4 Blank Page

I am trying to deploy the default empty internet application template from .Net MVC 4, my app gives the same problem so figured start with the simplest app I could.
The server is 2008 R2 running .Net 4 (app has been changed to 4 from 4.5). I have other sites running on that machine with .Net 4 and MVC 3 but the MVC 4 app just brings up a blank page. I have confirmed HttpRedirection and HttpErrors are installed (and the MVC 3 apps run fine).
I have tried the solution from Michel van Engelen here I am getting a blank page while deploying MVC application on IIS and confirmed it works on my machine but still a blank page.
I ended up adding ELMAH to try get info on the exception that was causing the problem and the site started working, I am not sure what changes to the web.config to install ELMAH resulted in the site starting but did the same thing to my other original app and all is now fine.

JSF Integration with other JSF application

Currently we have 3 .war files built using JSF1.x I am going to create one more .war file using JSF 2.x There are some requirements to integrate with other .war files. All these war files are deployed separately meaning not in a .ear file.
Some of the integration scenarios are:
Existing .war1 will call the new application by clicking a link. The new application should prepopulate (Edit mode) its page and after submitting and processing the business logic it should show .war1 page
Existing .war2 will call the new application by clicking a link. The new application should just open a page (New mode). After submitting and processing the business logic it should take back to .war2 page
New application will call .war3 page by clicking a button. It will also send some data and after submitting from .war3 page, control should come back to the new application page. In this scenario there are more possiblities to exchange large amount of data.
Basically I am looking for the best way to integrate and pass bulk data between JSF 1.x and JSF 2.X application
If cookies can be used to pass the data that is the easiest approach. Otherwise, you can have a server side cache such as EHCache and send a cacheId with the inter-app requests to point to where the data is cached.

Resources