Forums Register Login

request.getAttribute

+Pie Number of slices to send: Send
hi alll,
I want test if a variable equal to null ,else i will display two button , this variable i will get it from FileAction.java , so i make this in my page jsp (File.jsp)



the error is:

thanks for help
2
+Pie Number of slices to send: Send
If the attribute is null then you can't call toString (or any method) on it.
You would use to do the null check.

Consider using EL for these checks. It results in cleaner and easier to read pages.
+Pie Number of slices to send: Send
thanks
+Pie Number of slices to send: Send
Java code in a JSP? In 2012? :shock:

You should be using the JSTL's <c:if> tag to test the condition, not old-fashioned Java code.
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 936 times.
Similar Threads
Exception Error Processing JSP Page
JSP BEAN Question
Exception
Problem with Struts html Tags
Logic:iterate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:18:30.