Prajatna Mahunta

Greenhorn
+ Follow
since Sep 01, 2008
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Prajatna Mahunta

Currently in one of my JSP page i am calling a Action through javascript on click of a button which fetches some data from server and updates the form bean.
Finally the same JSP page reloads to dispaly the newly added data fetched from server.

Now i am trying to implement DWR in the same scenario. I want to update the Formbean (Action Form) with help of DWR ajax call(on click of the same button ).
And instead of reloading the whole page specific portion of the page should be refreshed showing the newly added content to Formbean.

How can I achieve this. Could anybody has worked on same scenario, then please share the example.

Also please share the URL if anybody have any sample example.


Awaiting response
Prajatna
prajatna.mahunta@gmail.com
12 years ago
Any one able to solve this....
14 years ago
Can anybody please help me in this regard..
14 years ago

David Newton wrote:IIRC this is an issue with spaces in parameter names; there have been a couple of threads about it on the struts-user mailing list.

I *believe* this has been fixed for future releases, but you'll probably want to check the list archives to make sure.





Hi David,
I am also same error, as OGNL is not able to recognize the "href " tags generated by display tag (EX. http:XXX/{Application}/YYY.action?d-49653-o=2&d-49653-s=3 )

And I am using Struts 2.1.8.1 & displaytag-1.2.jar , so hope this problem is not yet resolved.

Can anybody please suggest any work around for the same. I'll be really thakfull for that.
14 years ago

David Newton wrote:IIRC this is an issue with spaces in parameter names; there have been a couple of threads about it on the struts-user mailing list.

I *believe* this has been fixed for future releases, but you'll probably want to check the list archives to make sure.




Hi David,
I am also facing the same problem.

I am using the latest version of struts i.e 2.1.8 . Hope this issue is not yet fixed. can you please suggest any work arround for the same.

OGNL is not able to understand the pattern (?d-49653-o=2&d-49653-s=3) .

can anybody please suggest
14 years ago

anbarasu aladiyan wrote:Hi Prajatna Mahunta,

I have used the same thing in my last project with out any problem.
like below (this code is a part of the page which will be displayed after successful login validation)
zulaHome.jsp


All the src attribute calls a struts2 action. But i have not build the url using strut2 url tag.
It worked well for me...




Thanks Anbarasu ,
I tried with your solution. But still I am facing the same problem..Is there any problem with Struts version, I am using Struts 2.1.8

I have changed the frameset page like--


And the corresponding action mapping is--


And the action class is --



I am still wondering ...why i am not able to get my page , because i can see in the logs that my frameset page() is getting called




But in UI still it is coming "undefined" .

Can anybody please help me out..
14 years ago
From 1st jsp page I am calling a action "login.action"

The struts.xml mapping is like-


Inside zulaHome.jsp I am using <frameset> tag to create the Welcome page which is a combination of header, menu & body .
The code I am using for zulaHome.jsp is as follows



I can see in my console that on call of this login.action my zulaHome.jsp page is loading. But in UI i am not able to see any thing . only it is showing a single word "undefined".

As you can see I have tried various option for the <frame src="" > tag as follows.

(1. using jsp location,


2. using s:url tag to load the jsp ,


3. using a action to load the corresponding JSP


)
But non of these worked out for me..

Can you please let me know id these is any comparability issue is there with struts2 & <frameset> tag ?
If not why this is happening..and what is the solution for this. ???

can any body please help me.
14 years ago
I am migrating my application from struts 1 to staruts 2

We are using struts 2.1.8 jar. We were using <fameset> to have our website layout.

But unfortunately using <fameset> the struts 2 is not able to render the page. In the UI it is only showing "undefined" . Please suggest how to make <frameset > work in struts2
14 years ago
I have designed a tiles frame using Struts 2.1.8 .

In the body part of the tile frame I am trying to insert a jsp having struts tabbed interface .( <sx:tabbedInterface> ).

The content of each tab is not coming in IE6 where as in firefox it is working fine.

My beselayout.jsp for tile is--




And the newRequest.Jsp which is replacing the body of the tile is



