SunilK Chauhan

Ranch Hand
+ Follow
since May 09, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by SunilK Chauhan

Hi Guys,

I am working on one task with Angular 6.0.3 version.

Requirement is user can select dates in range for the filter purpose.
Another Requirement is while opening calendar, some dates should be auto disable which are not possible to select for task completion but user can select only possible dates only.

I want one calendar for this Angular version which can support these two features at all.

I saw many calendars online, but it didn't worked for me. Can you guys help to find it ?

Thanks,
Sunil Chauhan
But after changing the corsfilter code why it still gives me an error of http response?

Even in the internet also, I didn't find any solution for it.

One more thing, can you please tell me how to debug it? So that I can find the exact cause of the issue?

Or may be some other thing as solution we can apply?
3 weeks ago
Thanks for the reply,

I have applied the same code for CORSFilter to my existing code but now getting the different error.



It is saying status '0'. Can you please check it ?
3 weeks ago
One more thing i want to tell you that, getting token from the server, I am calling my back end having spring boot framework to authorize the user.

And at that time this error is generated. So, can you please guide me how to handle it?
3 weeks ago
You are right dear. Seems like call is being redirected to login page again even after successful login. But I didn't understand why?

Actually I am performing the sso login from my system to another system. So this is happening.

I don't know how to handle the situation. Can you please guide me?
3 weeks ago
Hello folks,

I am getting this error: origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I am traversing from Angular 4 to Back end having Spring boot, And getting the above error.

Please see detailed error here:


This is the error of CORS Filter blocked my request.

I am also passing token along with request, as shown below.



Let me if any other information required. Please get me a solution for it.

Thanks,
Sunil Chauhan
3 weeks ago
Hi all,

Can we implement lazy loading using only Components instead of creating modules also ?
As i have seen many answers online, still i am not getting proper answer for it, So i am asking here.

I have seen many examples of lazy loading implementation but using modules only, not using components within the same modules.
So is it possible to have it ?

Thanks,
Sunil Chauhan
Hello all,

I am implementing one application having sso feature in it. Once I do open page from angular, it will redirect to cloud login page automatically because I have set it from application.property file so it will redirect to there.

Now once user added succefull login credentials, I need to add user role and than revert this user object to my angular app back.

But the question is how can I get back this object to my angular app from spring boot app? As after sso login control from angular has been gone so how can I get it?

If anybody has any idea than please share with me.

Thanks
1 month ago
Thanks for your quick response.

So, here it compiles JSP page into servlet code finally and than after tomcat run it.

Now, is all functions and other body portion of JSP Page be the methods inside Servlet after this compilation done?

Because in servlet, as we know that there are methods ultimately and we are calling it. So, how these all JSP page functions and body portion will get store inside servlet? As a method only?
9 months ago
Means, I can consider that String has Public and Protected constructors combine.
9 months ago
How JSP converts into servlet at run time? Can some one explains me this?

As how scriplet part will store inside servlet? How functions will get store? How jsp's other body part will get store? And how they will work at run time?

Please explain me this, if you have idea.
9 months ago
Can you please someone tell me the access modifier of string class constructor?
9 months ago
Yes, right.

We should use one query per transaction only.

And after each transaction, make practice to close it.
1 year ago
JSP
Using jquery and advanced java scripts expressions, you can create the same functionality as you wants.
1 year ago
JSP
It depends on the security set on client side computer and certificates working on.

If you want to get computer name than using login facility you can get that simply.
1 year ago
JSP