Nakshatra Dubey

Greenhorn
+ Follow
since Nov 25, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nakshatra Dubey

Requirement :-

I've two scenarios:-

1.) Date Validation of an XML File after XSD validation has been done.
2.) Validating a form with a no. data validations.


What I want :-

I don't want to repeat the code for both cases. I want a single way to implement validation of file and JSP forms using the same code and mechanism.

Please help.

NOTE :- For Business Validation, I will be using DB Procedures.

PS :- I am using Spring Framework with Spring Data JPa
7 years ago
It has been resolved.
since the mistake I made was critical to configuration.

I was trying for angularjs and spring. Being a newbie to angularjs I didn't know to configure a Spring Application with angularjs which in core is pure HTML, providing is not sufficient. I've to configure my DispatcherSelvlet to parse static content too. So, I reinvented the wheel and tried the same project by converting all files to files and it worked. That's when I found where I went wrong.

Thanks a ton for your replies.
8 years ago



Prasad Krishnegowda wrote:

what happens when you directly invoke, http://<host>:<port>/<contextpath>/frontController.htm/sampleMethod directly from the browser, do you see a 404 page? and what happens when you invoke, http://<host>:<port>/<contextpath>/frontController.htm?



It gives HTTP Status 404, The requested resource is not available for both the urls.




Prasad Krishnegowda wrote:

First, location should be accessed using ${location} not $location, again are you expecting this to work in .js extension file. If yes, sorry, it wont work, you need to embed the script in JSP file itself, or pass this value a parameter to JS function from JSP file.



I think I couldn't make it clear earlier. Actually, I am not using extension files I am using extension file. And the js file I am using is of angularjs which allows me to use its $location attribute, which according to angularjs API reference gives the URL path
8 years ago



Prasad Krishnegowda wrote:

where is the control submitting? what do you see in the URL? show us your index.html page also



Below is controller.js (angularJs) which is called from index.html while submitting it using ng-submit. and it returns 'Unexpected server error.' I checked the status is 404.








Prasad Krishnegowda wrote:

You are expecting JSTL/EL to work in HTML (.html extension) file?



I know JSTL/EL can't work on HTML pages. I tried using $location of angularjs to get context path. but $location is also coming as null, while loading of the page.

I tried including project name before the URL, but it also return 404.
8 years ago
I am new to Spring Annotations and Angular JS. I am building an application using:-

1. Spring 4 Java based Configuration (Annotations)
2. Angular JS
3. eclipse IDE
4. I am not using maven or anything else for building the project.

I've created the following files:-

1. web.xml

-with SpringAppConfig.java defined in context param as contextConfigLocation
-with SpringConfig.java defined in init-param under DispatcherServlet definition as contextConfigLocation

2. SpringAppConfig.java //Code below


3. SpringConfig.java // Code below


4. FrontController.java



Now the problems are
1. When I run my application the index.html(created using angularjs) declared in welcome-file-list of web.xml is getting opened. But when I click on submit entering some details. it is not forwarding to either controller or to the path I defined in @requestMapping. I've got stuck and I don't know what exactly I am missing.

2. I am not getting the context path in my html page which I could easily by EL or JSTL in JSP. What should I do to get the context path considering I am not going to use JSP at all.


I am new to both Spring annotations and Angularjs. Please help me to make this application work. Also please reply in case any other information is needed to answer this question. Thanks in advance.
8 years ago
It has been resolved. I just needed to be careful in configuration. I started from the scratch following the above mentioned link.
Thanks Mr. Ulf
9 years ago
Thanks Mr. Dittmer for your prompt reply. I tried setting up the CAS with my Spring Application. And now I am able to open CAS home page from my Spring Application URL. But, I think I've done some mistake in configuration mistake, due to which I'm getting an exception while authenticating. I believe I missed some kinda entry in one of the configuration files.

HTTP Status 500 - Request processing failed; nested exception is org.springframework.webflow.engine.ActionExecutionException: Exception thrown executing [AnnotatedAction@d4a1d3 targetAction = org.jasig.cas.web.flow.AuthenticationViaFormAction@12ae2bc, attributes = map['method' -> 'submit']] in state 'submit' of flow 'login-webflow' -- action execution attributes were 'map['method' -> 'submit']'; nested exception is java.lang.NullPointerException
9 years ago
I have two applications
1. Based on Spring (new one)
2. Based on Struts (old one)

I am using Central Authentication Service (CAS) to provide Single Sign On (SSO). I've provided a link in Spring application to access the struts Application. CAS.war file is deployed successfully in Apache Tomcat Server and CAS home page is accessible from Tomcat Manager.
My question here is. What changes do I need to make in Spring Application and Struts Application to enable Single sign on. Just so you know. Spring application is on Apache Tomcat Server, Struts Application is on JBoss Server and both the databases are different.
9 years ago