Mehmet Ethem SULAN :: Struts Web Application Framework :: Struts Web Framework ile PostgreSQL Veritabanı Üye Kayıt(struts-config.xml)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">

//beanler burada tanimlanir

<form-bean name="BilgiGirActionForm"
  type="www.ethemsulan.com.BilgiGirActionForm"/>
    
    
    
    
    
<forward name="welcome"  path="/Welcome.do"/>
    
//Dikkat input bilgi nerden gelecek.name bilgiyi kim alacak
//type ise bilgiyi alan benaimizden kim alip isletecek
<action input="/BilgiGir.jsp" name="BilgiGirActionForm"
  path="/BilgiGir" scope="session"
type="www.ethemsulan.com.KayitEtAction">
//KayitEtActiondan yanlis stringi gelirse BicimOner.jsp yi calistir
//basarili gelirse Gerceklesti.jsp yi calistir(yonlendir)
<forward name="yanlis" path="/BicimOner.jsp"/>
<forward name="basarili" path="/Gerceklesti.jsp"/>
    
//action burada bitmis dikkat edin.forward tagin icinde tanimlanmis

 <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
<message-resources parameter="com/myapp/struts/ApplicationResource"/>    
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
 <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />      
<set-property property="moduleAware" value="true" />

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
    property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
 

Orj Kodlar:http://www.ethemsulan.pastebin.com/f16eb252d

http://www.ethemsulan.pastebin.com/f18bc723

http://www.ethemsulan.pastebin.com/f480bc0e7

http://www.ethemsulan.pastebin.com/f76f55284

http://www.ethemsulan.pastebin.com/f5eb2cd1a

http://www.ethemsulan.pastebin.com/f48f7c384

Write a Comment

Let me know what you think?