Go Back   Dynamic Drive Forums > General Coding > Java
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-29-2007, 06:35 PM
janunme janunme is offline
Junior Coders
 
Join Date: Apr 2007
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem while developing struts based web application

hi to all,

i am facing problem while developing struts based web application i am giving the setps what i followed:

1. created a folder with a name swapp and copied struts-balnk.war
2. extracted struts-blank.war

3. copy and pasted struts.jar and servlet-api.jar

4. i developed my own action calss and code as follows:
<code>
import javax.servlet.http.*;
import org.apache.struts.action.*;

public class ActionOne extends Action
{
public ActionForward execute(ActionMapping mapping,HttpServletRequest req,HttpServletresponse res) throws Exception
{
//code to perform some action
return mapping.findForward("fone");
}
}
</code>


and i developed my jsp page as follows:

<code>

hi this is my jsp code

</code>

i compiled my action calss and copied it in to WEB-INF\classes folder
i edited struts-config.xml and added the following action code:

<action-mapping>
<action path="/aone" type="ActionOne">
<forward name="fone" path="/genop.jsp"/>
</action-mapping>

and i started my tomcat server and typed the following uti:http://localhost:8000/swapp/aone.do

but i am getting a blank page not jsp page output.
in the whole process i di not get any errors.


can any one tell me where i am going wrong


regards
Reply With Quote
  #2  
Old 06-29-2007, 07:39 PM
Twey's Avatar
Twey Twey is offline
Modtoreador
 
Join Date: Jun 2005
Location: 英国
Posts: 11,933
Thanks: 1
Thanked 180 Times in 172 Posts
Blog Entries: 2
Default

Sorry, I'm not familiar with Struts. I think I'm the only person here other than mwinter who speaks Java (please do speak up if you're out there), so you might want to try a different forum.
__________________
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Reply With Quote
  #3  
Old 06-30-2007, 02:15 AM
alexjewell alexjewell is offline
Senior Coders
 
Join Date: Mar 2006
Location: Cleveland, Ohio
Posts: 522
Thanks: 2
Thanked 5 Times in 5 Posts
Default

Java's own forum might be a good place to look:
http://forum.java.sun.com/index.jspa

ps - to make code show up in this forum, you don't use <>:
http://www.dynamicdrive.com/forums/m...do=bbcode#code
__________________
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:57 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.