Our Current Application as below structure
Config.xml
<action name="credentials" class="CredentialsAction"
method="loadForgotCredentials">
<param
name="anonymous">true</param>
<result
name="success">success.jsp</result> -> jsp (tiles-def)
<result name="passreset"
type="chain">resetSubmit</result> <!--chaining action-->
</action>
Action class
class CredentialsAction{
private String username;
private String pwd;
public String loadForgotCredentials(){
if(true){
return success;
}else{
return
passreset;
}
}
}
Currently (http:\\localhost\Demo\credentials) it will render
JSP or chaining to another action class.
What is best approach to change above structure to return as
json response for API call. Since i need to use that api call in angular code.
Let me know if further informationi is required.
Thanks,
Siva
-----Original Message-----
From: Lukasz Lenart <[email protected]>
Sent: Wednesday, May 22, 2019 2:09 AM
To: Struts Users Mailing List <[email protected]>
Subject: [EXT] Re: Migration Help for angular2
wt., 21 maj 2019 o 18:17 Gopal, Siva Prakash (US - Mechanicsburg
Delivery) <[email protected]<mailto:[email protected]>> napisał(a):
>
> Thanks for your help
>
> Do we have recommended approach to handle this. One.
>
> Do we need to add any wrapper on top of the existing action class. Can you
> please suggest some approach on it.
Not sure what do you mean by that, all depends on your application setup and
what plugins do you use, etc. Asking more precise questions can help get
answers.
Regards
--
Łukasz
+ 48 606 323 122
+ http://secure-web.cisco.com/1uK3CuqyR1LY1XTM0xwJqt_u-syPUkeqsJLwSI_lec
+ vlh7mMaj4uu-k8mveGp8wJjMbidiPn9rTD9wZWZSddXK0-1WVOuVFEyv2Y5DSsNqIBkOKL
+ 3hdzo03tJp_pajAHFoc767Hu1wNKeeV8MaA1FSg8Q1su4AlBnX0f85H6AA_uHbCQ-pIt8_
+ gCePs_MMHKwcgNGyEbh_mCdHTvinNo_udRX5iwq6BGCMKFJN-XyqP5ccQN4pNQZfdbdDvK
+ tqVTV5Hl36XIHD0FOwd7KGEHZ0djC8uHPLURk0aEqRE5iGJ1A1H9asFkCPJPGg4TZoGLYB
+ 1WYv4ZRcPSrOLXZI11aWo4bz8V46Y1rZALzQ33Ze4EqLUOHPGcTwfN3nEyLHRaGtDZjcXV
+ eBk6q_K7JM4yrF0nArO3ZUcooywe3oe4BmrU3cqbgBuW4S2Eqni9z45tFBuIsvHCWxUOkX
+ P3piEEqPVjuOAByrj_MrRGnaraa-JWbWZjOK_pIAfUo13JvcF8Y/http%3A%2F%2Fwww.l
+ enart.org.pl%2F
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]<mailto:[email protected]>
For additional commands, e-mail:
[email protected]<mailto:[email protected]>
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If you
are not the intended recipient, you should delete this message and any
disclosure, copying, or distribution of this message, or the taking of any
action based on it, by you is strictly prohibited.
Deloitte refers to a Deloitte member firm, one of its related entities, or
Deloitte Touche Tohmatsu Limited ("DTTL"). Each Deloitte member firm is a
separate legal entity and a member of DTTL. DTTL does not provide services to
clients. Please see www.deloitte.com/about to learn more.
v.E.1