• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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="">





 
Sheriff
Posts: 7134
1360
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Sandesh kr", please check your private messages for an important administrative matter from JavaRanch.
 
reply
    Bookmark Topic Watch Topic
  • New Topic