•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 422,658 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,696 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 449 | Replies: 1 | Solved
![]() |
•
•
Join Date: Jan 2008
Posts: 27
Reputation:
Rep Power: 1
Solved Threads: 0
Please take a lot at this. Tomcat is reporting the variable editQuestion cannot be resolved.
Thanks
<%
String key = request.getParameter("edit");
ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE ID ="+ key +"");
while(columns1.next())
{
String editid = columns1.getString("ID");
String editQuestion = columns1.getString("Question");
String editAnswer = columns1.getString("Answer");
String editUpdated = columns1.getString("Timestamp");
String editAuthor = columns1.getString("Author");
}
%>
<form action="viewFAQ.jsp" method="get">
<INPUT readonly TYPE="TEXT" NAME="ID" value="<%= key %>">
<TEXTAREA NAME="comments" COLS="40"ROWS="6"><%= editQuestion %></TEXTAREA>
</form>Thanks
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Simple Problem (Getting the Assigned Value within loop dynamically) (Shell Scripting)
- Comparing Python and C, Part 1, Integer Variables (Python)
- Made my own vector thingy (C)
- Using a variable as an array's index? (C)
- creating a window based dialog (C++)
- Defining Variable problem (Visual Basic 4 / 5 / 6)
- Problem altering "Hidden" Variable (Java)
- CF 6.1 problems..Junior Programmer - NEED HELP! (ColdFusion)
- Pseudo-Pascal Question: Need Help!! (Pascal and Delphi)
- C++ Syntax (C++)
Other Threads in the JSP Forum
- Previous Thread: How to create Charts and Diagrams in JSP/Servlet
- Next Thread: can we use java beans with struts?


Linear Mode