Mehmet Ethem SULAN :: Struts Web Application Framework :: Struts Web Framework ile PostgreSQL(JavaBean )
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%--BilgiGirActionForm beandeki propertry leri yazar. filter=false de
html nin strusa erisimi saglariz.Aksi halde html karekteri filtrelenmis olur--%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
JSP Page

Tebrikelr basariliyle kayit gerceklesti


kullanici Adi:<bean:write name="BilgiGirActionForm"
            property="kulAd" filter="false"/>

Email: <bean:write name="BilgiGirActionForm"
            property="kulEmail" filter="false"/>

Parola: <bean:write name="BilgiGirActionForm"
            property="parola1" filter="false"/>

    

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

gene

struts-bean.tld yuklu ve postgresql driverida libraries sağ tıklayıp yüklemiş olmalı.Projeden index.jsp dosyasını xml den değiştirdim BilgiGir.jsp      Sql:

DROP TABLE "kisi";
CREATE TABLE "public"."kisi" (
"ad" varchar DEFAULT NULL,
"email" varchar DEFAULT NULL NOT NULL,
"parola" varchar DEFAULT NULL,
CONSTRAINT "kisi
_pkey" PRIMARY KEY ("email")
)
WITH (OIDS=FALSE)
;

ALTER TABLE "public"."kisi" OWNER TO "postgres";;

-- ----------------------------
-- Records of kisi
-- ----------------------------
INSERT INTO "kisi" VALUES ('ethemsulan', 'ethemsulan@gmail.com', 'ethem');

Comments

There is one comment for this post.

  1. Fernanda on Nisan 2, 2012 5:49 pm

    Absolutely, I wonder that for even those ertenprise apps that make extensive use of frameworks whether they get any real benefit out of them.What’s the point in making something re-usable if you’re never going to re-use it?And if you don’t follow it through ALL THE WAY (unit testing, mocking, documentation etc) then chances are it’s costing you more to develop, and you’re never going to get the payback you should.

Write a Comment

Let me know what you think?