[jboss-user] [JBoss Portal] - actionRequest.getContentType() returning text/xml; charset=UTF-8
raju k
do-not-reply at jboss.com
Tue Apr 13 03:07:32 EDT 2010
raju k [http://community.jboss.org/people/komariraj] created the discussion
"actionRequest.getContentType() returning text/xml; charset=UTF-8"
To view the discussion, visit: http://community.jboss.org/message/537066#537066
--------------------------------------------------------------
hi all
when accessing requestParamets from jsp with enctype="multipart/form-data" in portlet,
actionRequest.getContentType() is returning text/xml; charset=UTF-8 not returing multipart.
in jsp
<form id="uploadform" name="frmnewmail" method="post" action="<%=actionURL%>" *enctype="multipart/form-data"*>
in portlet
public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortletException, IOException
{
// this if condition not returing true for multi part
*if(actionRequest.getContentType() != null && actionRequest.getContentType().startsWith("multipart"))
* {
portletFileUpload = new PortletFileUpload(actionRequest);
portletFileUpload.initialize();
}
// this if condition also not executing for multi part
i*f (PortletDiskFileUpload.isMultipartContent(actionRequest))*
{
}
}
Any help regarding this,
Thanks in advance
Raju.k
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537066#537066]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100413/8b6de8d0/attachment.html
More information about the jboss-user
mailing list