Help coderanch get a
new server
by contributing to the fundraiser

Vivek Chaitanya

Ranch Hand
+ Follow
since Oct 19, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vivek Chaitanya

Hi There,


What is the most likely root cause of the following exception:



Thank you
Chaitanya
14 years ago
Hi david, Thank you for your reply.

Struts 2 has a better way to pass data to a JSP, as I've already stated



Can you please let me know what is the better way to pass data to JSP?

Regards
Chaitanya
14 years ago
And I am using dispatcher result type as below:

14 years ago
In execute() method:




In JSP


14 years ago
I am calling request.setAttribute(...) in the method that returns success . i.e in execute method before returning success. I am not understanding why it is failing to set request attributes.
14 years ago
Hi Ankit,

Thanks for your reply.

We are setting request attributes using the standard request.setAttribute() method.

Regards
Chaitanya
14 years ago
Formatted the code...

14 years ago
Hi

We are using Struts 2 Dispatcher Result to forward our request to some jsp page.

In struts.xml


Now we are able to see success.jsp but the request attributes we set are becoming null in success.jsp

We used dispatcher because we need the same request to be forwarded so that the request attributes we set can be retrieved in success.jsp But it is not happening and we are getting nulls instead.

Is there anything which needs to be taken care?

Thank you Chaitanya
14 years ago


Hi All,

I have a web application deployed in WebLogic. In one of my java file, I tried to read PleaseNote.txt as following:


Now WebLogic is taking PleaseNote.txt from its domain directory.My question is:

[1] Why it is domain directory? Why not the directory where my java file which has the above line of code is in?

[2] Is there any configuration which I am not aware of , but did unknowingly, for WebLogic to look in its domain directory?

[3] What are the implications / side effects of using above line of code in production?

Any WeLogic experts, please respond.

Thank you.
Regards,
Chaitanya
14 years ago
The value for stageMode parameter of deploy function should be not STAGE.
14 years ago
Got this myself!!!

While doing manually I found out in the Summary section of the last page of Install Application Assistant that Copy this application to every target for me
is mentioned against Staging mode:

So I checked the WLST manual and found out that deploy function accepts stageMode parameter and the value of STAGE for stageMode parameter means what I want!

Check Server Staging Modes section at http://download.oracle.com/docs/cd/E13222%5F01/wls/docs90/deployment%5Fapi/api%5Fintro.html#1021695

Regards Chaitanya
14 years ago
Hi All,

I want to remove dependency on the location of EAR file while deploying it into WebLogic Server using WLST scripts.

While doing manually we can select the radio button - Copy this application onto every target for me in the Source accessibility section of Install Application Assistant.

Now the question is: how to achieve the same using WLST deploy command?

I tried recording option in WL 10 to see how the WLST script would be while deploying but its not recording properly.

Thank you, Chaitanya
14 years ago
Use GET instead of POST
15 years ago
I put the following code in struts.xml



Does the above lines of code ensure that only the above interceptors are invoked? How will I verify that?
15 years ago
Hi All,

How to bypass some of the interceptors in defaultStack provided by Struts2?

Thanks
Chaitanya
15 years ago