Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
Ahmed Salah
Greenhorn
+ Follow
7
Posts
2
Threads
0
Cows
since Jun 25, 2006
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Number Posts (7/100)
Number Threads Started (2/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (7/10)
Number Threads Started (2/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by Ahmed Salah
JSP Best practices
read this great article
Scriptless JSP Pages
show more
17 years ago
JSP
dot do files (.do)
Hi ranchers
please give me more informations about this extension and why can i use it in servlets
show more
17 years ago
Servlets
jsp:setProperty/Bean equivalent for request.getParameterValues
I wish that helps
html file:
<body> <form name="f1" id="f1" action="MyJsp.jsp" method="post"> <table border="0"> <tr> <td>nameA:</td> <td><input type="text" name="nameA" id="nameA"></td> </tr> <tr> <td>nameB:</td> <td><input type="text" name="nameB" id="nameB"></td> </tr> <tr> <td>nameC:</td> <td><input type="text" name="nameC" id="nameC"></td> </tr> <tr> <td colspan="2" align="center"><input type="submit"></td> </tr> </table> </form> </body>
Bean Class
package beans; public class TestBean { private String[] names; public String[] getNames() { return names; } public void setNames(String[] names) { this.names = names; } }
JSP file:
<% String[] str = {request.getParameter("nameA"),request.getParameter("nameB"),request.getParameter("nameC")}; %> <jsp:useBean id="test" class="beans.TestBean" scope="session" /> <jsp:setProperty name="test" property="names" value="<%=str %>"/> <% String[] temp = test.getNames(); for (int i=0;i<temp.length;i++){ out.println(temp[i]+"<br/>"); } %>
show more
17 years ago
JSP
Page refresh after database activities
you can redirect again to the 1.jsp file or you can use RequestDispatcher
show more
17 years ago
JSP
Dealing with images
thank you very much for your help
show more
17 years ago
Other JSE/JEE APIs
filtering a request
you can add simple code in doGet method that tests for these QueryString variables if they are null redirect him to the second path
show more
17 years ago
Servlets
Dealing with images
how can i load image file (jpg or gif)then changing its attributes like width, height, RGB type
show more
17 years ago
Other JSE/JEE APIs