Omi Kir

Greenhorn
+ Follow
since Nov 05, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Omi Kir

Hi.

I need to access Struts form data in my JavaScript via JSP. Plese let me know if there is any standard way to do this.

I also need to access the request variables (set via request.setAttribute(..,..)) in my JSP which are set in Struts form. I am open to use Struts tags or Scriplets but I prefer to use standard Struts Tags in my JSP.

Please suggest me a standard procedure to achieve both.

Thank you.
15 years ago
I am actually creating some dynamic crystal reports. These reports accept parameters passed through a URL to generate a custom report.

The crystal server is different, and the request URL looks something like this


I found the solution, I had to pass return new ActionForward(path, true)
By default struts redirects with in the application. we need to pass boolean true to redirect to actual path.

Find more about this in Struts API Doc
15 years ago
Hi.

Is there any way we can use a custom forward in struts Action forward?

I have a senario where I am dynamically generating a URL in my action class, I have some logic which is executed in my action class to generate this dynamic URL.

This URL hits a new web address.

I tried to use return new ActionForward(path) but I guess struts puts a forward slash (/) before the path. Since the URL hits completly new web adderss (not related to my web application), I get a JSP error saying it couldn't find the page.

Any suggestions on this issue?
15 years ago