Aash Patel

Greenhorn
+ Follow
since Sep 14, 2005
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 Aash Patel

I have a struts based application in which I have several different views. In each view, when the user clicks on the Fetch button, the application runs a stored proc or query on the database. Depending on the filters provided by the user, this query may take a long time. I would like to inform the user that their request is being processed. How can I achieve this? Javascript?

Can someone please help me get started?

Thanks
16 years ago
Sorry - I misread the define variable part. In any case, you can try my suggestion to at least display the value. That way you know if your jsp is getting it from the properties file.
16 years ago
Shailesh - I don't think you need to embed your bean message tag inside a bean define tag. This is how I do it:

<bean:message bundle="moreResources" key="required.field"/>

where bundle name is what you specify in your struts-config.xml as below:

<message-resources key="moreResources" parameter="MoreApplicationResources" />

where parameter name is the name of your properties file. In this case, my properties file is called MoreApplicationResources.properties

Make sense?
16 years ago
I had initially tried that Mark. It dint work. I later realized that the pagesize attribute accepts an integer rather than a string. So all I had to do was get the string from the session, convert it to an int and then assign the int value dynamically.

Thanks for your reply though.
16 years ago
Oh yeah, also in your JSP in the form action part, you need to provide a method type. Try this: <html:form action="whatever.do" method="POST">
16 years ago
Vinay - try this:

<action-mappings>
<action validate="true" input="start.jsp" name="LookSymbolForm" path="/lookSymbol" type="sample.LookSymbolAction">
<forward name="SUCCESS" path="/view.jsp"/>
<forward name="FAILURE" path="/start.jsp"/>
</action>
</action-mappings>

*I removed the / in your input path.
16 years ago
I have a struts-based application deployed on a Weblogic 8 server. When delpoyed locally on my machine (Windows XP), everything works perfectly. However when I upload the war file (created for me by JBuilder X) onto a production server (Weblogic 8 + Unix), one of the links returns this error:

Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

The same link on the application deployed on my machine works fine. Even more bizarre is the fact that all the other links on the production server which access the same database work fine.

What could possibly be the reason for this error for this one page?

Any suggestions/ideas?

Thanks
16 years ago
Thanks for your reply alan. While I was researching other ways to implement my help pages, I came across the use of tiles. So I implemented one page using tiles in Struts. Is there any advantage of using one over the other? Especially when designing help pages?
16 years ago
I'm trying to design a help page for my web application. I considered using framesets and frames to design the page. When I try to open the frameset (help.htm) in my application, it doesn't load the frames. I'm assuming this is because the <frame src="..."> required a relative path. Correct?

How can I work around this? I even tried this <html:frame page="..."> but to no avail.

Any other suggestions most welcome too.

Thanks.
16 years ago
I'm trying to design a help page for my web application. I considered using framesets and frames to design the page. When I try to open the frameset (help.htm) in my application, it doesn't load the frames. I'm assuming this is because the <frame src="..."> required a relative path. Correct?

How can I work around this? I even tried this <html:frame page="..."> but to no avail.

Any other suggestions most welcome too.

Thanks.
16 years ago
I'm using JBuilder X and have even set my classpath in the environment variables. Why am I still getting this error.

Any suggestions? Please advise.

Thank you.
Try this:

<html:image page="/whatever/myimage.gif"/>
16 years ago
Mohit - is your ActionForm extending ValidatorForm?
16 years ago
This is where I started and is probably a good place for any newbie to start:
http://struts.apache.org/
16 years ago