Help coderanch get a
new server
by contributing to the fundraiser

prithivirajan dhamodharan

Greenhorn
+ Follow
since Feb 19, 2007
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 prithivirajan dhamodharan

Thinking of writing customize Struts TextTag by extending it. And override the protected renderInputElement() available in BaseFieldTag.

Unfortunately this method is not accessible/visible in my class which extends BaseFieldTag.

I understand there is some kind for restriction for protected access - where the protected access level gives access to any class inside the same package or any subclass where it is declared. So according to the above said rule my class should have access to protected methods but it doesn't have it.

Help me to understand why i can't access the protected method in the sub-class belonging to different package.
13 years ago
How about configuring a separate servlet,

which can retrieve the ActionServlet stored in ServletContent and invoke the initModuleMessageResources(moduleConfig) method to load property file again.
17 years ago
How the load the Application Resource properties without reloading/restart the application.

ie, it should detect the change of values happened in properties file and the new value should get loaded
17 years ago
Thanks for your suggestion.

Appending dispatch parameter attribute in form action before submitting resolved my problem.

eg.,
<code>
function uploadDocument(){
document.forms[0].action = document.forms[0].action +
"?operation=uploadGeneralSectionDoc";
doument.forms[0].submit();

}
</code>
before i was setting the parameter attribute using hidden field,
<code>
document.forms[0].operation.value="uploadGeneralSectionDoc";
</code>

I belive in case of huge file upload the form values are discared. Correct me if i am wrong.
17 years ago
Thanks for your reply, Below is the code snippet..

In JSP,
<code>
<html:form action="/em/generalSection.action" method="post"
enctype="multipart/form-data" >
....
..
<html:file property="theFile" style="width:300" />

....
</html:form>
</code>
In Struts-config.xml
<code>
<controller
processorClass="org.apache.struts.action.RequestProcessor"
contentType="multipart/form-data"
memFileSize="10M"/>

&
Action Mapping is

<action
path="/em/generalSection"type="com.gm.efecs.em.execution.action.GeneralSectionAction"
name="generalSectionForm"
scope="session"
validate="true"
parameter ="operation"
input="em.execution.generalSection">
<forward name="display.generalSection"path="em.execution.generalSection"/>

</code>

It is Not hitting Action Class. And give's the above exception page
17 years ago
Hi,

Not able to upload Huge file of size 1GB. While trying that getting exception page

javax.servlet.ServletException: Request[/em/generalSection] does not contain handler parameter named 'operation'. This may be caused by whitespace in the label text.
at org.apache.struts.actions.DispatchAction.unspecified(DispatchAction.java:222)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:256)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
.....

I tried with <controller> to write in seperate memory in
struts-config.xml, even that is not helping me.

Help me to get rid of displaying exception page.
17 years ago