aspose file tools*
The moose likes Struts and the fly likes FORM SUBMISSION----USING STRUTS <HTML:FORM...> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "FORM SUBMISSION----USING STRUTS <HTML:FORM...>" Watch "FORM SUBMISSION----USING STRUTS <HTML:FORM...>" New topic
Author

FORM SUBMISSION----USING STRUTS <HTML:FORM...>

Sandesh kr
Greenhorn

Joined: Mar 23, 2010
Posts: 2
Hi Everybody,

Hope you all in high Spirits...

I am Trying to submit a form an <html:form>

with action as given below in the Code..

but the path is not getting resolved properly and hence not hitting the proper page..

here is my JSP CODE


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>

<body>




<html:form action="/trading2.do" method="post" >


<-----SOME TEXT FIELDS HERE....WITH <HTML:TEXT.....----->

</html:form>

</body>



Here is My struts-config
-------






<action path="/trading2" type="com.scb.trading.action.TradingSecondAction" name="FormBean">
<forward name="Success" path=".tiles.for.trading2"/>
<forward name="failure" path="/jsp/layout/failure.jsp" />
</action>




it is taking the URL as follows:

http://localhost/ist/trading2.do?...

ist is my url prefix

whereas the actual should be

http://localhost/cgi-bin/ost_prdsg.dll/ist/trading2.do



please help me on how to achieve this path in <HTML:FORM ACTION="">





Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3214
    
  49

"Sandesh kr", please check your private messages for an important administrative matter from JavaRanch.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FORM SUBMISSION----USING STRUTS <HTML:FORM...>