Surprisingly when I am trying to call this page containing tabbed interface separately(not as a content of tile frame), the contents are displaying perfectly.
But with tiles frame... ..

Can anybody suggest how it is behaving like this in IE6 ..where as working fine in Mozilla. Any solution for this...???

14 years ago

David Newton wrote:Did you change that WebSphere property for filter compatibility? Google for it; you need it set in order to run S2 on WebFear.



Thanks David,
Your solution worked out for me. I added com.ibm.ws.webcontainer.invokefilterscompatibility =true to my webcontener custom property.(Websphere 6.1.0.0.9) .

But Still it didn't work. Then I tried with struts 2.1.8.1 version jar, and now my action class is getting called and the output jsp page is getting loaded.

But unfortunately ..I am geting some error ..as follows..

When struts dev-mode=false



Even on putting dev mode =true, I got



Please help...
14 years ago

David Newton wrote:BTW, Action.SUCCESS != "SUCCESS"; it is "success". So your result will never be found.



Please don't confused with "GenericAdmission" coz, I changed my project name from "Test"
14 years ago

David Newton wrote:BTW, Action.SUCCESS != "SUCCESS"; it is "success". So your result will never be found.



I changed to "SUCCESS" in action class (return "SUCCESS") and in struts.xml (result name="SUCCESS"). But still it is not working.

Surpriseingly I tried the same in eclipse and tomcat , it is working fine, and am able to see the out put page.

But in RAD 7.0.0.9 with Websphere 6.1 it is still not working.
I am able to get my index.jsp(1st page) . But on submiting the form nothing is happening. And am not even able to see any logs in console even enabling the devmode to true. ( <constant name="struts.devMode" value="true" />)

The Log I used to get only upto display of 1st page is .....(after which nothing is being displayed)


14 years ago

Pradeep Adibatla wrote:what is your next page??? where is it?

write println's for userName and check what it is giving...


My nest page (success.jsp) is this page is at same location of index.jsp

I tried putting println for username. But nothing is coming in console,. The action class is not getting called I guesss..
14 years ago
Hi,
I am a beginner with Struts 2 and facing problem in calling the action class.
Am trying this in RAD 7 with websphere 6.1.

My 1st jsp page is (index.jsp)And the struts.xml isand the web.xml isAnd the actionclass is I am able to the 1st page that is index.jsp but on click of submit ( http://localhost:9081/Test/HelloWorld.action)

the request is not at all reaching to action class. Evan I am not able to see any error logs in console.
Only in UI file not found error is coming.(Error 404: SRVE0190E: File not found: /HelloWorld.action )

Can anybody please guide me in this regard. where am going wrong..
14 years ago
Hi All,
In my JBPM approval process, I have a requirement that, if at any point of time JBPM exception happens during the process work flow., the control should delegate to a separate TaskNode called Admin node, and the normal process flow should stop. Inside Admin node the admin user decides , from which task node now the process should continue, and accordingly the flow continues

Taking into consideration this requirement I designed a admin node and a exception handler as follows..



The Exception action handler is ass follows , which transfer the flow to Admin node and creates the Taskinstance at Admin node..


This above code part is working find with creating the taskinstance at admin task node.
Now after the task is assigned to a admin user, the admin take decision from which task node the process should start, again.

The code i am using to delegate the flow from admin node to any desired task node is--



Unfortunately, I am not able to achieve my requirement. The problem I am facing is even the control is delegating to admin node, still the process continues to move forward with the selected transition from the node where exception occurs..

So basically , I am not able to stop and resume the work flow from a desired Tasknode, as a admin.

Please suggest how to achieve this ..

As per the JBPM document 10.7. Exception handling


Note that the exception handling mechanism of jBPM is not completely similar to the java exception handling. In
java, a caught exception can have an influence on the control flow. In the case of jBPM, control flow cannot be
changed by the jBPM exception handling mechanism.



So then , how to achieve my requirement ..Any work around is there?


Please suggest..

Thanks in advance for your valuable reply..

Prajatna Mahunta
prajatna.mahunta@daimler.com
14 years ago