◆JSP◆ (583レス)
◆JSP◆ http://medaka.5ch.io/test/read.cgi/php/984840356/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
148: nobodyさん [] 03/01/08 15:36 ID:ug52StCf 最近、勉強はじめました。手始めに、カレンダーなんか作ってみました。 ちゃんと動くので、第2版ではもっとカレンダーらしくしたいと思ってます。 <%@ page contentType="text/html; charset=EUC-JP" import="java.util.*,java.text.*" %> <html> <head> <title>カレンダー</title> </head> <body> <% Calendar cal1=Calendar.getInstance(); Calendar cal2=Calendar.getInstance(); int h=1; cal2.set(cal1.get(Calendar.YEAR),cal1.get(Calendar.MONTH),h,0,0,0); out.println("<table border=\"1\">"); out.println(" <CAPTION>" + cal2.get(Calendar.YEAR)+"年"+ (cal2.get(Calendar.MONTH)+1)+"月カレンダー</CAPTION>"); out.println("<tr>"); for(int i=1;i<8;i++){ if(i>=cal2.get(Calendar.DAY_OF_WEEK)){ cal2.set(cal1.get(Calendar.YEAR),cal1.get(Calendar.MONTH),h,0,0,0); out.println("<td>"+cal2.get(Calendar.DATE)+"</td>"); h++; } else { out.println("<td></td>"); } } http://medaka.5ch.io/test/read.cgi/php/984840356/148
149: nobodyさん [] 03/01/08 15:36 ID:ug52StCf out.println("</tr>"); for(int i=1;i<5;i++){ out.println("<tr>"); for(int j=1;j<8;j++){ cal2.set(cal1.get(Calendar.YEAR),cal1.get(Calendar.MONTH),h,0,0,0); out.println("<td>"+cal2.get(Calendar.DATE)+"</td>"); h++; } out.println("</tr>"); } %> <table> </body> </html> http://medaka.5ch.io/test/read.cgi/php/984840356/149
150: 山崎渉 [(^^)sage] 03/01/15 13:35 ID:??? (^^) http://medaka.5ch.io/test/read.cgi/php/984840356/150
151: nobodyさん [] 03/02/05 20:37 ID:UbZuop99 >>148-149 149の、 out.println("<td>"+cal2.get(Calendar.DATE)+"</td>"); を、 if (cal2.get(Calendar.MONTH) != cal1.get(Calendar.MONTH)) { out.println("<td> </td>"); }else{ out.println("<td>"+cal2.get(Calendar.DATE)+"</td>"); } にしたほうがもっと良かったかもしれん。 http://medaka.5ch.io/test/read.cgi/php/984840356/151
152: nobodyさん [ ] 03/02/05 21:01 ID:??? ぬるぽの時どうするの? http://medaka.5ch.io/test/read.cgi/php/984840356/152
153: nobodyさん [sage] 03/02/06 18:09 ID:??? >>152 ガッ http://medaka.5ch.io/test/read.cgi/php/984840356/153
154: nobodyさん [sage] 03/02/09 15:33 ID:??? みなさんstruts使ってますか? http://medaka.5ch.io/test/read.cgi/php/984840356/154
155: nobodyさん [sage] 03/02/09 16:41 ID:??? >>154 strutsは糞なので使ってない。 フォーム多様するようなシステムだとちょっと便利だけどな。 http://medaka.5ch.io/test/read.cgi/php/984840356/155
156: nobodyさん [sage] 03/02/09 17:20 ID:??? >>155 では、ほかのフレームワークを使っているのですか? http://medaka.5ch.io/test/read.cgi/php/984840356/156
157: nobodyさん [sage] 03/02/09 22:49 ID:??? うちの会社ではフレームワークは自作してる。 小規模開発ならstrutsで十分かもしれんが、 大規模開発だとstrutsじゃ物足りな過ぎるし一々複雑になりすぎるから。 http://medaka.5ch.io/test/read.cgi/php/984840356/157
158: nobodyさん [sage] 03/02/10 00:21 ID:??? >>157 うーむ、そうですか。 J2EEはどうなんでしょ? http://medaka.5ch.io/test/read.cgi/php/984840356/158
159: nobodyさん [sage] 03/02/10 15:46 ID:??? >>157 自社のフレームワークだって(W http://medaka.5ch.io/test/read.cgi/php/984840356/159
160: nobodyさん [] 03/02/13 20:31 ID:OlM28q34 mySmartUpload誰か教えてたも。 WEB検索したけど、日本語のページがないぽ。 http://medaka.5ch.io/test/read.cgi/php/984840356/160
161: nobodyさん [sage] 03/02/15 04:03 ID:??? うちんところはstruts使ってるなぁ。 案件によるんだが、これはこれで手軽で便利。 http://medaka.5ch.io/test/read.cgi/php/984840356/161
162: nobodyさん [] 03/02/18 23:36 ID:3rz+jCAk jspで、ローカルのデータを読み込むことって可能ですかね? http://medaka.5ch.io/test/read.cgi/php/984840356/162
163: nobodyさん [sage] 03/02/18 23:47 ID:??? >>162 サーバのローカルディスク上に存在するファイルを読むことは可能 (プロセスのパーミッションに許可があれば)。ブラウザで閲覧している 人のローカルディスクを読むことは不可能。そういう場合は <INPUT TYPE="FILE"> でファイル送ってもらえ。 http://medaka.5ch.io/test/read.cgi/php/984840356/163
164: nobodyさん [] 03/02/21 23:12 ID:c+4jM/eT 小中規模なのに JSP/Servlet を選択するのはアホ? http://medaka.5ch.io/test/read.cgi/php/984840356/164
165: nobodyさん [sage] 03/02/22 07:30 ID:??? 自宅鯖で Servlet/JSP -- EJB -- DB やってますが何か? っていうか、規模で選択するのもちょっと違う。開発・運用する人たちの 慣れやその鯖の使われ様なども考慮にいれてちょ。 http://medaka.5ch.io/test/read.cgi/php/984840356/165
166: nobodyさん [] 03/02/23 02:36 ID:fR3GZu88 >>164 そうでもない。165さん激どう。以前JSP/Servletでやったことのある 経験者が今回はたまたま小中規模なんて場合には、以前のリソースが使いまわせたり するからむしろ理想的ですね。 Jakarta Tomcatのように無償の処理系もあるし、PHP or ASP or JSPは どれも似たり寄ったりでは? http://medaka.5ch.io/test/read.cgi/php/984840356/166
167: nobodyさん [sage] 03/03/10 08:37 ID:??? phpは共用鯖でもいけるというメリットが。 http://medaka.5ch.io/test/read.cgi/php/984840356/167
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 416 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.014s